My apologies - I sent the updated server.xml right after. I had actually originally followed John's how-to but couldn't even get to the static pages in my webapps directory. So based on someon else's suggestion, I opted not to use the mod_jk.conf file and instead place directives directly into my httpd.conf file. They also suggested the workers.properties file as I have it. I tried to change host=localhost but that did not change anything. It still gets hung up when I try to execute the servlets and jsp's.
Thanks. Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -----Original Message----- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 11:28 AM To: 'Tomcat Users List' Subject: RE: Mod_jk - won't execute jsp or servlets In the attached server.xml, active ajp13 is - <!-- 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" /> the one you show below is actually commented out in the file That said, I would suggest you modify your workers.properties file to worker.list=worker1 worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 localhost is the standard domain name for the loopback interface 127.0.0.1, which is usually the default IP address on which TOMCAT listens if I recall. For the two mod_jk implementation I have set up on Linux, I have left this as localhost. this is also how they show it in the sample file found at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html and on his how to list, John Turner States the following, http://www.johnturner.com/howto/apache1-tomcat404-howto.html, 5) Create a file in CATALINA_HOME/conf/jk called workers.properties. That file should look like this: # BEGIN workers.properties # # Setup for apache system # # (optional) make this equal to CATALINA_HOME workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.4 # # (optional) make this equal to JAVA_HOME workers.java_home=/usr/java/j2sdk1.4.0_01 # ps=/ worker.list=ajp13 # Definition for Ajp13 worker # worker.ajp13.port=8009 # change this line to match apache ServerName and Host name in server.xml worker.ajp13.host=localhost worker.ajp13.type=ajp13 # # END workers.properties He uses ajp13 where you use worker1 Jeff -----Original Message----- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 9:16 AM To: 'Tomcat Users List' Subject: RE: Mod_jk - won't execute jsp or servlets Hello :) Here is the content of my workers.properties file: worker.list=worker1 worker.worker1.type=ajp13 worker.worker1.host=www.ptpweb.com worker.worker1.port=8009 In my server.xml file I have left everything as the defaults. Right now there are only two connectors that are NOT commented out and those are <!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --> <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8080" minProcessors="5" maxProcessors="75" enableLookups="true" redirectPort="8443" acceptCount="100" debug="0" connectionTimeout="20000" useURIValidationHack="false" disableUploadTimeout="true" /> <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --> <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8009" minProcessors="5" maxProcessors="75" enableLookups="true" redirectPort="8443" acceptCount="10" debug="0" connectionTimeout="0" useURIValidationHack="false" protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/> Could this be my problem? I attached my server.xml file just to be sure if there was anything else to check for... Thanks. Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -----Original Message----- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 10:36 AM To: 'Tomcat Users List' Subject: RE: Mod_jk - won't execute jsp or servlets You may have posted this already but I could not find it in among all the emails over the weekend but could you post/repost your workers.properties file as well as the connector from your server.xml you setup to accept JK/ajp1.3 connections For the workers.properies you need to make sure that you call the worker thread by the same name you did in the http.conf. You used worker1 in http.conf. However quite often it is called ajp13 in the workers.properties examples available on the web. -----Original Message----- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 8:26 AM To: 'Tomcat Users List' Subject: Mod_jk - won't execute jsp or servlets Thanks to all your help, I've gotten over some bumps. As it stands I can access any static pages in the Tomcat directory without having to type port 8080 ( i.e. I can access http://localhost/examples/servlets/index.html. However, whenever I try to execute a servlet or JSP it hangs indefinitely. The only errors appear in my mod_jk.log file: [Mon Dec 23 09:49:31 2002] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Mon Dec 23 09:49:31 2002] [jk_uri_worker_map.c (477)]: Attempting to map URI '/examples/images/code.gif' [Mon Dec 23 09:49:31 2002] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Mon Dec 23 09:49:31 2002] [mod_jk.c (1827)]: mod_jk::jk_translate, check alias_dir: /usr/local/tomcat/webapps/ [Mon Dec 23 09:49:31 2002] [mod_jk.c (1850)]: mod_jk::jk_translate, AutoAlias child_dir: images [Mon Dec 23 09:49:31 2002] [mod_jk.c (1876)]: mod_jk::jk_translate, AutoAlias OK for file: /usr/local/tomcat/webapps//examples/images/code.gif [Mon Dec 23 09:49:38 2002] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Mon Dec 23 09:49:38 2002] [jk_uri_worker_map.c (477)]: Attempting to map URI '/examples/servlet/HelloWorldExample' [Mon Dec 23 09:49:38 2002] [jk_uri_worker_map.c (502)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match worker1 -> /examples/servlet/ [Mon Dec 23 09:49:38 2002] [jk_worker.c (132)]: Into wc_get_worker_for_name worker1 [Mon Dec 23 09:49:38 2002] [jk_worker.c (136)]: wc_get_worker_for_name, done found a worker [Mon Dec 23 09:49:38 2002] [jk_ajp_common.c (1404)]: Into jk_worker_t::get_endpoint [Mon Dec 23 09:49:38 2002] [jk_ajp_common.c (1116)]: Into jk_endpoint_t::service [Mon Dec 23 09:49:38 2002] [jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb [Mon Dec 23 09:49:38 2002] [jk_ajp_common.c (432)]: ajp_marshal_into_msgb - Done [Mon Dec 23 09:49:38 2002] [jk_connect.c (158)]: Into jk_open_socket [Mon Dec 23 09:49:38 2002] [jk_connect.c (165)]: jk_open_socket, try to connect socket = 11 [Mon Dec 23 09:52:47 2002] [jk_connect.c (174)]: jk_open_socket, after connect ret = -1 [Mon Dec 23 09:52:47 2002] [jk_connect.c (203)]: jk_open_socket, connect() failed errno = 110 [Mon Dec 23 09:52:47 2002] [jk_ajp_common.c (626)]: Error connecting to tomcat. Tomcat is probably not started or is listenning on the wrong port. Failed errno = 110 [Mon Dec 23 09:52:47 2002] [jk_ajp_common.c (874)]: Error connecting to the Tomcat process. [Mon Dec 23 09:52:47 2002] [jk_ajp_common.c (1190)]: sending request to tomcat failed in send loop. err=0 [Mon Dec 23 09:52:47 2002] [jk_connect.c (158)]: Into jk_open_socket [Mon Dec 23 09:52:47 2002] [jk_connect.c (165)]: jk_open_socket, try to connect socket = 11 These are the following changes I have made to my httpd.conf file - all on top level: LoadModule jk_module JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties JkLogFile /usr/local/tomcat/logs/mod_jk.log JkLogLevel debug JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " JkRequestLogFormat "%w %r %s %T" Alias /examples /usr/local/tomcat/webapps/examples Alias /tomcat-docs /usr/local/tomcat/webapps/tomcat-docs <Location /examples/WEB-INF/> AllowOverride None deny from all </Location> JkAutoAlias /usr/local/tomcat/webapps/ JkMount /servlet/* worker1 JkMount /examples/jsp/*.jsp worker1 JkMount /examples/servlet/* worker1 JkMount /*.jsp worker1 JkMount /admin/* worker1 JkMount /manager/* worker1 Tomcat is set as default to listen to port 8080. Apache is listening to port 80 and 443. Tomcat and Apache are both started with no errors reported during startup. Any ideas? I know Jerry had a similar problem with static pages being viewed, but unable to execute servlets, but I did not notice any resolution. Thanks. Denise -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> << File: server.xml >> << File: ATT2038470.txt >> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>