Hi, I did have a similar setup so I hope my comments below help you. Regards, Glenn Drew
---------------------------------------------------------------------------- ------- Director GEESOFT PTY LTD ----- Original Message ----- From: "R. C. Hill" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 03, 2002 7:38 PM Subject: Apache Tomcat mod_jk problem > Hi, > I'm trying to use the mod_jk connector with Apache 2.0.43 (Win32) and Tomcat > 4.1.10. When I add the Include "c:/tomcat/conf/auto/mod_jk.conf" line in the > apache httpd.conf file, apache will not start. No sign of an error in the > error.log file. I'm stumped...it should work?! Does anyone know what I'm > doing wrong? > > I configured them as follows: > > 1.) I downloaded the mod_jk-2.0.43.dll and placed it in the C:\Program > Files\Apache Group\Apache2\modules directory Good. > > 2.) Created workers.properties in the C:\tomcat\conf\jk directory. > > # (optional) make this equal to CATALINA_HOME > workers.CATALINA_HOME="C:\tomcat" > > # (optional) make this equal to JAVA_HOME > workers.java_home="C:\j2sdk1.4.0_01" > > # Windows uses back slashes > ps=\ > worker.list=ajp13 > > # Definition for Ajp13 worker > worker.ajp13.port=8009 > worker.ajp13.host=localhost > worker.ajp13.type=ajp13 > Good So far. > 3.) I added the following to tomcat's server.xml: > > After the <Server port="8005" ...> declaration: > > <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" > modJk="C:\Program Files\Apache > Group\Apache2\modules\mod_jk-2.0.43.dll" > jkDebug="info" > workersConfig="C:\tomcat\conf\jk\workers.properties" > jkLog="C:\tomcat\logs\mod_jk.log"/> I felt that hard coding my mod_jk.conf file rather than dynamically building it more useful particularily when you change things. I have attached both my workers.properties and mod_jk-manual.conf file. Use it if you like. Copy the file into the mod_jk.conf directory and change the end of httpd.conf to: Include c:/tomcat/conf/auto/mod_jk-manual.conf (I do not use quotes) Also, when you refer to the module, use c:\progra~1\apache~1\apache2\modules\mod_jk-2.0.43.dll and keep it on the same line. This should make no difference, but just to be safe. > > <!-- Define an AJP 1.3 Connector on port 8009 --> > <Connector className="org.apache.ajp.tomcat4.Ajp13Connector" > port="8009" minProcessors="5" maxProcessors="75" > acceptCount="10" debug="0"/> I use the Coyote/JK2 AJP 1.3 Connector and set to port 8009 > > <!-- Define the default virtual host --> > <Host name="localhost" debug="0" appBase="webapps" > unpackWARs="true" autoDeploy="true"> Good > > 4.) Added to the end of the apache httpd.conf file: > Include "c:/tomcat/conf/auto/mod_jk.conf" Beware if you use the manual file to make sure the filename is correct. > > 5.) The contents of C:\tomcat\conf\auto\mod_jk.conf shows: > > <IfModule !mod_jk.c> > LoadModule jk_module C:/Program Files/Apache > Group/Apache2/modules/mod_jk-1.3.27.dll Ahh! You quoted mod_jk-2.0.43.dll in your server.xml. But it is wrong here. Check to make sure it is consistent with whatever you named the module in Apachehome\modules. > </IfModule> > > JkWorkersFile "C:/tomcat/conf/jk/workers.properties" > JkLogFile "C:/tomcat/logs/mod_jk.log" > > JkLogLevel info > > You also need to create a servlet Context in server.xml and have a corresponding web.xml file configured. Look at the Tomcat docs for assistance on this one. I think the example webapps is done for you. To test if your servlet is working... Compile your servlet with an init() method that prints a diagnostic message. public void init() { System.out.println("The servlet is starting for the first time"); } and see if this pops out when you direct your browser to the url http:\\localhost\command\servlet\[YourServlet as defined in the web.xml file] I hope this helps in some way. Regards Glenn Drew > Any help would be much appreciated! > Thanks, > - R > > > _________________________________________________________________ > STOP MORE SPAM with the new MSN 8 and get 2 months FREE* > http://join.msn.com/?page=features/junkmail > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > >
workers.properties
Description: Binary data
mod_jk.conf-manual
Description: Binary data
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>