Running php 5.x on windows using tomcat 4.x or 5.x Running php 5.x em janelas usando o tomcat 4.x ou 5.x
What it solves: O que ela resolve:
- Using php 5.x on Tomcat 4.x or 5.x Usando o php 5.x em Tomcat 4.x ou 5.x
- Enabling php only in one web application, instead of globally. Ativando o php somente em uma aplicação web, em vez de globalmente.
The simplest possible configuration is described. A configuração é descrito mais simples possível. The descriptions are terse assuming your intelligence. As descrições são concisa assumindo a sua inteligência.
We will assume php will be installed in c:\ drive. Vamos supor php será instalado em c: \ drive. Substitute with drive letter of your choice. Suplente com letra de sua escolha.
Instructions Instruções
- Download latest php 5.x zip file. Download últimas php 5.x zip.
I used Eu costumava http://www.php.net/get/php-5.0.2-Win32.zip/from/a/mirror . - Download latest Collection of PECL modules. Download últimas Coleção de módulos PECL. I used Eu costumava http://www.php.net/get/pecl-5.0.2-Win32.zip/from/a/mirror .
- Unzip php 5.x zip file anywhere, normally c:\php Descompacte o php 5.x zip em qualquer lugar, normalmente c: \ php
- Copy php.ini-dist, in c:\php , as php.ini Copiar php.ini-dist, em c: \ php, como php.ini
- Uncomment the line (remove semi-colon at the beginning) in php.ini: Descomentar a linha (remova ponto e vírgula no início) no php.ini:
;extension=php_java.dll ; extensão = php_java.dll - Extract php5servlet.dll from pecl zip file to c:\php (Uncheck "Use Folder Names" in WinZip). Extrato de php5servlet.dll PECL arquivo zip para c: \ php (Desmarque "Usar As pastas" no WinZip).
Ensure that the file is actually present in c:\php Verifique se o arquivo está realmente presente em c: \ php - Install Tomcat and create a directory under webapps. Instale Tomcat e crie um diretório em webapps. Lets say it is named fun . Vamos dizer que é chamado diversão.
- Create WEB-INF directory under fun Criar diretório WEB-INF sob divertido
- Create lib directory under WEB-INF Criar diretório lib sob WEB-INF
- Create web.xml under WEB-INF with the following contents: Criar web.xml sob WEB-INF com o seguinte teor:
php PHP net.php.servlet php-formatter PHP-formatter net.php.formatter php PHP *.php php *. php-formatter PHP-formatter *.phps *. phps - Extract php5srvlt.jar and extract/unjar (jar xvf …) it under c:\ Extrato php5srvlt.jar e extrato / unjar (jar xvf…)-la sob c: \
- Modify both the files reflect.properties and servlet.properties to change the line library=phpsrvlt to library=php5servlet and save them. Modificar ambos os arquivos e reflect.properties servlet.properties para mudar de linha a biblioteca biblioteca phpsrvlt = = php5servlet e guardá-las. This indicates the file name of the dll file which is loaded by the Java application to serve the requests. Isso indica o nome do arquivo do arquivo dll que é carregado pela aplicação Java para atender os pedidos. In my version the name of the dll was php5servlet.dll . Na minha versão do nome do dll foi php5servlet.dll. Your mileage may vary. A sua duração pode variar. This has no connection with the name of the jar file which can be anything. Isso não tem nenhuma ligação com o nome do arquivo jar que pode ser qualquer coisa.
- Re-create the jar file Re-criar o arquivo jar
- Copy the jar file to WEB-INF\lib directory created earlier Copie o arquivo jar para WEB-INF \ lib diretório criado anteriormente
- Add c:\php to your System or User Path in Windows enironment (Hint: Right-click and select Properties from My Computer ) Adicionar c: \ php ao seu sistema ou usuário do Windows Caminho enironment (Dica: Clique com o botão direito e selecione Propriedades do Meu Computador)
- Create a file test.php under fun with the following code: Crie um arquivo test.php sob divertir com o código a seguir:
- Start Tomcat (Go to [Tomcat installation directory]\bin and type Tomcat). Inicie o Tomcat (Ir para o [Tomcat instalação diretório] \ bin e tipo Tomcat).
- Open your browser and go to http://localhost:8080/fun/test.php Abra seu browser e vá para a http://localhost:8080/fun/test.php
- Ensure that there are no errors displayed. Garantir que não haja erros exibidos. Instead you get an informative screen with php version information and whole lot of details Em vez que você começa uma tela com o php versão informativo informação e de todo lote de detalhes
Let me know if this document is helpful to you. Permitam-me saber se este documento seja útil para você.
Update: Made minor revision to highlight some key elements. Update: Made ligeira revisão para destacar alguns elementos fundamentais.
Solutions to common problems by users: Soluções para problemas comuns por usuários:
Whoever is getting this error “java.lang.UnsatisfiedLinkError: no php5servlet in java.library.path”. Quem está recebendo este erro "java.lang.UnsatisfiedLinkError: nenhum php5servlet em java.library.path". Please check the two properties file, whether there are any blank spaces. Verifique o arquivo duas propriedades, se existem espaços em branco. I was stuck in this problem for 2 days. Eu estava encalhado neste problema para 2 dias. There should be only one line, and no blank spaces. Não deveria haver apenas uma linha, e não há espaços em branco. Check it now!!!. Check-la agora!. This is where the problem is lying. É aqui que o problema está mentindo.
–Arundhati - Arundhati
The versions of php and pecl must be the same. As versões do php e PECL deve ser o mesmo.
–Mirek Mocek - Mirek Mocek
You might want to add a reboot step at the end of your instructions. Você pode querer adicionar um reboot etapa no final de suas instruções. It would eliminate a lot of the problems with the unsatisfied link errors. Seria uma grande quantidade de eliminar os problemas com a ligação insatisfeito erros.
– Chuck Rosendahl -- Chuck Rosendahl
Note: Nota:
If you find this tutorial useful, please consider donating and enjoy the pleasure of giving. Se você encontrar este tutorial útil, por favor, considere doar e desfrutar o prazer de dar.
Filed under Arquivado em Headline News Headline News , De How To How To , De Java Software Java Software , De PHP , De Technology Tecnologia , De Web , De Web Services Web Services | |
| |
RSS 2.0 RSS 2,0 | |
Trackback this Article | este artigo |
Email this Article E-mail este artigo
You may also like to read Você pode também gosta de ler |
The comments are currently closed for this post. Os comentários estão atualmente fechado para esta mensagem.



December 20th, 2004 at 8:41 am 20 de dezembro de 2004 em 8:41 am
I tried this b4 (http://analogueboy.blogspot.com/#106959689637832829) but it wasn’t very reliable. Eu tentei este b4 (http://analogueboy.blogspot.com/ # 106959689637832829), mas não era muito confiável. I tried to run phpbb under tomcat and it repeated failed. Eu tentei correr phpbb sob tomcat e repetido que falhou. Have you found the process to be more reliable under php5? Você já encontrou o processo a ser mais confiável no âmbito php5?
December 20th, 2004 at 1:27 pm 20 de dezembro de 2004 em 1:27 pm
The system was stable so long you didn’t have to reload the web application. O sistema manteve-se estável tanto tempo que você não teve a recarregar a aplicação web. In the given installation scenario the jar which loaded the native dll is loaded from the web application context. No cenário instalação dada a jarra que colocou o dll nativa é carregado a partir da aplicação web contexto. So re-loading web application causes problem. Então re-carregamento aplicação web causas problema. It is better to restart Tomcat. É melhor para reiniciar Tomcat. However I presume that will be gone if the jar is moved to common/lib. No entanto Presumo que será ido se o frasco é transferido para o comum / lib.
December 28th, 2004 at 7:43 am 28 de dezembro de 2004 em 7:43 am
im getting this error IM recebendo este erro
javax.servlet.ServletException: Servlet execution threw an exception javax.servlet.ServletException: Servlet execução lançou uma exceção
root cause raiz causam
java.lang.UnsatisfiedLinkError: send java.lang.UnsatisfiedLinkError: enviar
net.php.servlet.send(Native Method) net.php.servlet.send (Nativo Método)
net.php.servlet.service(servlet.java:190) net.php.servlet.service (servlet.java: 190)
net.php.servlet.service(servlet.java:214) net.php.servlet.service (servlet.java: 214)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802) javax.servlet.http.HttpServlet.service (HttpServlet.java: 802)
December 30th, 2004 at 2:20 am 30 de dezembro de 2004 em 2:20 am
# Extract php5srvlt.jar and extract/unjar (jar xvf …) it under c:\ # Extrato php5srvlt.jar e extrato / unjar (jar xvf…)-la sob c: \
WHAT DO YOU MEAN BY THIS LIGNE O que você quer dizer com esta ligne
# Modify both the files reflect.properties and servlet.properties to change the line library=phpsrvlt to library=php5servlet and save them # Modifique ambos os arquivos e reflect.properties servlet.properties para mudar de linha a biblioteca biblioteca phpsrvlt = = php5servlet e guardá-las
HERE I CAN’T FIND REFLET AND SERVLET.PROPERTIES? Não consigo encontrar aqui Reflet e servlet.properties?
# Re-create the jar file # Re-criar o arquivo jar
HERE ALSO WITCH FILE Também aqui bruxa arquivo
# Copy the jar file to WEB-INF\lib directory created earlier # Copie o arquivo jar para WEB-INF \ lib diretório criado anteriormente
# Add c:\php to your System/User Path in Windows enironment (Hint: Right-click and select Properties from My Computer) # Adicione c: \ php para o seu Sistema / Usuário Caminho em Windows enironment (Dica: Clique com o botão direito e selecione Propriedades do Meu Computador)
# Create a file test.php under fun with the following code: # Criar um arquivo test.php sob divertir com o código a seguir:
< ?php phpinfo(); ?> <? Php phpinfo ();?>
# Start Tomcat (Go to [Tomcat installation directory]\bin and type Tomcat). # Start Tomcat (Ir para o [Tomcat instalação diretório] \ bin e tipo Tomcat).
# Open your browser and go to # Abra seu browser e vá para a http://localhost:8080/fun/test.php
# Ensure that there are no errors displayed. # Garantir que não haja erros exibidos. Instead you get an informative screen with php version information and whole lot of details Em vez que você começa uma tela com o php versão informativo informação e de todo lote de detalhes
I FIND THIS IN INTERNET = IT DOESN’ Acho que esta na internet = IT DOESN '
T WORK T TRABALHO
the php5 version of phpsrvlt.jar is not working correctly because of a php5 a versão de phpsrvlt.jar não está funcionando corretamente devido a um
mistake in erro na
net\php\reflect.properties net \ php \ reflect.properties
and e
net\php\servlet.properties net \ php \ servlet.properties
there’s one space after the library name that should be stripped. há um espaço após a biblioteca nome que deve ser desvendado.
after doing this i’ve no problem using php5 out of an java appserver. depois fazendo isso eu tenho qualquer problema usando php5 fora de um java AppServer.
mfg, Mfg,
28 Oct 1:30pm CEST] MerlinDMC at t-online dot de 28 Oct 1:30 pm CEST] MerlinDMC em t-online dot de
CAN YOU HELP ME PLEASE Você pode me ajudar, por favor
December 30th, 2004 at 2:30 am 30 de dezembro de 2004 em 2:30 am
Etat HTTP 500 - Etat HTTP 500 --
——————————————————————————– ---------------------------
type Rapport d’exception Rapport d'tipo de exceção
message Mensagem
description Le serveur a rencontré une erreur interne () qui l’a empêché de satisfaire la requête. Le serveur uma descrição rencontré une erreur interne () qui l'um empêché de satisfaire la requête.
exception exceção
javax.servlet.ServletException: L’exécution de la servlet a lancé une exception javax.servlet.ServletException: L'exécution de la servlet lancé une uma exceção
cause mère causar Mère
java.lang.UnsatisfiedLinkError: send java.lang.UnsatisfiedLinkError: enviar
net.php.servlet.send(Native Method) net.php.servlet.send (Nativo Método)
net.php.servlet.service(servlet.java:190) net.php.servlet.service (servlet.java: 190)
net.php.servlet.service(servlet.java:214) net.php.servlet.service (servlet.java: 214)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) javax.servlet.http.HttpServlet.service (HttpServlet.java: 853)
note La trace complète de la cause mère de cette erreur est disponible dans les fichiers journaux de Apache Tomcat/5.5.6. La nota traço complète de la Mère causa de cette erreur est disponible dans les journaux FICHEIROS de Apache Tomcat/5.5.6.
January 2nd, 2005 at 2:59 pm 2 de janeiro de 2005, às 2:59 pm
I don’t understand Spanish. Não entendo espanhol. However I believe the content of the two comments above are the same - UnsatisfiedLinkError. No entanto creio que o conteúdo dos dois comentários acima são os mesmos - UnsatisfiedLinkError.
As the jar file is placed under web-inf/lib directory realoding the web container causes the dll to be reloaded again which fails. Como o arquivo jar é colocado sob realoding diretório WEB-INF/lib o container web faz com que o dll de ser recarregado que falhar novamente.
The simplest solution is to restart the server whenever there is a need to restart the web conatiner. A solução mais simples é a de reiniciar o servidor sempre que há uma necessidade de reiniciar o conatiner web. However to eliminate the problem totally you can place the jar under common/lib directory. No entanto a eliminar totalmente o problema que você pode colocar o frasco sob comuns / lib diretório. That way it is loaded the tomcat classloader and is not restarted when the web container is restarted. Dessa forma, é carregado o tomcat classloader e não é reiniciado quando o container web é reiniciado.
Let me know if that helps. Permitam-me que se sabe que ajuda.
January 2nd, 2005 at 3:05 pm 2 de janeiro de 2005, às 3:05 pm
Bill> the php5 version of phpsrvlt.jar is not working correctly because of a mistake in net\php\reflect.properties and net\php\servlet.properties. Bill> php5 a versão de phpsrvlt.jar não está funcionando corretamente devido a um erro na net \ php \ reflect.properties e net \ php \ servlet.properties. There’s one space after the library name that should be stripped. Há um espaço depois da biblioteca nome que deve ser desvendado. After doing this i’ve no problem using php5 out of an java appserver. Após fazer isto eu tenho qualquer problema usando php5 fora de um java AppServer.
The problem has been addressed in steps 11-13 above (quoted below for convenience): O problema tem sido abordado nas etapas acima 11-13 (citado por conveniência abaixo):
11. Extract php5srvlt.jar and extract/unjar (jar xvf …) it under c:\ Extrato php5srvlt.jar e extrato / unjar (jar xvf…)-la sob c: \
12. Modify both the files reflect.properties and servlet.properties to change the line library=phpsrvlt to library=php5servlet and save them Modificar ambos os arquivos e reflect.properties servlet.properties para mudar de linha a biblioteca biblioteca phpsrvlt = = php5servlet e guardá-las
13. Re-create the jar file Re-criar o arquivo jar
January 16th, 2005 at 2:48 am 16 de janeiro de 2005, às 2:48 am
Hi. Oi. I followed all the steps with no problem. Eu seguiu todos os passos sem nenhum problema. The only difference was at step 11 (”Extract php5srvlt.jar and extract/unjar (jar xvf …) it under c:”). A única diferença foi a etapa 11 ( "extrato php5srvlt.jar e extrato / unjar (jar xvf…)-la sob c:"). Extract from where? Extrato de onde? I suppose it’s located in PECL zip file. Eu suponho que é situado em PECL zip. There was only “phpsrvlt.jar” so I used that instead. Houve apenas "phpsrvlt.jar" assim que eu usei vez. Everything else was fine. Tudo o resto foi bem.
Now step 19: on the first page request from the browser I get following error: Agora passo 19: na primeira página a partir da solicitação do navegador Recebo seguinte erro:
java.lang.IllegalAccessError: tried to access method net.php.reflect.loadLibrary(Ljava/lang/String;)V from class net.php.servlet java.lang.IllegalAccessError: tentou acessar método net.php.reflect.loadLibrary (Ljava / lang / String;) V de classe net.php.servlet
net.php.servlet.init(servlet.java:157) net.php.servlet.init (servlet.java: 157)
[snipped]
…every other page request results in this error: … Todos os outros resultados na página solicitar este erro:
java.lang.UnsatisfiedLinkError: send java.lang.UnsatisfiedLinkError: enviar
net.php.servlet.send(Native Method) net.php.servlet.send (Nativo Método)
net.php.servlet.service(servlet.java:190) net.php.servlet.service (servlet.java: 190)
net.php.servlet.service(servlet.java:214) net.php.servlet.service (servlet.java: 214)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802) javax.servlet.http.HttpServlet.service (HttpServlet.java: 802)
I’m pretty sure I did all your steps, so where could be the problem?! Estou bastante seguro que fiz todas as suas etapas, de modo que poderia ser o problema?! I’m using Tomcat 5.5.4 and PHP 5.0.3… Estou usando o Tomcat 5.5.4 e 5.0.3 PHP…
Thanks in advance for your help. Desde já agradecemos a sua ajuda.
January 16th, 2005 at 4:08 am 16 de janeiro de 2005, às 4:08 am
Lukas> The only difference was at step 11 (”Extract php5srvlt.jar and extract/unjar (jar xvf …) it under c:”). Lukas> A única diferença foi a etapa 11 ( "extrato php5srvlt.jar e extrato / unjar (jar xvf…)-la sob c:"). Extract from where? Extrato de onde? I suppose it’s located in PECL zip file. Eu suponho que é situado em PECL zip. There was only “phpsrvlt.jar” so I used that instead. Houve apenas "phpsrvlt.jar" assim que eu usei vez. Everything else was fine. Tudo o resto foi bem.
Angsuman> I meant extract the contents of phpsrvlt.jar. Angsuman> I significava extrair o conteúdo do phpsrvlt.jar. The idea is to change the content of the two properties file within the jar file. A idéia é a de alterar o conteúdo das duas propriedades arquivo dentro do arquivo jar. And yes you will get the jar file in pecl.zip. E sim você irá obter o arquivo jar no pecl.zip.
Lukas>Now step 19: on the first page request from the browser I get following error Lukas> Agora passo 19: na primeira página a partir da solicitação do navegador Recebo seguinte erro
Angsuman> Please make the changes and let me know if you still face the problem. Angsuman> Por favor, faça as alterações e deixe-me saber se você ainda enfrentam o problema.
January 18th, 2005 at 4:15 pm 18 de janeiro de 2005, às 4:15 pm
Hi. Oi. I’m using Tomcat 5.5.4 with PHP 5.03. Estou usando o Tomcat 5.5.4 com PHP 5,03. I’ve followed all the instuctions above and got to step 19. Eu segui todos os instuctions acima e comecei a etapa 19. When I go to Quando vou para o http://localhost:8080/fun/test.php I get a blank screen. Recebo uma tela em branco. When I look at the source, it contains < ?php phpinfo(); ?> It appears that Tomcat is loading the test.php file but the php script is not running. Quando olho para a fonte, que contém <? Php phpinfo ();?> Parece que Tomcat está carregando o arquivo test.php mas o php script não está funcionando. I’ve tried this with and without the extra spaces in reflect.properties and servlet.properties and get the same behavior. Eu tentei isso com e sem a espaços extras em reflect.properties e servlet.properties e obter o mesmo comportamento. Thanks for your help! Obrigado por sua ajuda!
January 18th, 2005 at 4:33 pm 18 de janeiro de 2005, às 4:33 pm
Hi. Oi. That last message was supposed to say “it contains phpinfo();” but the website didn’t like the LT/GT ? Esta última mensagem era suposto que dizem "que contém phpinfo ();", mas o site não gostou da LT / GT?
January 23rd, 2005 at 4:23 am 23 de janeiro de 2005, às 4:23 am
Finally got it working! Finalmente começou-trabalho! The problem was in my classpath setup. O problema era no meu classpath configuração. I got two different php_java.jar files accessible through classpath and Java was all confused with it (that’s why I was still getting this java.lang.IllegalAccessError)… Eu recebi duas diferentes php_java.jar arquivos acessíveis através classpath Java e todas as era confundida com ela (é por isso que eu ainda estava começando este java.lang.IllegalAccessError)…
Now I’m wondering if there’sa way to call Java code within the servlet’s JVM from the actual PHP code. Agora eu estou querendo saber se há um caminho a chamada dentro do código Java servlet da JVM real a partir do código PHP. To be more specific: I need to create Java singleton in PHP code and share this singleton within all server PHP-requests (I tried PHP - Java integration using PHP object Java [ie. < ?php $i = new Java('java.lang.Integer'); ?>] but PHP interpretter was starting extra JVM for each single page it interpretted). Para ser mais específico: eu preciso para criar Java Singleton no código PHP e partilhar esta Singleton dentro de todos os pedidos PHP-servidor (PHP Tentei - Java integração objeto usando PHP Java [ie. <? Php $ i = new Java ( "java. lang.Integer ');?>] PHP interpretter mas estava começando extra JVM única para cada página que interpretted). Any ideas? Alguma idéia? Thanks… Graças…
January 23rd, 2005 at 3:54 pm 23 de janeiro de 2005, às 3:54 pm
Lukas> Now I’m wondering if there’sa way to call Java code within the servlet’s JVM from the actual PHP code. Lukas> Agora eu estou querendo saber se há um caminho a chamada dentro do código Java servlet da JVM real a partir do código PHP. To be more specific: I need to create Java singleton in PHP code and share this singleton within all server PHP-requests (I tried PHP - Java integration using PHP object Java [ie. ] but PHP interpretter was starting extra JVM for each single page it interpretted). Para ser mais específico: eu preciso para criar Java Singleton no código PHP e partilhar esta Singleton dentro de todos os pedidos PHP-servidor (PHP Tentei - Java integração objeto usando PHP Java [ie.] PHP interpretter mas foi JVM partida extra para cada única página - interpretted). Any ideas? Alguma idéia? Thanks… Graças…
There is a simple way and there is a complicated way Não existe uma maneira simples e não existe um caminho complicado
The simple way would be to write a jsp page which contains the desired code and load the page from php code. O modo mais simples seria a de escrever uma página jsp que contém o código desejada e carregar a página de código PHP.
January 23rd, 2005 at 3:55 pm 23 de janeiro de 2005, às 3:55 pm
Brian> Hi. Brian> Hi. I’m using Tomcat 5.5.4 with PHP 5.03. Estou usando o Tomcat 5.5.4 com PHP 5,03. I’ve followed all the instuctions above and got to step 19. Eu segui todos os instuctions acima e comecei a etapa 19. When I go to Quando vou para o http://localhost:8080/fun/test.php I get a blank screen. Recebo uma tela em branco. When I look at the source, it contains It appears that Tomcat is loading the test.php file but the php script is not running. Quando olho para a fonte, que contém Parece que Tomcat está carregando o arquivo test.php mas o php script não está funcionando. I’ve tried this with and without the extra spaces in reflect.properties and servlet.properties and get the same behavior. Eu tentei isso com e sem a espaços extras em reflect.properties e servlet.properties e obter o mesmo comportamento. Thanks for your help! Obrigado por sua ajuda!
Brian,
I think you missed step 10. Eu penso que você perdeu passo 10. That creates the mapping between .php file and the servlet. Isto cria o mapeamento entre. Php arquivo e do servlet.
Please check and let me know. Verifique e me avise.
January 24th, 2005 at 12:39 am 24 de janeiro de 2005, às 12:39 am
Angsuman> I tried repeating step 10 again, assuming I made a mistake, but was still unable to get this to work. Angsuman> Tentei repetir novamente passo 10, assumindo eu cometi um erro, mas ainda não conseguiu chegar a este trabalho. Is the php5srvlt.jar supposed to be in the C:/php directory as well, or just the WEB-INF/lib? É suposto ser o php5srvlt.jar no C: / php diretório tão bem, ou apenas o WEB-INF/lib? When I recreate the jar, does it suffice to edit the reflect.properties and servlet.properties files and overwrite the files in the jar or do I need to use the java command to rebuild the jar??? Quando eu recriar o frasco, não é suficiente para editar o reflect.properties e servlet.properties sobrescrever arquivos e os arquivos no frasco ou que eu preciso para usar o comando java para reconstruir a jarra?
This is what my directory structure looks like: Isto é o meu diretório estrutura aparência:
webapps/fun/ webapps / diversão /
test.php
WEB-INF/ WEB-INF /
/lib / lib
web.xml
php5srvlt.jar
Thanks again! Obrigado novamente!
January 24th, 2005 at 1:36 am 24 de janeiro de 2005, às 1:36 am
Brian> I tried repeating step 10 again, assuming I made a mistake, but was still unable to get this to work. Brian> Tentei repetir novamente passo 10, assumindo eu cometi um erro, mas ainda não conseguiu chegar a este trabalho.
Angsuman> Any errors in tomcat log files? Angsuman> Quaisquer erros nos arquivos de registro tomcat?
Brian> Is the php5srvlt.jar supposed to be in the C:/php directory as well, or just the WEB-INF/lib? Brian> Está a php5srvlt.jar suposto ser no C: / php diretório tão bem, ou apenas o WEB-INF/lib?
Angsuman> Just WEB-INF/lib should be fine. Angsuman> Just WEB-INF/lib deve ser fina.
Brian> When I recreate the jar, does it suffice to edit the reflect.properties and servlet.properties files and overwrite the files in the jar or do I need to use the java command to rebuild the jar??? Brian> Quando eu recriar o frasco, não é suficiente para editar o reflect.properties e servlet.properties sobrescrever arquivos e os arquivos no frasco ou que eu preciso para usar o comando java para reconstruir a jarra?
Angsuman> I am not sure I understand. Angsuman> Não tenho a certeza eu compreendo. You need to unjar the files, modify them and then rebuild the jar and deploy the new jar file. Você precisa unjar os arquivos, modificá-los e, depois, reconstruir o jarro e implantar o novo arquivo jar. Verify it by checking that the files have actually been changed and that the path information of the files is identical to the original. Verifique se ao verificar que os arquivos foram realmente mudou e que o caminho informações dos arquivos é idêntico ao original. The steps given, if followed to the dot should ensure that. Os passos dado, se deve seguir para garantir que as pontocom.
Brian> This is what my directory structure looks like: Brian> Este é o meu diretório estrutura aparência:
webapps/fun/ webapps / diversão /
test.php
WEB-INF/ WEB-INF /
/lib / lib
web.xml
php5srvlt.jar
Angsuman> The directory structure is not clear from this comment. Angsuman> O diretório estrutura não é claro a partir desta observação. The php file should be under fun. Php O arquivo deve estar sob divertido. WEB-INF/web.xml, WEB-INF/lib/*.jar should be the normal order of files. WEB-INF/web.xml, WEB-INF/lib / *. jar deve ser a ordem normal de ficheiros.
Specifically web.xml should be under WEB-INF directory and not under lib. Especificamente web.xml deve ser sob WEB-INF diretório e não sob lib.
Hope that clarifies… Esperamos que esclarece…
January 24th, 2005 at 3:47 pm 24 de janeiro de 2005, às 3:47 pm
Well, I have a weird problem. Bom, eu tenho um problema estranho. Everything is set up, but I get this exception about gibberish: Tudo é criado, mas eu recebo esta excepção cerca jargão:
java.io.IOException: °?ü °?ü ¸?ü ¤Cü ü>– java.io.IOException: °? ü °? ü ¸? ü ¤ Cü ü> --
at net.php.servlet.send(Native Method) em net.php.servlet.send (Nativo Método)
at net.php.servlet.service(servlet.java:190) em net.php.servlet.service (servlet.java: 190)
[snipped]
Do let me know if you have any information on this. Não deixe-me saber se tem alguma informação sobre este assunto.
Thanks, Obrigado,
Sachin
January 24th, 2005 at 4:15 pm 24 de janeiro de 2005, às 4:15 pm
Sorry for a hasty post previously, that problem is solved. Desculpe precipitadas para um posto anteriormente, que o problema seja resolvido. I do have another problem, but I haven’t started working on solving it yet. Tenho outro problema, mas eu ainda não começou a trabalhar em resolvê-lo ainda. Its about a fairly complex php page not displaying properly. Os seus cerca de um complexo php equitativa página não exibir corretamente. Will post more on that in case I can’t solve it. Vai postar mais no caso em que eu não possa resolver. Once again, sorry for the big (and useless) post above. Mais uma vez, a desculpa para a grande (e inútil) posto acima.
Thanks, Obrigado,
Sachin
January 24th, 2005 at 4:20 pm 24 de janeiro de 2005, às 4:20 pm
No problem! Não tem problema! Let me know how it gies Sachin. Deixe-me saber como é que tégias Sachin. Do share if you have found something new. Faça partes se tem encontrado algo de novo.
January 24th, 2005 at 11:57 pm 24 de janeiro de 2005, às 11:57 pm
I am receiving a similar error to what Sachin was getting and was wondering what the solution to that was? Estou recebendo um erro semelhante ao que estava a chegar e Sachin perguntando qual era a solução que foi? The first time I try to lead the page I am getting this error: A primeira vez que eu tento levar a página Estou recebendo este erro:
javax.servlet.ServletException: Servlet.init() for servlet php threw exception javax.servlet.ServletException: Servlet.init () para servlet php a exceção
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java: 105)
[snipped]
root cause raiz causam
java.lang.UnsatisfiedLinkError: no php5srvlt in java.library.path java.lang.UnsatisfiedLinkError: não php5srvlt em java.library.path
java.lang.ClassLoader.loadLibrary(Unknown Source) java.lang.ClassLoader.loadLibrary (Unknown Source)
[snipped]