You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David Short <ds...@san.rr.com> on 2004/08/10 21:00:12 UTC
Apache2, Tomcat5 and servlets
Does anyone have Apache2.x redirecting servlet requests to Tomcat 5.x via
mod_jk2 working?
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: Apache2, Tomcat5 and servlets
Posted by Debra Bartling <ba...@peer.berkeley.edu>.
At 12:27 PM 8/10/2004 -0700, David Short wrote:
>Would you mind sharing your httpd.conf, workers2.properties, jk2.properties,
>server.xml and web.xml? Please...
Here are some notes on what I did:
1. Be sure Apache is working correctly (without jk2 or tomcat). If you're
upgrading from Apache 1.3 to 2.0 you need to go over the httpd.conf file
very carefully. You cannot just use the old one.
2. Be sure Tomcat is working correctly stand-alone on port 8080. (So you
know your server.xml and web.xml are OK.) Some potential problem areas:
If you running tomcat as an ordinary user (not root), be sure you have
permissions set correctly. I think the tomcat user needs access to the
temp, logs, and work directories, also web.xml (but not server.xml).
Remove the default stuff (the original webapps, conf/tomcat-users.xml, and
the xml files in conf/Catalina/localhost).
Make your own webapp (a simple hello world will do) and install it and make
sure it runs OK.
If you have an error message, try searching the tomcat-user and tomcat-dev
archives, You will probably find some matches.
3. Now add jk2. I built mine from the
jakarta-tomcat-connectors-jk2-2.0.4-src (The only binary I could find for
Solaris was jk2.0.2-solaris8-apache2.0.43 and I had some problems with that
one.)
jk2.properties: I didn't do anything to this file.
httpd.conf: Just add this section
LoadModule jk2_module modules/mod_jk2.so
<IfModule mod_jk.c>
JKSet config.file /opt/apache/conf/workers2.properties
</IfModule>
workers2.properties: I could not find good documentation on what is allowed
in this file, so this is based on the sample and some exchanges on this
list. I don't know if it's correct but it does work.
[shm]
file=anonymous
slots=150
#Set slots to httpd.conf MaxClients
debug=10
[logger]
level=DEBUG
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009
# Put your webapps here. For an application on a specific virtual host, I
found that it worked to put the virtual host name here:
[uri:www.myserver.edu/myapp/*]
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: Apache2, Tomcat5 and servlets
Posted by David Short <ds...@san.rr.com>.
Would you mind sharing your httpd.conf, workers2.properties, jk2.properties,
server.xml and web.xml? Please...
If so, would you mind sending them, as attachments, to dshort@san.rr.com?
-----Original Message-----
From: Debra Bartling [mailto:bartling@peer.berkeley.edu]
Sent: Tuesday, August 10, 2004 12:10 PM
To: Tomcat Users List
Subject: Re: Apache2, Tomcat5 and servlets
At 12:00 PM 8/10/2004 -0700, you wrote:
>Does anyone have Apache2.x redirecting servlet requests to Tomcat 5.x via
>mod_jk2 working?
Yes, I can confirm it works on Solaris 9, using Apache 2.0.50, Tomcat
5.0.27, and JK 2.0.4. With a little help from this list. (My configuration
was an upgrade from Apache 1.3.x and a very, very old version of mod_jserv,
so I think anything should be possible!)
Debra Bartling
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Apache2, Tomcat5 and servlets
Posted by Debra Bartling <ba...@peer.berkeley.edu>.
At 12:00 PM 8/10/2004 -0700, you wrote:
>Does anyone have Apache2.x redirecting servlet requests to Tomcat 5.x via
>mod_jk2 working?
Yes, I can confirm it works on Solaris 9, using Apache 2.0.50, Tomcat
5.0.27, and JK 2.0.4. With a little help from this list. (My configuration
was an upgrade from Apache 1.3.x and a very, very old version of mod_jserv,
so I think anything should be possible!)
Debra Bartling
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org