Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-05-2004, 11:07 AM   #1
LQ Newbie
Registered: Oct 2003
Location: UK
Distribution: Slackware 9.1
Posts: 14

Rep: Reputation: 0
Question Error 503 Apache

Hello people,

I am totally confused by this.

I have successfully installed and set up tomcat and apache... independantly.

I am having major headaches integrating the two. I have created the mod_jk2 connector also.

When i goto http://localhost:8080/MyFirst/HelloWorld the helloworld servlet is called and displays correctly. If i use http://localhost/MyFirst/HelloWorld i get error 503 the service is not currently available.

What is going wrong

One thing i can say is, jk2.socket is supposed to be created when tomcat starts, it does not. I think this is the root cause of the problem.

Here is an excert from the apache error log file

[Mon Jul 05 16:45:05 2004] [error] channelUn.connect() connect failed 2 No such file or directory
[Mon Jul 05 16:45:05 2004] [error] ajp13.connect() failed ajp13:/usr/local/jakarta-tomcat/work/jk2.socket
[Mon Jul 05 16:45:05 2004] [error] ajp13.service() failed to connect endpoint errno=2 No such file or directory
[Mon Jul 05 16:45:05 2004] [error] ajp13.service() Error forwarding ajp13:/usr/local/jakarta-tomcat/work/jk2.socket 1 1
[Mon Jul 05 16:45:05 2004] [error] lb.service() worker failed 120000 for ajp13:/usr/local/jakarta-tomcat/work/jk2.socket
[Mon Jul 05 16:45:05 2004] [error] lb_worker.service() all workers in error or disabled state
[Mon Jul 05 16:45:05 2004] [error] mod_jk2.handler() Error connecting to tomcat 120000, status 503

here is an excert from catalina.out

05-Jul-2004 16:44:23 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
05-Jul-2004 16:44:24 org.apache.jk.server.JkMain start
INFO: APR not loaded, disabling jni components: java.lang.UnsatisfiedLinkError: /usr/local/apache2/modules/ /usr/local/apache2/modules/ undefined symbol: apr_md5_final
05-Jul-2004 16:44:24 org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /
05-Jul-2004 16:44:24 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=2/141 config=/usr/local/jakarta-tomcat/conf/
05-Jul-2004 16:44:24 org.apache.catalina.startup.Catalina start
INFO: Server startup in 4809 ms

is jk2 supposed to be listening on

if anyone knows WHAT is going on please please let me know

if more information is needed, then also let me know and ill post it here.


Old 07-07-2004, 06:36 PM   #2
LQ Newbie
Registered: Dec 2002
Posts: 12

Rep: Reputation: 0
I suspect Apache cannot locate your file based upon the output from error_log. I placed mine in APACHE_HOME/conf for now.

I believe a parm exists for for pointing to so you could place the file somewhere else.

Good luck, hope this helps


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
Apache Error (Internal Server Error) dwarf007 Linux - Software 1 07-17-2005 01:16 PM
SSL and 503 FTP Error :: Socket kuphryn Programming 0 03-30-2004 10:41 AM
google is down!! 503 server error thehundredthone General 7 03-25-2004 10:10 AM
nudian cd-503 external drive eaglewarrior99 Linux - Newbie 1 12-09-2003 04:15 PM
Mail problems 503 5.0.0 Need RCPT (recipient) Hylke Hogewind Linux - Software 3 04-03-2003 07:50 AM

All times are GMT -5. The time now is 11:42 AM.

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