RE: Problems connecting Tomcat with Apache using ajp13
I would remove the load-balancing lines from workers.properties. Here is a plain-vanilla, working workers.properties file: # Setup for apache system # workers.tomcat_home=/usr/local/jakarta-tomcat-4.1.10 workers.java_home=/usr/java/j2sdk1.4.0_01 ps=/ worker.list=ajp12, ajp13 # Definition for Ajp13 worker # worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 John -Original Message- From: Marc Vila Pérez [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 8:22 PM To: Tomcat Users List Subject: Problems connecting Tomcat with Apache using ajp13 Hi everybody! I'm trying to connect tomcat 4.1.10 with apache 1.3.22, on Linux RH. In the server I want to install several hosts (using virtual hosting). I'm using org.apache.ajp.tomcat4.Ajp13Connector, I've downloaded several mod_jk.so (tried different versions), ... On every virtual host in httpd.conf there is a directive JkMount /*.jsp ajp13 Seems than apache finds the connector, but tomcat cannot create the servlet to serve the jsp page. This is the output of the mod_jk log file (JkLogFile): -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problems connecting Tomcat with Apache using ajp13
John, Where's the definition for ajp12 ? :o) David Turner, John wrote: I would remove the load-balancing lines from workers.properties. Here is a plain-vanilla, working workers.properties file: # Setup for apache system # workers.tomcat_home=/usr/local/jakarta-tomcat-4.1.10 workers.java_home=/usr/java/j2sdk1.4.0_01 ps=/ worker.list=ajp12, ajp13 # Definition for Ajp13 worker # worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 John -Original Message- From: Marc Vila Pérez [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 8:22 PM To: Tomcat Users List Subject: Problems connecting Tomcat with Apache using ajp13 Hi everybody! I'm trying to connect tomcat 4.1.10 with apache 1.3.22, on Linux RH. In the server I want to install several hosts (using virtual hosting). I'm using org.apache.ajp.tomcat4.Ajp13Connector, I've downloaded several mod_jk.so (tried different versions), ... On every virtual host in httpd.conf there is a directive JkMount /*.jsp ajp13 Seems than apache finds the connector, but tomcat cannot create the servlet to serve the jsp page. This is the output of the mod_jk log file (JkLogFile): -- 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]
RE: Problems connecting Tomcat with Apache using ajp13
Good point. I don't have one. Guess I was a little ruthless with the delete line command in vi. :) John -Original Message- From: David Cassidy [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 9:57 AM To: Tomcat Users List Subject: Re: Problems connecting Tomcat with Apache using ajp13 John, Where's the definition for ajp12 ? :o) David Turner, John wrote: I would remove the load-balancing lines from workers.properties. Here is a plain-vanilla, working workers.properties file: # Setup for apache system # workers.tomcat_home=/usr/local/jakarta-tomcat-4.1.10 workers.java_home=/usr/java/j2sdk1.4.0_01 ps=/ worker.list=ajp12, ajp13 # Definition for Ajp13 worker # worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 John -Original Message- From: Marc Vila Pérez [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 8:22 PM To: Tomcat Users List Subject: Problems connecting Tomcat with Apache using ajp13 Hi everybody! I'm trying to connect tomcat 4.1.10 with apache 1.3.22, on Linux RH. In the server I want to install several hosts (using virtual hosting). I'm using org.apache.ajp.tomcat4.Ajp13Connector, I've downloaded several mod_jk.so (tried different versions), ... On every virtual host in httpd.conf there is a directive JkMount /*.jsp ajp13 Seems than apache finds the connector, but tomcat cannot create the servlet to serve the jsp page. This is the output of the mod_jk log file (JkLogFile): -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problems connecting Tomcat with Apache using ajp13
it was one of the problems that another user had. had it in the list and it wasn't there 8-) ah good old 'dd' no command more useful ... :) David Turner, John wrote: Good point. I don't have one. Guess I was a little ruthless with the delete line command in vi. :) John -Original Message- From: David Cassidy [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 9:57 AM To: Tomcat Users List Subject: Re: Problems connecting Tomcat with Apache using ajp13 John, Where's the definition for ajp12 ? :o) David Turner, John wrote: I would remove the load-balancing lines from workers.properties. Here is a plain-vanilla, working workers.properties file: # Setup for apache system # workers.tomcat_home=/usr/local/jakarta-tomcat-4.1.10 workers.java_home=/usr/java/j2sdk1.4.0_01 ps=/ worker.list=ajp12, ajp13 # Definition for Ajp13 worker # worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 John -Original Message- From: Marc Vila Pérez [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 8:22 PM To: Tomcat Users List Subject: Problems connecting Tomcat with Apache using ajp13 Hi everybody! I'm trying to connect tomcat 4.1.10 with apache 1.3.22, on Linux RH. In the server I want to install several hosts (using virtual hosting). I'm using org.apache.ajp.tomcat4.Ajp13Connector, I've downloaded several mod_jk.so (tried different versions), ... On every virtual host in httpd.conf there is a directive JkMount /*.jsp ajp13 Seems than apache finds the connector, but tomcat cannot create the servlet to serve the jsp page. This is the output of the mod_jk log file (JkLogFile): -- 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] -- 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]
RE: Problems connecting Tomcat with Apache using ajp13
On Thu, 19 Sep 2002, Turner, John wrote: I would remove the load-balancing lines from workers.properties. Here is a plain-vanilla, working workers.properties file: # Setup for apache system # workers.tomcat_home=/usr/local/jakarta-tomcat-4.1.10 workers.java_home=/usr/java/j2sdk1.4.0_01 ps=/ If you want to make it even more basic, you can get rid of the first two lines above (and maybe even the third, I don't recall exactly). Way back when I was first trying to figure out workers.properties, I discovered that those are just macros/variables internal to the file. They help make it easier to specify other settings (e.g. so you don't have to repeat things so much, and it's easier to change if something moves). And since you're not using them in the rest of this workers.properties, you don't need them. I think in the default one they're used in setting up the jni worker. worker.list=ajp12, ajp13 # Definition for Ajp13 worker # worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 John -Original Message- From: Marc Vila Pérez [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 8:22 PM To: Tomcat Users List Subject: Problems connecting Tomcat with Apache using ajp13 Hi everybody! I'm trying to connect tomcat 4.1.10 with apache 1.3.22, on Linux RH. In the server I want to install several hosts (using virtual hosting). I'm using org.apache.ajp.tomcat4.Ajp13Connector, I've downloaded several mod_jk.so (tried different versions), ... On every virtual host in httpd.conf there is a directive JkMount /*.jsp ajp13 Seems than apache finds the connector, but tomcat cannot create the servlet to serve the jsp page. This is the output of the mod_jk log file (JkLogFile): -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Milt Epstein Research Programmer Integration and Software Engineering (ISE) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Problems connecting Tomcat with Apache using ajp13
Thanks for the clarification. I was wondering about that myself, as the workers.properties files I've seen for load-balancing configurations don't have those lines, either. John -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:58 AM To: Tomcat Users List Subject: RE: Problems connecting Tomcat with Apache using ajp13 On Thu, 19 Sep 2002, Turner, John wrote: I would remove the load-balancing lines from workers.properties. Here is a plain-vanilla, working workers.properties file: # Setup for apache system # workers.tomcat_home=/usr/local/jakarta-tomcat-4.1.10 workers.java_home=/usr/java/j2sdk1.4.0_01 ps=/ If you want to make it even more basic, you can get rid of the first two lines above (and maybe even the third, I don't recall exactly). Way back when I was first trying to figure out workers.properties, I discovered that those are just macros/variables internal to the file. They help make it easier to specify other settings (e.g. so you don't have to repeat things so much, and it's easier to change if something moves). And since you're not using them in the rest of this workers.properties, you don't need them. I think in the default one they're used in setting up the jni worker. worker.list=ajp12, ajp13 # Definition for Ajp13 worker # worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 John -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problems connecting Tomcat with Apache using ajp13
On Thu, 19 Sep 2002, David Cassidy wrote: John, Where's the definition for ajp12 ? :o) Oh yeah, you can make it even shorter! :-). Try this: worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 (Who needs comments?! :-) Turner, John wrote: I would remove the load-balancing lines from workers.properties. Here is a plain-vanilla, working workers.properties file: # Setup for apache system # workers.tomcat_home=/usr/local/jakarta-tomcat-4.1.10 workers.java_home=/usr/java/j2sdk1.4.0_01 ps=/ worker.list=ajp12, ajp13 # Definition for Ajp13 worker # worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 John -Original Message- From: Marc Vila Pérez [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 8:22 PM To: Tomcat Users List Subject: Problems connecting Tomcat with Apache using ajp13 Hi everybody! I'm trying to connect tomcat 4.1.10 with apache 1.3.22, on Linux RH. In the server I want to install several hosts (using virtual hosting). I'm using org.apache.ajp.tomcat4.Ajp13Connector, I've downloaded several mod_jk.so (tried different versions), ... On every virtual host in httpd.conf there is a directive JkMount /*.jsp ajp13 Seems than apache finds the connector, but tomcat cannot create the servlet to serve the jsp page. This is the output of the mod_jk log file (JkLogFile): -- 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] Milt Epstein Research Programmer Integration and Software Engineering (ISE) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Problems connecting Tomcat with Apache using ajp13
Hi everybody! I'm trying to connect tomcat 4.1.10 with apache 1.3.22, on Linux RH. In the server I want to install several hosts (using virtual hosting). I'm using org.apache.ajp.tomcat4.Ajp13Connector, I've downloaded several mod_jk.so (tried different versions), ... On every virtual host in httpd.conf there is a directive JkMount /*.jsp ajp13 Seems than apache finds the connector, but tomcat cannot create the servlet to serve the jsp page. This is the output of the mod_jk log file (JkLogFile): *** [Thu Sep 19 00:40:36 2002] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Thu Sep 19 00:40:36 2002] [jk_uri_worker_map.c (368)]: Attempting to map URI '/telemako.jsp' [Thu Sep 19 00:40:36 2002] [jk_uri_worker_map.c (416)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 - *.jsp [Thu Sep 19 00:40:36 2002] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Thu Sep 19 00:40:36 2002] [jk_uri_worker_map.c (368)]: Attempting to map URI '/telemako.jsp' [Thu Sep 19 00:40:36 2002] [jk_uri_worker_map.c (416)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 - *.jsp [Thu Sep 19 00:40:36 2002] [jk_worker.c (123)]: Into wc_get_worker_for_name ajp13 [Thu Sep 19 00:40:36 2002] [jk_worker.c (127)]: wc_get_worker_for_name, done found a worker [Thu Sep 19 00:40:36 2002] [jk_ajp13_worker.c (865)]: Into jk_worker_t::get_endpoint [Thu Sep 19 00:40:36 2002] [jk_ajp13_worker.c (775)]: Into jk_endpoint_t::service [Thu Sep 19 00:40:36 2002] [jk_ajp13.c (403)]: Into ajp13_marshal_into_msgb [Thu Sep 19 00:40:36 2002] [jk_ajp13.c (537)]: ajp13_marshal_into_msgb - Done [Thu Sep 19 00:40:36 2002] [jk_connect.c (108)]: Into jk_open_socket [Thu Sep 19 00:40:36 2002] [jk_connect.c (115)]: jk_open_socket, try to connect socket = 6 [Thu Sep 19 00:43:45 2002] [jk_connect.c (124)]: jk_open_socket, after connect ret = -1 [Thu Sep 19 00:43:45 2002] [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 110 [Thu Sep 19 00:43:45 2002] [jk_ajp13_worker.c (196)]: In jk_endpoint_t::connect_to_tomcat, failed errno = 110 [Thu Sep 19 00:43:45 2002] [jk_ajp13_worker.c (635)]: Error connecting to the Tomcat process. [Thu Sep 19 00:43:45 2002] [jk_ajp13_worker.c (848)]: In jk_endpoint_t::service, send_request failed in send loop 0 *** And these are my configuration files are: *httpd.conf ... ### Begin from mod_jk.conf ## LoadModulejk_module modules/mod_jk.so #AddModule mod_jk.c JkWorkersFile /usr/local/jakarta-tomcat-4.1.10/conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel debug # # The following line mounts all JSP files and the /servlet/ uri to tomcat # write it for every virtual host. # #JkMount /dir/servlet/* ajp13 #JkMount /dir/*.jsp ajp13 ### End from mod_jk.conf ## ... ***workers.properties* worker.list=ajp13 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp13 # Define some properties workers.apache_log=/etc/httpd/logs workers.tomcat_home=/usr/local/jakarta-tomcat-4.1.10 workers.java_home=/usr/local/j2sdk1.4.1 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 ps=/ ** *** server.xml (... indicates default config settings like loggers or valves, ...) Server port=8005 shutdown=SHUTDOWN debug=0 !-- Global JNDI resources -- GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ ... /GlobalNamingResources !-- Define the Tomcat Stand-Alone Service -- Service name=Tomcat-Standalone !-- 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=10 debug=0 connectionTimeout=2 useURIValidationHack=false / Engine name=Standalone defaultHost=localhost debug=0 ... !-- Define the default virtual host -- Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true ... !-- Tomcat Examples Context -- Context path=/examples docBase=examples debug=0 reloadable=true crossContext=true ... /Context /Host /Engine /Service !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75