LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
Search this Thread
Old 11-29-2005, 11:59 AM   #1
Lzolcsi
LQ Newbie
 
Registered: Apr 2005
Posts: 12

Rep: Reputation: 0
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
 
Old 11-29-2005, 12:00 PM   #2
Lzolcsi
LQ Newbie
 
Registered: Apr 2005
Posts: 12

Original Poster
Rep: Reputation: 0
Sorry, not 500 internal error, but 503: Service temporarily unavailable.
It was a Typo
 
Old 11-29-2005, 12:35 PM   #3
Lzolcsi
LQ Newbie
 
Registered: Apr 2005
Posts: 12

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Additionally, a 500 Internal Server Error error was encountered while trying to use a ukrainet Linux - General 10 06-24-2005 03:23 AM
500 internal error when running test.pl shizzle Linux - Networking 1 05-19-2005 07:39 AM
Internal Error 500 cannot be fixed cpanelskindepot Linux - General 1 10-25-2004 01:46 PM
HELP! CGI problem : HTTP 500 - Internal server error eech55 Programming 2 10-11-2004 12:27 PM
dns and 500 internal server error.. Flawless Slackware 4 08-24-2003 12:08 AM


All times are GMT -5. The time now is 09:05 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration