Running php 5.x on windows using tomcat 4.x or 5.x実行中のphp 5.xのはWindows使用しているTomcat 4.xまたは5.xの
What it solves:どのようなことを解決:
- Using php 5.x on Tomcat 4.x or 5.xを使用してphp 5.xのはTomcat 4.xまたは5.xの
- Enabling php only in one web application, instead of globally. PHPのWebアプリケーションを有効に1つだけではなく、世界的にします。
The simplest possible configuration is described.最も単純な構成が可能な説明します。 The descriptions are terse assuming your intelligence.その説明は簡潔な知性と仮定しています。
We will assume php will be installed in c:\ drive.我々はPHPのがインストールされることを想定ではC : \ドライブに挿入します。 Substitute with drive letter of your choice.代わりにドライブ文字を選択します。
Instructions 指示
- Download latest php 5.x zip file.最新のphp 5.xのzipファイルをダウンロードします。
I used私使用される http://www.php.net/get/php-5.0.2-Win32.zip/from/a/mirror http://www.php.net/get/php-5.0.2-win32.zip/from/a/mirror .です。 - Download latest Collection of PECL modules.最新のコレクションのPECLモジュールをダウンロードします。 I used私使用される http://www.php.net/get/pecl-5.0.2-Win32.zip/from/a/mirror http://www.php.net/get/pecl-5.0.2-win32.zip/from/a/mirror .です。
- Unzip php 5.x zip file anywhere, normally c:\php zipファイルを解凍php 5.xのどこからでも、通常はc : \ PHPの
- Copy php.ini-dist, in c:\php , as php.iniコピーのphp.ini - distを、ではC : \ PHPの 、 php.iniの
- Uncomment the line (remove semi-colon at the beginning) in php.ini:行のコメントを外して(削除の冒頭にセミコロン) php.iniの:
;extension=php_java.dll ;拡張子= php_java.dll - Extract php5servlet.dll from pecl zip file to c:\php (Uncheck "Use Folder Names" in WinZip). peclの ZIPファイルからの抽出物にphp5servlet.dllをc : \ PHPの (チェックボックスをオフに"フォルダの名前を使用"をWinZipなど) 。
Ensure that the file is actually present in c:\php確保されているファイルは、実際に現在ではC : \ PHPの - Install Tomcat and create a directory under webapps. Tomcatのインストールディレクトリを作成するとされてwebappsか。 Lets say it is named fun .言ってやることが楽しいという名前を使用します。
- Create WEB-INF directory under fun WEB - INFディレクトリに作成されて楽しい
- Create lib directory under WEB-INF WEB - INFのlibディレクトリに作成されて
- Create web.xml under WEB-INF with the following contents: WEB - INFのweb.xmlに作成されては、次の内容:
php PHPの net.php.servlet php-formatterでPHP -フォーマッタ net.php.formatter php PHPの *.php *. PHPの php-formatterでPHP -フォーマッタ *.phps *. phps - Extract php5srvlt.jar and extract/unjar (jar xvf …) it under c:\エキスphp5srvlt.jarおよびエキス/ unjar -(瓶のx vf… )とされてc : \
- Modify both the files reflect.properties and servlet.properties to change the line library=phpsrvlt to library=php5servlet and save them.変更の両方のファイルの行を変更するにreflect.propertiesおよびservlet.properties ライブラリ= phpsrvltをライブラリ= php5servlet無しして保存する。 This indicates the file name of the dll file which is loaded by the Java application to serve the requests.これは、ファイル名のdllファイルが読み込まれるJavaアプリケーションの要求に奉仕する。 In my version the name of the dll was php5servlet.dll .私の名前は、 DLLのバージョンを指定するにphp5servlet.dllがします。 Your mileage may vary.お客様の走行距離は異なる場合があります。 This has no connection with the name of the jar file which can be anything.この接続ではないのjarファイルの名前を何かができる。
- Re-create the jar file jarファイルを再作成する
- Copy the jar file to WEB-INF\lib directory created earlier jarファイルをコピーしてウェブ- INF \ libにディレクトリを作成した
- Add c:\php to your System or User Path in Windows enironment (Hint: Right-click and select Properties from My Computer ) cを加えなさい: \ PHPをお使いのシステムまたはユーザのパスをWindows enironment (ヒント:右クリックし、 [プロパティ]から[マイコンピュータ] )
- Create a file test.php under fun with the following code:ファイルを作成し、 test.phpを楽しみにされては、次のコード:
- Start Tomcat (Go to [Tomcat installation directory]\bin and type Tomcat).スタート]ボタンをTomcatの(全個体を[ Tomcatのインストールディレクトリ] \ binとタイプのTomcat ) 。
- Open your browser and go to http://localhost:8080/fun/test.phpお使いのブラウザを開いて行くhttp://localhost:8080/fun/test.php
- Ensure that there are no errors displayed.のエラーが表示されていないことを確認します。 Instead you get an informative screen with php version information and whole lot of details情報を取得する代わりに画面全体にPHPのバージョン情報とたくさんの詳細
Let me know if this document is helpful to you.させてこの文書には役に立ちましたかどうかです。
Update: Made minor revision to highlight some key elements.更新プログラム:小規模改訂はいくつかの重要な要素を強調します。
Solutions to common problems by users: 共通の問題を解決策をご利用の場合:
Whoever is getting this error “java.lang.UnsatisfiedLinkError: no php5servlet in java.library.path”.誰でもこのエラーは、就学許可証" java.lang.unsatisfiedlinkerror : java.library.pathのphp5servlet無し"です。 Please check the two properties file, whether there are any blank spaces. 2つのプロパティを確認してくださいファイルを、任意の空白スペースがあるかどうかです。 I was stuck in this problem for 2 days.私はこの問題を回避するため2日間で身動きが取れない。 There should be only one line, and no blank spaces. 1つだけ存在する必要があります行を空白スペースがない。 Check it now!!!.今すぐチェック!です。 This is where the problem is lying.これは、どこに問題が横たわっています。
–Arundhati - arundhati
The versions of php and pecl must be the same.ののバージョンのPHPおよびPECLは同じでなければなりません。
–Mirek Mocek -ミレックmocek
You might want to add a reboot step at the end of your instructions.をお勧めしますステップを追加するには、最後に再起動して指示に従います。 It would eliminate a lot of the problems with the unsatisfied link errors.それは多くの問題を排除するの不満足なリンクエラーが発生します。
– Chuck Rosendahl -チャックローゼンダール
Note: 注記:
If you find this tutorial useful, please consider donating and enjoy the pleasure of giving.このチュートリアルが見つかった場合は便利ですが、ご検討の喜びを与える寄付し、お楽しみです。
Filed under提出されて Headline Newsニュースの見出し , 、 How Toどのように , 、 Java Software Javaソフトウェア , 、 PHP PHPの , 、 Technology技術 , 、 Webウェブ , 、 Web Services Webサービス | |
| |
RSS 2.0 RSS 2.0を | |
Trackbackトラックバック this Article |この記事|
Email this Article電子メールこの記事
You may also like to readを読むようにすることも可能 |
The comments are currently closed for this post.閉鎖のコメントは現在、この投稿します。



December 20th, 2004 at 8:41 am 2004年12月20日は午前8時41時
I tried this b4 (http://analogueboy.blogspot.com/#106959689637832829) but it wasn’t very reliable.このB4面てみました( http://analogueboy.blogspot.com/ # 106959689637832829 )しかし、非常に信頼性はないことです。 I tried to run phpbb under tomcat and it repeated failed. phpBBのされてみましたのTomcatを実行することを繰り返し失敗しました。 Have you found the process to be more reliable under php5?ここに他の信頼性が発見され、プロセスをPHP5のですか?
December 20th, 2004 at 1:27 pm 2004年12月20日は午後1:27
The system was stable so long you didn’t have to reload the web application.長いので、システムが安定していないが、 Webアプリケーションをリロードします。 In the given installation scenario the jar which loaded the native dll is loaded from the web application context.は、与えられたシナリオでは、 JARファイルのインストールが読み込まれ、ネイティブDLLが読み込まれ、 Webアプリケーションのコンテキストからです。 So re-loading web application causes problem.これが原因で問題を再Webアプリケーションを読み込んでいます。 It is better to restart Tomcat.のTomcatを再起動する方が良いです。 However I presume that will be gone if the jar is moved to common/lib.しかし私が去った後にJARファイルに移動して共通の場合、 / libにコピーします。
December 28th, 2004 at 7:43 am 2004年12月28日7:43アム
im getting this errorイム就学許可証のこのエラー
javax.servlet.ServletException: Servlet execution threw an exception javax.servlet.ServletException : Servlet実行は例外を投げた
root cause根本的な原因
java.lang.UnsatisfiedLinkError: send java.lang.UnsatisfiedLinkError :送り
net.php.servlet.send(Native Method)なさいnet.php.servlet.send (原産方法)
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 2004年12月30日は2:20アム
# Extract php5srvlt.jar and extract/unjar (jar xvf …) it under c:\ #エキスphp5srvlt.jarおよびエキス/ unjar -(瓶のx vf… )とされてc : \
WHAT DO YOU MEAN BY THIS LIGNEこれは何を意味しリーニュ
# Modify both the files reflect.properties and servlet.properties to change the line library=phpsrvlt to library=php5servlet and save them #変更の両方のファイルの行を変更するにreflect.propertiesおよびservlet.propertiesライブラリ= phpsrvltをライブラリ= php5servlet無しして保存する
HERE I CAN’T FIND REFLET AND SERVLET.PROPERTIES?ここに私を見つけることができません虹色およびservlet.propertiesですか?
# Re-create the jar file #再作成してjarファイル
HERE ALSO WITCH FILEここも魔女ファイル
# Copy the jar file to WEB-INF\lib directory created earlier # jarファイルをコピーしてウェブ- INF \ libにディレクトリを作成した
# Add c:\php to your System/User Path in Windows enironment (Hint: Right-click and select Properties from My Computer) # cを加えなさい: \ PHPをお使いのシステム/ユーザのパスをWindows enironment (ヒント:右クリックし、 [プロパティ]から[マイコンピュータ] )
# Create a file test.php under fun with the following code: #ファイルを作成し、 test.phpを楽しみにされては、次のコード:
< ?php phpinfo(); ?> <ですか? phpのphpinfo ( ) ;ですか? >
# Start Tomcat (Go to [Tomcat installation directory]\bin and type Tomcat). #スタート]ボタンをTomcatの(全個体を[ Tomcatのインストールディレクトリ] \ binとタイプのTomcat ) 。
# Open your browser and go to #お使いのブラウザを開いて行く http://localhost:8080/fun/test.php
# Ensure that there are no errors displayed. #エラーが表示されていないことを確認します。 Instead you get an informative screen with php version information and whole lot of details情報を取得する代わりに画面全体にPHPのバージョン情報とたくさんの詳細
I FIND THIS IN INTERNET = IT DOESN’私これを見つけることではインターネット= '
T WORK仕事トン
the php5 version of phpsrvlt.jar is not working correctly because of a phpsrvlt.jarを得るのバージョン、 PHP5のため、正常に動作ではない
mistake in間違いで
net\php\reflect.properties当期純\ PHPの\ Reflect.propertiesに
andおよび
net\php\servlet.properties当期純\ PHPの\ servlet.propertiesの
there’s one space after the library name that should be stripped. 1つのスペースがライブラリの名前の後に剥奪されるべきです。
after doing this i’ve no problem using php5 out of an java appserver.私はこんなことをした後PHP5のアウトを使用して問題のないJavaのAppServerです。
mfg,みずほFG 、
28 Oct 1:30pm CEST] MerlinDMC at t-online dot de 10月28日1:30分00秒] merlindmcはtオンラインドットデ
CAN YOU HELP ME PLEASEことを手伝っていただけませんか?
December 30th, 2004 at 2:30 am 2004年12月30日の午前2時30分
Etat HTTP 500 -のEtat http 500 -
——————————————————————————– ---------------------------
type Rapport d’exceptionタイプrapport d'例外
messageメッセージが表示さ
description Le serveur a rencontré une erreur interne () qui l’a empêché de satisfaire la requête.説明書ルserveur rencontréのuneのerreurインターネット( )ホームl'をempêché de satisfaireのlaのrequête 。
exception例外
javax.servlet.ServletException: L’exécution de la servlet a lancé une exception場合javax.servlet.ServletException : l' exécutionデラサーブレットをlancé une例外
cause mère原因mère
java.lang.UnsatisfiedLinkError: send java.lang.UnsatisfiedLinkError :送り
net.php.servlet.send(Native Method)なさいnet.php.servlet.send (原産方法)
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.注:ラトレースcomplète deのlaの原因mère de cetteのerreurはdisponible dansのles fichiers journaux deアパッシュTomcat/5.5.6です。
January 2nd, 2005 at 2:59 pm 2005年1月2日は2:59 pmの
I don’t understand Spanish.私には分からないスペイン語です。 However I believe the content of the two comments above are the same - UnsatisfiedLinkError.しかし私は信じては、上記の内容を2つのコメントと同じ-u nsatisfiedlinkerrorです。
As the jar file is placed under web-inf/lib directory realoding the web container causes the dll to be reloaded again which fails. jarファイルをWEB-INF/libディレクトリに置かれて、 Webコンテナがrealoding DLLを再読み込みが原因で、再びこれは失敗します。
The simplest solution is to restart the server whenever there is a need to restart the web conatiner.最も単純な解決策は、サーバーを再起動するたびにする必要があるウェブconatinerを再起動する。 However to eliminate the problem totally you can place the jar under common/lib directory.しかし完全にこの問題を排除するためのjarの下に置くこともできます共通/ libディレクトリです。 That way it is loaded the tomcat classloader and is not restarted when the web container is restarted.そのようにしているTomcatのclassloaderが読み込まれていないWebコンテナを再起動するときに再起動します。
Let me know if that helps.させて知っている場合に役立つ。
January 2nd, 2005 at 3:05 pm 2005年1月2日は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.法案> phpsrvlt.jarを得るのバージョン、 PHP5のではないミスが原因で正常に動作し、純\ PHPの\ reflect.propertiesおよび当期純\ PHPの\ servlet.propertiesのです。 There’s one space after the library name that should be stripped. 1つのスペースがライブラリの名前の後に剥奪されるべきです。 After doing this i’ve no problem using php5 out of an java appserver.私はこんなことをした後PHP5のアウトを使用して問題のないJavaのAppServerです。
The problem has been addressed in steps 11-13 above (quoted below for convenience):この問題に対処さは、上記の手順を実行11-13 (利便性を引用してください) :
11. 11 。 Extract php5srvlt.jar and extract/unjar (jar xvf …) it under c:\エキスphp5srvlt.jarおよびエキス/ unjar -(瓶のx vf… )とされてc : \
12. 12 。 Modify both the files reflect.properties and servlet.properties to change the line library=phpsrvlt to library=php5servlet and save them変更の両方のファイルの行を変更するにreflect.propertiesおよびservlet.propertiesライブラリ= phpsrvltをライブラリ= php5servlet無しして保存する
13. 13 。 Re-create the jar file jarファイルを再作成する
January 16th, 2005 at 2:48 am 2005年1月16日の午前9:48
Hi.やあ。 I followed all the steps with no problem.私は何の問題のすべての手順を実行します。 The only difference was at step 11 (”Extract php5srvlt.jar and extract/unjar (jar xvf …) it under c:”).唯一の違いはステップ11 ( "エキスphp5srvlt.jarおよびエキス/ unjar -(瓶のx vf… )とされてc : " ) 。 Extract from where?抽出物からどこですか? I suppose it’s located in PECL zip file.私はそれpeclのZIPファイルに位置します。 There was only “phpsrvlt.jar” so I used that instead.があったのみ" phpsrvlt.jarを得る"だから私の代わりに使用しています。 Everything else was fine.それ以外は素晴らしいです。
Now step 19: on the first page request from the browser I get following error:今すぐステップ19 :上の最初のページにブラウザからのリクエストにいい次のようなエラー:
java.lang.IllegalAccessError: tried to access method net.php.reflect.loadLibrary(Ljava/lang/String;)V from class net.php.servlet java.lang.illegalaccesserror :メソッドにアクセスしようとnet.php.reflect.loadlibrary ( ljava /ラング/文字列; ) v出典クラス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: …のすべてのページリクエストの結果を、このエラー:
java.lang.UnsatisfiedLinkError: send java.lang.UnsatisfiedLinkError :送り
net.php.servlet.send(Native Method)なさいnet.php.servlet.send (原産方法)
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?!私はかなり確信して私はすべての手順を実行ので、ここでの問題かもしれないですか? ! I’m using Tomcat 5.5.4 and PHP 5.0.3…私は使用しているTomcat 5.5.4およびPHP 5.0.3を…
Thanks in advance for your help.あなたの助けのおかげでのための前払いです。
January 16th, 2005 at 4:08 am 2005年1月16日4:08 AMの
Lukas> The only difference was at step 11 (”Extract php5srvlt.jar and extract/unjar (jar xvf …) it under c:”).ルーカス>の唯一の違いはステップ11 ( "エキスphp5srvlt.jarおよびエキス/ unjar -(瓶のx vf… )とされてc : " ) 。 Extract from where?抽出物からどこですか? I suppose it’s located in PECL zip file.私はそれpeclのZIPファイルに位置します。 There was only “phpsrvlt.jar” so I used that instead.があったのみ" phpsrvlt.jarを得る"だから私の代わりに使用しています。 Everything else was fine.それ以外は素晴らしいです。
Angsuman> I meant extract the contents of phpsrvlt.jar.のAngsuman > phpsrvlt.jarを得るの内容を抽出するんじゃなくて。 The idea is to change the content of the two properties file within the jar file.のアイデアの内容を変更するには2つのファイル内のjarファイルのプロパティです。 And yes you will get the jar file in pecl.zip.とはいあなたは、 jarファイルを入手してpecl.zipです。
Lukas>Now step 19: on the first page request from the browser I get following errorルーカス>今すぐステップ19 :上の最初のページにブラウザからのリクエストに次のエラーがよい
Angsuman> Please make the changes and let me know if you still face the problem.のAngsuman >までには、変更内容をご存知でしたら、私かどうか、まだ問題に直面する。
January 18th, 2005 at 4:15 pm 2005年1月18日4:15 pmの
Hi.やあ。 I’m using Tomcat 5.5.4 with PHP 5.03.私はTomcat 5.5.4を使用して、 PHP 5.03のです。 I’ve followed all the instuctions above and got to step 19.私は上記のすべてのinstuctionsに続くとは手順19 。 When I go toへ行くとき http://localhost:8080/fun/test.php I get a blank screen.私、空白の画面を表示します。 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.ときに私のソースを見て、それは<ですか? phpのphpinfo ( ) ;ですか? > Tomcatがされていることがtest.phpファイルを読み込んでいますが、 phpのスクリプトが実行されています。 I’ve tried this with and without the extra spaces in reflect.properties and servlet.properties and get the same behavior.私はこれをしようとせず、余分なスペースを入手してreflect.propertiesおよびservlet.propertiesと同じ行動をします。 Thanks for your help!助けてくれてありがとう!
January 18th, 2005 at 4:33 pm 2005年1月18日4:33 pmの
Hi.やあ。 That last message was supposed to say “it contains phpinfo();” but the website didn’t like the LT/GT ?あの最後のメッセージが表示さに言う言葉は"それはのphpinfo ( ) ; "しかし、ウェブサイトのようにしなかったlt / gtですか?
January 23rd, 2005 at 4:23 am 2005年1月23日4:23アム
Finally got it working!やっとて働いています! The problem was in my classpath setup.私のクラスパスの問題は、セットアップを実行します。 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)…私はphp_java.jar異なる2つのファイルをアクセスすることは、すべてのクラスとJavaと混同して(だから私はまだ就学許可証のこの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.今すぐかどうか迷っあった場合はJavaコードを呼び出すようにサーブレットのJVMより、実際の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).をもっと具体的に話し:私のJavaシングルトンを作成する必要がこのPHPのコードを共有するすべてのサーバーでPHP -シングルトンに要求(私はPHP -ジャワの統合を使用してP HPオブジェクトジャワ[ i eです。 <ですか? P HPの$私=新しいJ ava( 'ジャワです。 lang.integer ' ) ;ですか? > "しかしPHPのinterpretterは、最低1つのページごとに余分なJVMのことinterpretted ) 。 Any ideas?何かお考えですか? Thanks…ありがとう…
January 23rd, 2005 at 3:54 pm 2005年1月23日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.ルーカス>するかどうか迷っあった場合はJavaコードを呼び出すようにサーブレットのJVMより、実際の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).をもっと具体的に話し:私のJavaシングルトンを作成する必要がこのPHPのコードを共有するすべてのサーバーでPHP -シングルトンに要求(私はPHP -ジャワの統合を使用してP HPオブジェクトジャワ[ i e。 ]しかしP HPのi nterpretterは、最低1つのページごとに余分なのJ VMそれinterpretted ) 。 Any ideas?何かお考えですか? Thanks…ありがとう…
There is a simple way and there is a complicated wayには、簡単な方法と複雑な方法には、
The simple way would be to write a jsp page which contains the desired code and load the page from php code.単純な方法は、 JSPページを書くために、目的のコードが含まれ、 PHPコードからページをロードしています。
January 23rd, 2005 at 3:55 pm 2005年1月23日は3:55 pmの
Brian> Hi.ブライアン>こんにちは。 I’m using Tomcat 5.5.4 with PHP 5.03.私はTomcat 5.5.4を使用して、 PHP 5.03のです。 I’ve followed all the instuctions above and got to step 19.私は上記のすべてのinstuctionsに続くとは手順19 。 When I go toへ行くとき http://localhost:8080/fun/test.php I get a blank screen.私、空白の画面を表示します。 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.ときに私のソースを見て、それが含まれてTomcatがされているファイルを読み込んでいますがtest.phpではないが、 phpのスクリプトを実行中です。 I’ve tried this with and without the extra spaces in reflect.properties and servlet.properties and get the same behavior.私はこれをしようとせず、余分なスペースを入手してreflect.propertiesおよびservlet.propertiesと同じ行動をします。 Thanks for your help!助けてくれてありがとう!
Brian,ブライアン、
I think you missed step 10.手順10を逃したと思う。 That creates the mapping between .php file and the servlet.との間のマッピングを作成します。 phpファイルとサーブレットのです。
Please check and let me know.ご確認とさせてください。
January 24th, 2005 at 12:39 am 2005年1月24日の12:39時
Angsuman> I tried repeating step 10 again, assuming I made a mistake, but was still unable to get this to work.のAngsuman >ステップ10を再度繰り返してみました、ミスを犯したと仮定私が、これはまだ仕事を取得できません。 Is the php5srvlt.jar supposed to be in the C:/php directory as well, or just the WEB-INF/lib?は、 php5srvlt.jarのはずして、 C : / phpのディレクトリにええと、または単にの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???私が瓶を作り直す、ではそれを編集するに足りるreflect.propertiesおよびservlet.propertiesファイルとのjarファイルを上書きしたりすればよいjavaコマンドを使用する必要が瓶を再構築するのですか?ですか?ですか?
This is what my directory structure looks like:これは私のディレクトリ構造は次のよう:
webapps/fun/ webappsか/楽しい/
test.php test.phpを
WEB-INF/ WEB - INFの/
/lib / libに
web.xml web.xmlの
php5srvlt.jar php5srvlt.jarの
Thanks again!再度ありがとう!
January 24th, 2005 at 1:36 am 2005年1月24日は1:36アム
Brian> I tried repeating step 10 again, assuming I made a mistake, but was still unable to get this to work.ブライアン>ステップ10を再度繰り返してみました、ミスを犯したと仮定私が、これはまだ仕事を取得できません。
Angsuman> Any errors in tomcat log files?のAngsuman > Tomcatのログファイルにエラーがですか?
Brian> Is the php5srvlt.jar supposed to be in the C:/php directory as well, or just the WEB-INF/lib?ブライアン> "がphp5srvlt.jarのはずして、 C : / phpのディレクトリにええと、または単にのWEB-INF/libですか?
Angsuman> Just WEB-INF/lib should be fine.のAngsuman >だけINF / libすればうまくいくはずです。
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???ブライアン>私が瓶を作り直す、ではそれを編集するに足りるreflect.propertiesおよびservlet.propertiesファイルとのjarファイルを上書きしたりすればよいjavaコマンドを使用する必要が瓶を再構築するのですか?ですか?ですか?
Angsuman> I am not sure I understand.のAngsuman >私は理解を確認します。 You need to unjar the files, modify them and then rebuild the jar and deploy the new jar file.する必要があります。 unjar -のファイルを、修正して再構築すると入力し、 J ARファイルと、新しいj arファイルを展開します。 Verify it by checking that the files have actually been changed and that the path information of the files is identical to the original.それを確認していることを確認され、これらのファイルに変更を加えたり、実際には、パスの情報を元のファイルと同じです。 The steps given, if followed to the dot should ensure that.の手順を実行与えられた場合、その後にドットの場合は、確認してください。
Brian> This is what my directory structure looks like:ブライアン>これは私のディレクトリ構造は次のよう:
webapps/fun/ webappsか/楽しい/
test.php test.phpを
WEB-INF/ WEB - INFの/
/lib / libに
web.xml web.xmlの
php5srvlt.jar php5srvlt.jarの
Angsuman> The directory structure is not clear from this comment.のAngsuman >のディレクトリ構造が明らかではありませんから、このコメントは得られなかった。 The php file should be under fun.は、 PHPファイルはされて楽しいです。 WEB-INF/web.xml, WEB-INF/lib/*.jar should be the normal order of files.網INF / web.xml 、 INF / lib / *. JARファイルの順序をすべきである、通常のファイルです。
Specifically web.xml should be under WEB-INF directory and not under lib.具体的web.xmlのWEB - INFディレクトリの下にすべきであると特定されてlibにコピーします。
Hope that clarifies…期待して明白になる…
January 24th, 2005 at 3:47 pm 2005年1月24日3:47 pmの
Well, I have a weird problem.ええと、私には奇妙な問題です。 Everything is set up, but I get this exception about gibberish:すべてがセットアップするが、私にこの例外についてはちんぷんかんぷんな話:
java.io.IOException: °?ü °?ü ¸?ü ¤Cü ü>– java.io.IOException : °か。 ü °ですか? ü ¸ですか? cü ¤ ü ü > -