Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Tomcat --> Apache
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
pwk
n00b
n00b


Joined: 05 Jun 2002
Posts: 5

PostPosted: Tue Aug 06, 2002 2:06 pm    Post subject: Tomcat --> Apache Reply with quote

I hope this is the right place to post this, I didn't see a Web section anywhere.

I've been beating my head against the wall trying to get Tomcat to play nice with Apache. Both servers run and serve pages fine on 8080 (Tomcat) and 80 (Apache), but when I boot Apache, mod_jk is puking out. I get the following in my logs:
[jk_connect.c (116)]: Into jk_open_socket
[jk_connect.c (123)]: jk_open_socket, try to connect socket = 6
[jk_connect.c (132)]: jk_open_socket, after connect ret = -1
[jk_connect.c (151)]: jk_open_socket, connect() failed errno = 111
[jk_ajp_common.c (599)]: In jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111

I assume the trouble starts with the "after connect ret=-1". I've dug through my set up about ten times now, I've commented and uncommented my worker.properties from top to bottom, I've been up and down my server.xml. Any ideas? Attached is my workers.properties with out comments.

workers.tomcat_home=/opt/jakarta/tomcat
workers.java_home=$(JAVA_HOME)
ps=/

worker.list=ajp13, ajp14
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1

worker.ajp14.port=8010
worker.ajp14.host=localhost
worker.ajp14.type=ajp14
worker.ajp14.secretkey=secret
worker.ajp14.credentials=myveryrandomentropy
worker.ajp14.lbfactor=1

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13
worker.inprocess.type=jni
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
worker.inprocess.cmd_line=start
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)libjvm.so
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr

Thanks in advance for any assistance.
Charlie
Back to top
View user's profile Send private message
cca93014
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jul 2002
Posts: 77
Location: London, UK

PostPosted: Fri Aug 09, 2002 11:12 am    Post subject: Reply with quote

Is anyone working on getting an ebuild together that supports apache + tomcat? It seems a bit crazy that it hasn't been done - I would have thought a lot of people use this setup...???
Back to top
View user's profile Send private message
n0n
Guru
Guru


Joined: 13 Jun 2002
Posts: 355

PostPosted: Thu Oct 17, 2002 5:21 pm    Post subject: Reply with quote

I'm currently working on a mod_jk ebuild, which'll hopefully tie Apache and Tomcat together. I'll post here if I ever get the thing working. :)
Back to top
View user's profile Send private message
Auka
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jul 2002
Posts: 110
Location: Germany

PostPosted: Fri Oct 18, 2002 7:16 pm    Post subject: Reply with quote

I have been using mod_webapp to get Apache plus Tomcat up and running.

But this really took me a few days until it finally worked. I compiled the module from a "special" CVS Version I found, all other versions didn't work for me... But now that it finally _is: running, I didn't have the slightest problems so far - for more than 3-4 months and even after various apache and tomcat updates...

A "Tomcat+Apache" ebuild in any form whatsoever would really be fine.

By the way, what I am still missing so far is a tomcat ebuild with a startup-script. One that is switching to an unprivileged user instead of running tomcat under root. (As done on all Tomcat Installations on other distros based on the official Jakarta RPMs.).
Maybe I will finally spend some time in the next few days to write one on my own during the nex few days...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum