※ ChatGPTを利用し、要約された質問です(原文:apacheとtomcatの連携)
apacheとtomcatの連携エラーと解決方法
2009/09/16 06:32
このQ&Aのポイント
質問者は、ApacheとTomcatの連携時にエラーが発生しており、特定の行を削除すると起動できることを発見しました。
Apacheのエラーログには、前回のApacheのシャットダウンが不正だったことや、Syntax Errorがあることが記録されています。
質問者は、エラーの原因を特定し、ApacheとTomcatの連携を正常に行いたいと考えています。
wpでapache2.2とtomcat5の連携を行いたいのですが
apacheを再起動すると下記のエラーが出ます。
何が悪いですか?
httpd.confの最後の行を削除すると起動ができるようになります。
#Include conf/extra/httpd-proxy.conf
apacheのエラーログ:
[Wed Sep 16 06:09:13 2009] [warn] pid file C:/Program Files/Apache Software Foundation/Apache2.2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed Sep 16 06:09:13 2009] [notice] Apache/2.2.13 (Win32) configured -- resuming normal operations
[Wed Sep 16 06:09:13 2009] [notice] Server built: Aug 6 2009 15:50:50
[Wed Sep 16 06:09:13 2009] [notice] Parent: Created child process 1712
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.3 for ServerName
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.3 for ServerName
[Wed Sep 16 06:09:13 2009] [notice] Child 1712: Child process is running
[Wed Sep 16 06:09:13 2009] [notice] Child 1712: Acquired the start mutex.
[Wed Sep 16 06:09:13 2009] [notice] Child 1712: Starting 64 worker threads.
[Wed Sep 16 06:09:13 2009] [notice] Child 1712: Starting thread to listen on port 80.
[Wed Sep 16 06:23:14 2009] [notice] Parent: Received restart signal -- Restarting the server.
[Wed Sep 16 06:23:14 2009] [notice] Child 1712: Exit event signaled. Child process is ending.
httpd.exe: Syntax error on line 487 of C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf: Syntax error on line 7 of C:/Program Files/Apache Software Foundation/Apache2.2/conf/extra/httpd-proxy.conf: </Location> without matching <Location> section
[Wed Sep 16 06:23:14 2009] [warn] (OS 995)スレッドの終了またはアプリケーションの要求によって、I/O 処理は中止されました。 : winnt_accept: Asynchronous AcceptEx failed.
[Wed Sep 16 06:23:15 2009] [notice] Child 1712: Released the start mutex
[Wed Sep 16 06:23:16 2009] [notice] Child 1712: All worker threads have exited.
[Wed Sep 16 06:23:16 2009] [notice] Child 1712: Child process is exiting
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.3 for ServerName
[Wed Sep 16 06:23:36 2009] [warn] pid file C:/Program Files/Apache Software Foundation/Apache2.2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed Sep 16 06:23:36 2009] [notice] Apache/2.2.13 (Win32) configured -- resuming normal operations
[Wed Sep 16 06:23:36 2009] [notice] Server built: Aug 6 2009 15:50:50
[Wed Sep 16 06:23:36 2009] [notice] Parent: Created child process 1728
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.3 for ServerName
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.3 for ServerName
[Wed Sep 16 06:23:36 2009] [notice] Child 1728: Child process is running
[Wed Sep 16 06:23:36 2009] [notice] Child 1728: Acquired the start mutex.
[Wed Sep 16 06:23:36 2009] [notice] Child 1728: Starting 64 worker threads.
[Wed Sep 16 06:23:36 2009] [notice] Child 1728: Starting thread to listen on port 80.
質問の原文を閉じる
質問の原文を表示する
お礼
<Location / > ProxyPass ajp://localhost:8009/ </Location> が Location / > ProxyPass ajp://localhost:8009/ </Location> こうなっていました。 気がつきませんでした。 ありがとうございました。