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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to