LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   mod_jk build successful, but 500:internal error (https://www.linuxquestions.org/questions/linux-enterprise-47/mod_jk-build-successful-but-500-internal-error-387594/)

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

Lzolcsi 11-29-2005 11:00 AM

Sorry, not 500 internal error, but 503: Service temporarily unavailable.
It was a Typo

Lzolcsi 11-29-2005 11:35 AM

Some changes:
I figured out, that Tomcat was not running because of some errors, so I reinstalled it, and started. Now it's almost OK.
I tried to open myadmin.lzolcsi .hu/teszt.jsp.
It said 404, but it wasn't an apache error, but a Tomcat error. So I placed teszt.jsp in apache-tomcat/webapps/ROOT, and it is OK now.
But this is not good for me. I'd like apache to open teszt.jsp from myadmin.lzolcsi.hu vhost's root, not from tomcat webroot.

Thanks again


All times are GMT -5. The time now is 11:53 PM.