Denise, I am basically doing what you are trying to do. I'm running Apache/SSL with Tomcat using the mod_jk connector. Here are my configs. These are working on my server which is Solaris but the flavor shouldn't matter. I hope these help you get it going.
Regards, Drew -----Original Message----- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 11: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]>
httpd.conf
Description: Binary data
mod_jk.conf
Description: Binary data
workers.properties
Description: Binary data
server.xml
Description: Binary data
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>