Lzolcsi |
11-29-2005 10:59 AM |
mod_jk build successful, but 500:internal error
Hi there,
I successfully installed Apache2 and Tomcat on my Debian Linux. After that, I tried to connect them with mod_jk. I succesfully compiled it, and gave a --prefix=/usr/local/mod_jk, however, it didn't create this directory, instead copied mod_jk to apache2/modules. That's ok. But the problem comes:
I set up the config as follows:
httpd.conf:
Code:
LoadModule jk_module modules/mod_jk.so
JkWorkersFile /usr/local/apache2/conf/extra/workers.properties
JkLogFile /usr/local/apache2/logs/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
JkMount /*.jsp ajp13
workers.properties:
Code:
workers.tomcat_home=/usr/local/apache-tomcat
workers.java_home=/opt/SUNWappserver/jdk
ps=/
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
And the mod_jk.log is:
Code:
[Tue Nov 29 17:20:42 2005][info] jk_open_socket::jk_connect.c (444): connect to 127.0.0.1:8009 failed with errno=111
[Tue Nov 29 17:20:42 2005][info] ajp_connect_to_endpoint::jk_ajp_common.c (889): Failed opening socket to (127.0.0.1:8009) with (errno=111)
[Tue Nov 29 17:20:42 2005][info] ajp_send_request::jk_ajp_common.c (1248): Error connecting to the Tomcat process.
[Tue Nov 29 17:20:42 2005][info] ajp_service::jk_ajp_common.c (1749): Sending request to tomcat failed, recoverable operation attempt=1
[Tue Nov 29 17:20:42 2005][info] jk_open_socket::jk_connect.c (444): connect to 127.0.0.1:8009 failed with errno=111
[Tue Nov 29 17:20:42 2005][info] ajp_connect_to_endpoint::jk_ajp_common.c (889): Failed opening socket to (127.0.0.1:8009) with (errno=111)
[Tue Nov 29 17:20:42 2005][info] ajp_send_request::jk_ajp_common.c (1248): Error connecting to the Tomcat process.
[Tue Nov 29 17:20:42 2005][info] ajp_service::jk_ajp_common.c (1749): Sending request to tomcat failed, recoverable operation attempt=2
[Tue Nov 29 17:20:42 2005][info] jk_open_socket::jk_connect.c (444): connect to 127.0.0.1:8009 failed with errno=111
[Tue Nov 29 17:20:42 2005][info] ajp_connect_to_endpoint::jk_ajp_common.c (889): Failed opening socket to (127.0.0.1:8009) with (errno=111)
[Tue Nov 29 17:20:42 2005][info] ajp_send_request::jk_ajp_common.c (1248): Error connecting to the Tomcat process.
[Tue Nov 29 17:20:42 2005][info] ajp_service::jk_ajp_common.c (1749): Sending request to tomcat failed, recoverable operation attempt=3
[Tue Nov 29 17:20:42 2005][error] ajp_service::jk_ajp_common.c (1758): Error connecting to tomcat. Tomcat is probably not started or is listening on the wro
ng port. worker=ajp13 failed
[Tue Nov 29 17:20:42 2005][info] jk_handler::mod_jk.c (1971): Service error=0 for worker=ajp13
If I try to open myadmin.lzolcsi. hu/teszt.jsp (which is just a test file), I get the following in the browser:
Code:
Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Apache/2.1.7 (Unix) mod_ssl/2.1.7 OpenSSL/0.9.8 PHP/5.0.4 mod_jk/1.2.14 Server at myadmin.lzolcsi.hu Port 80
What could I do now?
Do you have any idea what to do?
Thank you
|