Running php 5.x on windows using tomcat 4.x or 5.x Php 5.x sulle finestre usando Tomcat 4.xo 5.x
What it solves: Che cosa ne risolva:
- Using php 5.x on Tomcat 4.x or 5.x Utilizzo di PHP 5.x su Tomcat 4.xo 5.x
- Enabling php only in one web application, instead of globally. Php che consente solo in una applicazione web, invece di livello mondiale.
The simplest possible configuration is described. Il più semplice possibile configurazione è descritto. The descriptions are terse assuming your intelligence. Le descrizioni sono terse assumendo la tua intelligenza.
We will assume php will be installed in c:\ drive. Si assume php verrà installato in C: \. Substitute with drive letter of your choice. Sostituirlo con lettera di unità di vostra scelta.
Instructions Istruzioni
- Download latest php 5.x zip file. Download ultime php 5.x file zip.
I used Ho usato http://www.php.net/get/php-5.0.2-Win32.zip/from/a/mirror . - Download latest Collection of PECL modules. Scaricare ultima raccolta di moduli PECL. I used Ho usato http://www.php.net/get/pecl-5.0.2-Win32.zip/from/a/mirror .
- Unzip php 5.x zip file anywhere, normally c:\php Php 5.x decomprimere file zip ovunque, normalmente c: \ php
- Copy php.ini-dist, in c:\php , as php.ini Copia php.ini-dist, in c: \ php, come php.ini
- Uncomment the line (remove semi-colon at the beginning) in php.ini: Decommentare la riga (rimuovere punto e virgola all'inizio) in php.ini:
;extension=php_java.dll ; extension = php_java.dll - Extract php5servlet.dll from pecl zip file to c:\php (Uncheck "Use Folder Names" in WinZip). Estratto da php5servlet.dll pecl file zip in c: \ php (Deseleziona "Utilizza nomi delle cartelle" in WinZip).
Ensure that the file is actually present in c:\php Garantire che il file è effettivamente presente in c: \ php - Install Tomcat and create a directory under webapps. Installare Tomcat e creare una directory in webapps. Lets say it is named fun . Diciamo che è chiamato il divertimento.
- Create WEB-INF directory under fun Creare WEB-INF directory sotto divertimento
- Create lib directory under WEB-INF Creare lib directory sotto WEB-INF
- Create web.xml under WEB-INF with the following contents: Creare web.xml sotto WEB-INF con il seguente contenuto:
php PHP net.php.servlet php-formatter PHP-formattatore net.php.formatter php PHP *.php *. php php-formatter PHP-formattatore *.phps *. php's - Extract php5srvlt.jar and extract/unjar (jar xvf …) it under c:\ Estratto php5srvlt.jar ed estratto / unjar (jar xvf…) sotto c: \
- Modify both the files reflect.properties and servlet.properties to change the line library=phpsrvlt to library=php5servlet and save them. Modificare sia i file reflect.properties e servlet.properties a modificare la riga = phpsrvlt biblioteca a biblioteca = php5servlet e salvarli. This indicates the file name of the dll file which is loaded by the Java application to serve the requests. Questo indica il nome del file del file dll che viene caricato dalla applicazione Java per servire le richieste. In my version the name of the dll was php5servlet.dll . Nella mia versione il nome della dll è stato php5servlet.dll. Your mileage may vary. Il tuo distanza in miglia può variare. This has no connection with the name of the jar file which can be anything. Questo non ha alcun legame con il nome del file jar che può essere nulla.
- Re-create the jar file Ricreare il file jar
- Copy the jar file to WEB-INF\lib directory created earlier Copiare il file jar WEB-INF \ lib directory creata in precedenza
- Add c:\php to your System or User Path in Windows enironment (Hint: Right-click and select Properties from My Computer ) Aggiungere c: \ php il sistema o il percorso utente in Windows enironment (Suggerimento: Fai clic destro e selezionare Proprietà dal computer)
- Create a file test.php under fun with the following code: Creare un file test.php sotto divertimento con il seguente codice:
- Start Tomcat (Go to [Tomcat installation directory]\bin and type Tomcat). Inizio Tomcat (Vai alla [directory di installazione di Tomcat] \ bin e il tipo di Tomcat).
- Open your browser and go to http://localhost:8080/fun/test.php Apri il browser e passare al http://localhost:8080/fun/test.php
- Ensure that there are no errors displayed. Garantire che non vi siano errori visualizzati. Instead you get an informative screen with php version information and whole lot of details Invece, si ottiene un informativo schermo con versione di PHP informazioni e tutta la partita di dettagli
Let me know if this document is helpful to you. Fammi sapere se questo documento è utile a voi.
Update: Made minor revision to highlight some key elements. Aggiornamento: Made revisione minore per evidenziare alcuni elementi chiave.
Solutions to common problems by users: Soluzioni a problemi comuni da parte degli utenti:
Whoever is getting this error “java.lang.UnsatisfiedLinkError: no php5servlet in java.library.path”. Chi si sta l'errore "java.lang.UnsatisfiedLinkError: nessun php5servlet in java.library.path". Please check the two properties file, whether there are any blank spaces. Si prega di consultare le due file di proprietà, se vi siano spazi vuoti. I was stuck in this problem for 2 days. Mi è stato bloccato in questo problema per 2 giorni. There should be only one line, and no blank spaces. Ci dovrebbe essere una sola riga, e non gli spazi vuoti. Check it now!!!. Check it!!!. This is where the problem is lying. È qui che il problema sia di mentire.
–Arundhati - Arundhati
The versions of php and pecl must be the same. Le versioni di PHP e pecl deve essere la stessa.
–Mirek Mocek - Mirek Mocek
You might want to add a reboot step at the end of your instructions. Si può aggiungere un riavvio passo alla fine del vostro istruzioni. It would eliminate a lot of the problems with the unsatisfied link errors. Si eliminerebbe un sacco di problemi con il collegamento insoddisfatta errori.
– Chuck Rosendahl -- Chuck Rosendahl
Note: Nota:
If you find this tutorial useful, please consider donating and enjoy the pleasure of giving. Se si trova questo tutorial utile, ti invitiamo a prendere in considerazione la donazione e godersi il piacere di dare.
Filed under Elencato sotto Headline News Headline News , How To Come , Java Software Software Java , PHP , Technology Tecnologia , Web , Web Services Servizi Web | |
| |
RSS 2.0 RSS 2,0 | |
Trackback this Article | questo articolo |
Email this Article Invia questo articolo
You may also like to read Si può anche leggere come |
The comments are currently closed for this post. I commenti sono attualmente chiusi per questo post.



December 20th, 2004 at 8:41 am 20 dicembre 2004 a 8:41 am
I tried this b4 (http://analogueboy.blogspot.com/#106959689637832829) but it wasn’t very reliable. Ho provato questo B4 (http://analogueboy.blogspot.com/ # 106959689637832829), ma non era molto affidabile. I tried to run phpbb under tomcat and it repeated failed. Ho cercato di eseguire phpbb sotto Tomcat e ripetuto che non è riuscito. Have you found the process to be more reliable under php5? Avete trovato il processo sia più affidabile sotto php5?
December 20th, 2004 at 1:27 pm 20 dicembre 2004 a 1:27 pm
The system was stable so long you didn’t have to reload the web application. Il sistema è stato stabile, così a lungo che non hanno per ricaricare l'applicazione Web. In the given installation scenario the jar which loaded the native dll is loaded from the web application context. Nel precedente installazione scenario il vaso che caricato la dll nativa è caricato dal contesto di applicazione web. So re-loading web application causes problem. Così ricaricando applicazione web cause problema. It is better to restart Tomcat. E 'meglio per riavviare Tomcat. However I presume that will be gone if the jar is moved to common/lib. Tuttavia presumo che verranno passati se il barattolo è trasferito a common / lib.
December 28th, 2004 at 7:43 am 28 dicembre 2004 alle 7:43 am
im getting this error IM ottenere questo errore
javax.servlet.ServletException: Servlet execution threw an exception javax.servlet.ServletException: esecuzione di Servlet ha gettato un 'eccezione
root cause causa principale
java.lang.UnsatisfiedLinkError: send java.lang.UnsatisfiedLinkError: trasmettere
net.php.servlet.send(Native Method) net.php.servlet.send (metodo natale)
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 dicembre 2004 alle 2:20 am
# Extract php5srvlt.jar and extract/unjar (jar xvf …) it under c:\ # Estrarre php5srvlt.jar ed estratto / unjar (jar xvf…) sotto c: \
WHAT DO YOU MEAN BY THIS LIGNE Cosa intende per questo ligne
# Modify both the files reflect.properties and servlet.properties to change the line library=phpsrvlt to library=php5servlet and save them # Modificare il file sia reflect.properties e servlet.properties a modificare la riga = phpsrvlt biblioteca a biblioteca = php5servlet e salvarle
HERE I CAN’T FIND REFLET AND SERVLET.PROPERTIES? Qui non riesco a trovare Reflet e servlet.properties?
# Re-create the jar file # Re-creare il file jar
HERE ALSO WITCH FILE Anche qui strega file
# Copy the jar file to WEB-INF\lib directory created earlier # Copiare il file jar WEB-INF \ lib directory creata in precedenza
# Add c:\php to your System/User Path in Windows enironment (Hint: Right-click and select Properties from My Computer) Aggiungi # c: \ php al vostro sistema / utente in Windows Percorso enironment (Suggerimento: Fai clic destro e selezionare Proprietà dal computer)
# Create a file test.php under fun with the following code: # Creare un file test.php sotto divertimento con il seguente codice:
< ?php phpinfo(); ?> <? Php phpinfo ();?>
# Start Tomcat (Go to [Tomcat installation directory]\bin and type Tomcat). # Start Tomcat (Vai alla [directory di installazione di Tomcat] \ bin e il tipo di Tomcat).
# Open your browser and go to # Aprire il browser e andare a http://localhost:8080/fun/test.php
# Ensure that there are no errors displayed. # Assicurarsi che non vi siano errori visualizzati. Instead you get an informative screen with php version information and whole lot of details Invece, si ottiene un informativo schermo con versione di PHP informazioni e tutta la partita di dettagli
I FIND THIS IN INTERNET = IT DOESN’ Lo trovo in internet = it doesn '
T WORK T LAVORO
the php5 version of phpsrvlt.jar is not working correctly because of a php5 la versione di phpsrvlt.jar non funziona correttamente a causa di un
mistake in errore
net\php\reflect.properties netto \ PHP \ reflect.properties
and e
net\php\servlet.properties netto \ PHP \ servlet.properties
there’s one space after the library name that should be stripped. c'è uno spazio dopo il nome della libreria che dovrebbe essere spogliato.
after doing this i’ve no problem using php5 out of an java appserver. dopo questo ho nessun problema con php5 su un appserver del Java.
mfg, MFG,
28 Oct 1:30pm CEST] MerlinDMC at t-online dot de 28 ott 1:30 PM CEST] MerlinDMC t-online dot de
CAN YOU HELP ME PLEASE Mi potete aiutare ti invitiamo a
December 30th, 2004 at 2:30 am 30 dicembre 2004 alle 2:30 am
Etat HTTP 500 - Etat HTTP 500 --
——————————————————————————– ---------------------------
type Rapport d’exception Tipo di Relazione d'eccezione
message messaggio
description Le serveur a rencontré une erreur interne () qui l’a empêché de satisfaire la requête. Descrizione Le serveur uno rencontré une erreur interne () che l'uno empêché de soddisfare la richiesta.
exception eccezione
javax.servlet.ServletException: L’exécution de la servlet a lancé une exception javax.servlet.ServletException: L'exécution de la servlet uno lancé una eccezione
cause mère causare Mère
java.lang.UnsatisfiedLinkError: send java.lang.UnsatisfiedLinkError: trasmettere
net.php.servlet.send(Native Method) net.php.servlet.send (metodo natale)
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 traccia complète de la mère causa di tale errore è disponibile dans les fichiers de giornali Apache Tomcat/5.5.6.
January 2nd, 2005 at 2:59 pm 2 gennaio 2005 a 2:59 pm
I don’t understand Spanish. Non capisco lo spagnolo. However I believe the content of the two comments above are the same - UnsatisfiedLinkError. Tuttavia credo che il contenuto dei due osservazioni di cui sopra sono gli stessi - 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. Come il vaso file è posto sotto directory WEB-INF/lib realoding web contenitore fa sì che il dll a ricaricare di nuovo che non.
The simplest solution is to restart the server whenever there is a need to restart the web conatiner. La soluzione più semplice è quello di riavviare il server ogni volta che vi è la necessità di riavviare il web conatiner. However to eliminate the problem totally you can place the jar under common/lib directory. Tuttavia, per eliminare completamente il problema si può collocare il vaso sotto common / lib directory. That way it is loaded the tomcat classloader and is not restarted when the web container is restarted. Che il modo in cui viene caricato il classloader tomcat e non è riavviato quando il contenitore web viene riavviato.
Let me know if that helps. Fammi sapere se questo aiuta.
January 2nd, 2005 at 3:05 pm 2 gennaio 2005 a 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> la versione di php5 phpsrvlt.jar non funziona correttamente a causa di un errore in netto \ php \ reflect.properties e del patrimonio netto \ php \ servlet.properties. There’s one space after the library name that should be stripped. C'è uno spazio dopo il nome della libreria che dovrebbe essere spogliato. After doing this i’ve no problem using php5 out of an java appserver. Dopo questo ho nessun problema con php5 su un appserver del Java.
The problem has been addressed in steps 11-13 above (quoted below for convenience): Il problema è stato affrontato nei passaggi sopra 11-13 (citato qui sotto per comodità):
11. Extract php5srvlt.jar and extract/unjar (jar xvf …) it under c:\ Estratto php5srvlt.jar ed estratto / unjar (jar xvf…) sotto c: \
12. Modify both the files reflect.properties and servlet.properties to change the line library=phpsrvlt to library=php5servlet and save them Modificare sia i file reflect.properties e servlet.properties a modificare la riga = phpsrvlt biblioteca a biblioteca = php5servlet e salvarle
13. Re-create the jar file Ricreare il file jar
January 16th, 2005 at 2:48 am 16 gennaio 2005 a 2:48 am
Hi. Salve. I followed all the steps with no problem. Ho seguito tutti i passi senza alcun problema. The only difference was at step 11 (”Extract php5srvlt.jar and extract/unjar (jar xvf …) it under c:”). L'unica differenza è stata al passo 11 ( "Estratto php5srvlt.jar ed estratto / unjar (jar xvf…) sotto c:"). Extract from where? Estratto da dove? I suppose it’s located in PECL zip file. Suppongo che si trova nella PECL file zip. There was only “phpsrvlt.jar” so I used that instead. Non vi è stato solo "phpsrvlt.jar" in modo che ho usato. Everything else was fine. Tutto il resto è stato bene.
Now step 19: on the first page request from the browser I get following error: Ora passo 19: sulla prima pagina richiesta dal browser ottenere seguente errore:
java.lang.IllegalAccessError: tried to access method net.php.reflect.loadLibrary(Ljava/lang/String;)V from class net.php.servlet java.lang.IllegalAccessError: tentato di accedere al metodo net.php.reflect.loadLibrary (Ljava / lang / String;) classe V da 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: … Ogni altra richiesta di pagina di risultati in questo errore:
java.lang.UnsatisfiedLinkError: send java.lang.UnsatisfiedLinkError: trasmettere
net.php.servlet.send(Native Method) net.php.servlet.send (metodo natale)
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?! Sono abbastanza sicuro ho fatto tutti i vostri passi, quando potrebbe essere il problema?! I’m using Tomcat 5.5.4 and PHP 5.0.3… Sto usando Tomcat 5.5.4 e PHP 5.0.3…
Thanks in advance for your help. Grazie in anticipo per il vostro aiuto.
January 16th, 2005 at 4:08 am 16 gennaio 2005 a 4:08 am
Lukas> The only difference was at step 11 (”Extract php5srvlt.jar and extract/unjar (jar xvf …) it under c:”). Lukas> L'unica differenza è stata al passo 11 ( "Estratto php5srvlt.jar ed estratto / unjar (jar xvf…) sotto c:"). Extract from where? Estratto da dove? I suppose it’s located in PECL zip file. Suppongo che si trova nella PECL file zip. There was only “phpsrvlt.jar” so I used that instead. Non vi è stato solo "phpsrvlt.jar" in modo che ho usato. Everything else was fine. Tutto il resto è stato bene.
Angsuman> I meant extract the contents of phpsrvlt.jar. Angsuman> volevo dire estrarre il contenuto di phpsrvlt.jar. The idea is to change the content of the two properties file within the jar file. L'idea è quella di modificare il contenuto dei due file di proprietà all'interno del file jar. And yes you will get the jar file in pecl.zip. E sì, si ottengono il vaso file in pecl.zip.
Lukas>Now step 19: on the first page request from the browser I get following error Lukas> Ora passo 19: sulla prima pagina richiesta dal browser ottenere seguente errore
Angsuman> Please make the changes and let me know if you still face the problem. Angsuman> Vi preghiamo di apportare le modifiche e vorrei sapere se lei ancora affrontare il problema.
January 18th, 2005 at 4:15 pm 18 gennaio 2005 a 4:15 pm
Hi. Salve. I’m using Tomcat 5.5.4 with PHP 5.03. Sto usando Tomcat 5.5.4 di PHP con 5,03. I’ve followed all the instuctions above and got to step 19. Ho seguito tutte le instuctions sopra ed ha ottenuto al passaggio 19. When I go to Quando cerco di accedere a http://localhost:8080/fun/test.php I get a blank screen. Mi appare una schermata vuota. 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 guardo la fonte, che contiene <? Php phpinfo ();?> Sembra che Tomcat è il caricamento del file ma test.php Lo script PHP non è in esecuzione. I’ve tried this with and without the extra spaces in reflect.properties and servlet.properties and get the same behavior. Ho provato questo con e senza gli spazi in reflect.properties e servlet.properties e ottenere lo stesso comportamento. Thanks for your help! Grazie per il vostro aiuto!
January 18th, 2005 at 4:33 pm 18 gennaio 2005 a 4:33 pm
Hi. Salve. That last message was supposed to say “it contains phpinfo();” but the website didn’t like the LT/GT ? Ultimo messaggio che avrebbe dovuto dire "che contiene phpinfo ();", ma il sito non ha come LT / GT?
January 23rd, 2005 at 4:23 am 23 gennaio 2005 a 4:23 am
Finally got it working! Finalmente ottenuto esso che funziona! The problem was in my classpath setup. Il problema è stato nel mio classpath. 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)… Ho ottenuto due diversi php_java.jar file accessibili attraverso il classpath e Java è stato confuso con tutti (che è il motivo per cui ero ancora ottenere questo 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. Ora sto chiedendo se c'è un modo per chiamare codice Java all'interno della servlet's JVM da quelli effettivi codice 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). Per essere più precisi: ho bisogno di creare in Java singolo codice PHP e condividere questo singolo all'interno di tutti i server di PHP-richieste (ho cercato di PHP - Java e integrazione con PHP oggetto Java [vale a dire. <? Php $ i = new Java ( 'java. lang.Integer ');?>] interpretter di PHP, ma è stato a partire extra JVM per ogni singola pagina è interpretted). Any ideas? Tutte le idee? Thanks… Grazie…
January 23rd, 2005 at 3:54 pm 23 gennaio 2005 a 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> Ora sto chiedendo se c'è un modo per chiamare codice Java all'interno della servlet's JVM da quelli effettivi codice 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). Per essere più precisi: ho bisogno di creare in Java singolo codice PHP e condividere questo singolo all'interno di tutti i server di PHP-richieste (ho cercato di PHP - Java e integrazione con PHP oggetto Java [vale a dire.], Ma è stato PHP interpretter partire extra JVM per ogni singola pagina essa interpretted). Any ideas? Tutte le idee? Thanks… Grazie…
There is a simple way and there is a complicated way Vi è un modo semplice e vi è un modo complicato
The simple way would be to write a jsp page which contains the desired code and load the page from php code. Il modo semplice sarebbe quella di scrivere una pagina JSP che contiene il codice desiderato e caricare la pagina da codice php.
January 23rd, 2005 at 3:55 pm 23 gennaio 2005 a 3:55 pm
Brian> Hi. Brian> Hi. I’m using Tomcat 5.5.4 with PHP 5.03. Sto usando Tomcat 5.5.4 di PHP con 5,03. I’ve followed all the instuctions above and got to step 19. Ho seguito tutte le instuctions sopra ed ha ottenuto al passaggio 19. When I go to Quando cerco di accedere a http://localhost:8080/fun/test.php I get a blank screen. Mi appare una schermata vuota. 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 guardo la fonte, che contiene Sembra che Tomcat è il caricamento del file ma test.php Lo script PHP non è in esecuzione. I’ve tried this with and without the extra spaces in reflect.properties and servlet.properties and get the same behavior. Ho provato questo con e senza gli spazi in reflect.properties e servlet.properties e ottenere lo stesso comportamento. Thanks for your help! Grazie per il vostro aiuto!
Brian,
I think you missed step 10. Penso che vi siete persi punto 10. That creates the mapping between .php file and the servlet. Che crea il mapping tra. Php file e la servlet.
Please check and let me know. Verifica e fatemelo sapere.
January 24th, 2005 at 12:39 am 24 gennaio 2005 a 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> ho provato a ripetere il passaggio 10 ancora una volta, assumendo ho commesso un errore, ma è stata ancora in grado di arrivare a questo lavoro. Is the php5srvlt.jar supposed to be in the C:/php directory as well, or just the WEB-INF/lib? È il php5srvlt.jar dovrebbe essere nella cartella C: / php directory bene, o solo il 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 ho ricreare il vaso, è sufficiente a modificare il reflect.properties e servlet.properties file e sovrascrivere i file nel vaso o ho bisogno di utilizzare il comando java per ricostruire il vaso?
This is what my directory structure looks like: Questo è ciò che la mia struttura di directory appare come segue:
webapps/fun/ webapps / fun /
test.php
WEB-INF/ WEB-INF / /
/lib / lib
web.xml
php5srvlt.jar
Thanks again! Grazie ancora!
January 24th, 2005 at 1:36 am 24 gennaio 2005 a 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> ho provato a ripetere il passaggio 10 ancora una volta, assumendo ho commesso un errore, ma è stata ancora in grado di arrivare a questo lavoro.
Angsuman> Any errors in tomcat log files? Angsuman> Gli eventuali errori in Tomcat file di log?
Brian> Is the php5srvlt.jar supposed to be in the C:/php directory as well, or just the WEB-INF/lib? Brian> è il php5srvlt.jar dovrebbe essere nella cartella C: / php directory bene, o solo il WEB-INF/lib?
Angsuman> Just WEB-INF/lib should be fine. Angsuman> Just WEB-INF/lib dovrebbero andare bene.
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 ho ricreare il vaso, è sufficiente a modificare il reflect.properties e servlet.properties file e sovrascrivere i file nel vaso o ho bisogno di utilizzare il comando java per ricostruire il vaso?
Angsuman> I am not sure I understand. Angsuman> Io non sono sicuro di capire. You need to unjar the files, modify them and then rebuild the jar and deploy the new jar file. Devi unjar i file, modificarli e poi ricostruire il vaso e distribuire il nuovo file 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. Verificarlo controllando che i file sono stati effettivamente cambiato e che le informazioni di percorso dei file è identico a quello originale. The steps given, if followed to the dot should ensure that. I passi dato, se seguire per il punto che dovrebbe garantire.
Brian> This is what my directory structure looks like: Brian> Questo è ciò che la mia struttura di directory appare come segue:
webapps/fun/ webapps / fun /
test.php
WEB-INF/ WEB-INF / /
/lib / lib
web.xml
php5srvlt.jar
Angsuman> The directory structure is not clear from this comment. Angsuman> La struttura di directory non è chiara da questo commento. The php file should be under fun. Php file dovrebbe essere sotto il divertimento. WEB-INF/web.xml, WEB-INF/lib/*.jar should be the normal order of files. WEB-INF/web.xml, WEB-INF/lib / *. jar dovrebbe essere il normale ordine di file.
Specifically web.xml should be under WEB-INF directory and not under lib. Specificamente web.xml dovrebbe essere sotto WEB-INF directory e non sotto lib.
Hope that clarifies… Speranza che chiarisce…
January 24th, 2005 at 3:47 pm 24 gennaio 2005 a 3:47 pm
Well, I have a weird problem. Ebbene, io sono uno strano problema. Everything is set up, but I get this exception about gibberish: Tutto è creato, ma ottengo questa eccezione circa gibberish:
java.io.IOException: °?ü °?ü ¸?ü ¤Cü ü>– java.io.IOException: °? ü °? ü ¸? ü ü ¤ Cü> --
at net.php.servlet.send(Native Method) a net.php.servlet.send (metodo natale)
at net.php.servlet.service(servlet.java:190) a net.php.servlet.service (servlet.java: 190)
[snipped]
Do let me know if you have any information on this. Permettetemi di fare sapere se avete informazioni su questo.
Thanks, Grazie,
Sachin
January 24th, 2005 at 4:15 pm 24 gennaio 2005 a 4:15 pm
Sorry for a hasty post previously, that problem is solved. Siamo spiacenti per un frettoloso post precedentemente, il problema è risolto. I do have another problem, but I haven’t started working on solving it yet. Ho un altro problema, ma non ho iniziato a lavorare su risolvere ancora. Its about a fairly complex php page not displaying properly. Circa il suo un compito piuttosto complesso pagina PHP non visualizza correttamente. Will post more on that in case I can’t solve it. Pubblicherà ulteriori a che nel caso in cui non posso risolverlo. Once again, sorry for the big (and useless) post above. Ancora una volta, dispiace per il grande (e inutile) post sopra.
Thanks, Grazie,
Sachin
January 24th, 2005 at 4:20 pm 24 gennaio 2005 a 4:20 pm
No problem! Nessun problema! Let me know how it gies Sachin. Fammi sapere come logie Sachin. Do share if you have found something new. Do parti se si è trovato qualcosa di nuovo.
January 24th, 2005 at 11:57 pm 24 gennaio 2005 a 11:57 pm
I am receiving a similar error to what Sachin was getting and was wondering what the solution to that was? Sono ricezione di un errore simile a quello che è stato Sachin a ricevere e si chiedeva che cosa la soluzione che è stata? The first time I try to lead the page I am getting this error: La prima volta che cerco di portare la pagina che ottengo questo errore:
javax.servlet.ServletException: Servlet.init() for servlet php threw exception javax.servlet.ServletException: Servlet.init () per il php di servlet ha gettato eccezione
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java: 105)
[snipped]
root cause causa principale
java.lang.UnsatisfiedLinkError: no php5srvlt in java.library.path java.lang.UnsatisfiedLinkError: no php5srvlt in java.library.path
java.lang.ClassLoader.loadLibrary(Unknown Source) java.lang.ClassLoader.loadLibrary (Unknown Source)
[snipped]
When I reload the page I get this error: Quando ricaricare la pagina ottengo questo errore:
javax.servlet.ServletException: Servlet execution threw an exception javax.servlet.ServletException: esecuzione di Servlet ha gettato un 'eccezione
root cause causa principale
java.lang.UnsatisfiedLinkError: send java.lang.UnsatisfiedLinkError: trasmettere
net.php.servlet.send(Native Method) net.php.servlet.