Re: Having trouble getting an Apache connector to work
Thanks! That makes it usable. I'll keep an eye out for 4.1.33. -- Rob On 08/15/2006 07:58 PM, Mark Thomas wrote: Mark Thomas wrote: I am now seeing the same thing on my dev box. I'm looking in to it and will let you know. My bad. If you use protocolHandler rather than protocolHandlerClassName in the AJP connector things should work as you expect. This is a coding bug rather than a doc bug and is enough to keep 4.1.32 as a beta. 4.1.33 will follow shortly. I am aiming to resolve the only outstanding TC4 bug (40252) before I do the 4.1.33 release. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Having trouble getting an Apache connector to work
Rob Tanner wrote: This is the snippet where the connectors are defined. It is identical to my older development system and it's pretty much the Tomcat comes out of the box (or the tarball): I am now seeing the same thing on my dev box. I'm looking in to it and will let you know. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Having trouble getting an Apache connector to work
Mark Thomas wrote: I am now seeing the same thing on my dev box. I'm looking in to it and will let you know. My bad. If you use protocolHandler rather than protocolHandlerClassName in the AJP connector things should work as you expect. This is a coding bug rather than a doc bug and is enough to keep 4.1.32 as a beta. 4.1.33 will follow shortly. I am aiming to resolve the only outstanding TC4 bug (40252) before I do the 4.1.33 release. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Having trouble getting an Apache connector to work
Hi, I'm building a new development system. I can access my applications directly from my browser 0n port 8009, but not through Apache. I'm have j2sdk1.4.2_12 and apache-tomcat-4.1.32 installed. The version of Apache is 2.0.54 (from the FC4 distro). I built the connector from the tomcat-connectors-1.2.18-src, using the included directions. The workers.properties file: worker.list=ajp13 worker.ajp13.host=localhost worker.ajp13.port=8009 worker.ajp13.type=ajp13 The httpd.conf file: LoadModule jk_module modules/mod_jk.so JkWorkersFile /var/apache-tomcat-4.1.32/conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevelinfo JkMount /*.jsp ajp13 JkMount /accntManager/* ajp13 When I attempt to access the servlet via Apache, the page just keeps loading forever (oodly enough, it doesn't even timeout). Any ideas? Thanks, Rob -- Rob Tanner Linfield College - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Having trouble getting an Apache connector to work
Rob Tanner wrote: Hi, I'm building a new development system. I can access my applications directly from my browser 0n port 8009, but not through Apache. If it works through a browser you must have the connector configured for http. You need to configure it for ajp for it to work with the Apache connector. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Having trouble getting an Apache connector to work
Mark, The distinction does not appear to be the case. On my old development system which does work, I can go via apache or directly to port 8009 and they both work. -- Rob Mark Thomas wrote: Rob Tanner wrote: Hi, I'm building a new development system. I can access my applications directly from my browser 0n port 8009, but not through Apache. If it works through a browser you must have the connector configured for http. You need to configure it for ajp for it to work with the Apache connector. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Having trouble getting an Apache connector to work
Rob- If you have 2 servlets e.g.you have two tomcat running, listning Ajp12 on 10001 and 10002 ports: Take a look at /etc/httpd/conf/httpd.conf: - LoadModule jk_module /etc/httpd/libexec/mod_jk.so JkWorkersFile /etc/httpd/conf/workers.properties Listen 8001 VirtualHost _default_:8001 Port 8001 DocumentRoot /home/httpd/virtual_hosts/8001/html/ JkMount / 8001Worker /VirtualHost Listen 8002 VirtualHost _default_:8002 Port 8002 DocumentRoot /home/httpd/virtual_hosts/8002/html/ JkMount / 8002Worker /VirtualHost /etc/httpd/conf/workers.properties -- worker.list=8001Worker, 8002Worker worker.8001Worker.port=10001 worker.8001Worker.host=localhost worker.8001Worker.type=ajp12 worker.8001Worker.lbfactor=1 worker.8002Worker.port=10002 worker.8002Worker.host=localhost worker.8002Worker.type=ajp12 worker.8002Worker.lbfactor=1 In other words start with what works and change one line at a time Martin -- * This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. Hi, I'm building a new development system. I can access my applications directly from my browser 0n port 8009, but not through Apache. I'm have j2sdk1.4.2_12 and apache-tomcat-4.1.32 installed. The version of Apache is 2.0.54 (from the FC4 distro). I built the connector from the tomcat-connectors-1.2.18-src, using the included directions. The workers.properties file: worker.list=ajp13 worker.ajp13.host=localhost worker.ajp13.port=8009 worker.ajp13.type=ajp13 The httpd.conf file: When I attempt to access the servlet via Apache, the page just keeps loading forever (oodly enough, it doesn't even timeout). Any ideas? Thanks, Rob -- Rob Tanner Linfield College - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Having trouble getting an Apache connector to work
Rob Tanner wrote: Mark, The distinction does not appear to be the case. On my old development system which does work, I can go via apache or directly to port 8009 and they both work. -- Rob For this to work, you can't be using port 8009 for the ajp connector on your dev system. Can you post the connector elements from both server.xml files? Mark Mark Thomas wrote: Rob Tanner wrote: Hi, I'm building a new development system. I can access my applications directly from my browser 0n port 8009, but not through Apache. If it works through a browser you must have the connector configured for http. You need to configure it for ajp for it to work with the Apache connector. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Having trouble getting an Apache connector to work
Hi Rob, I'm just curious to know how you manage to access your application from port 8009 via browser while your Config shows : worker.ajp13.port=8009 either you specified the wrong port number for the http connector or you stated the wrong one. AFAIK the port 8009 is used by mod_jk to communicates with Apache and since your page keeps loading for ever i assume you create a kind of loop request - Apache port 80 - mod_jk - 8009 tomcat 8009 can you please provide a snippet of your server.xml where your jk connector is defined and where you http connectors is defined too. here are configurations that do works for me you can adjust them for your needs: http://tomcat.anfatech.com/cocoon/tomcat/g12/19.html Greetings Yassine Elassad 00 49 221 800 8961 00 49 160 6223 9000 Cologne, Germany On 8/15/06, Rob Tanner [EMAIL PROTECTED] wrote: Hi, I'm building a new development system. I can access my applications directly from my browser 0n port 8009, but not through Apache. I'm have j2sdk1.4.2_12 and apache-tomcat-4.1.32 installed. The version of Apache is 2.0.54 (from the FC4 distro). I built the connector from the tomcat-connectors-1.2.18-src, using the included directions. The workers.properties file: worker.list=ajp13 worker.ajp13.host=localhost worker.ajp13.port=8009 worker.ajp13.type=ajp13 The httpd.conf file: LoadModule jk_module modules/mod_jk.so JkWorkersFile /var/apache-tomcat-4.1.32/conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevelinfo JkMount /*.jsp ajp13 JkMount /accntManager/* ajp13 When I attempt to access the servlet via Apache, the page just keeps loading forever (oodly enough, it doesn't even timeout). Any ideas? Thanks, Rob -- Rob Tanner Linfield College - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- (e==mc²)? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Having trouble getting an Apache connector to work
This is the snippet where the connectors are defined. It is identical to my older development system and it's pretty much the Tomcat comes out of the box (or the tarball): !-- 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=2 useURIValidationHack=false disableUploadTimeout=true / !--Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 enableLookups=true redirectPort=8443 acceptCount=100 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true / -- !-- Note : To disable connection timeouts, set connectionTimeout value to 0 -- !-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -- !-- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8443 enableLookups=true scheme=https secure=true acceptCount=100 useURIValidationHack=false disableUploadTimeout=true clientAuth=false sslProtocol=TLS / -- !-- Define a Coyote AJP/1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 enableLookups=true redirectPort=8443 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler / On 08/14/2006 05:50 PM, Yassine ELassad (YEL) wrote: Hi Rob, I'm just curious to know how you manage to access your application from port 8009 via browser while your Config shows : worker.ajp13.port=8009 either you specified the wrong port number for the http connector or you stated the wrong one. AFAIK the port 8009 is used by mod_jk to communicates with Apache and since your page keeps loading for ever i assume you create a kind of loop request - Apache port 80 - mod_jk - 8009 tomcat 8009 can you please provide a snippet of your server.xml where your jk connector is defined and where you http connectors is defined too. here are configurations that do works for me you can adjust them for your needs: http://tomcat.anfatech.com/cocoon/tomcat/g12/19.html Greetings Yassine Elassad 00 49 221 800 8961 00 49 160 6223 9000 Cologne, Germany On 8/15/06, Rob Tanner [EMAIL PROTECTED] wrote: Hi, I'm building a new development system. I can access my applications directly from my browser 0n port 8009, but not through Apache. I'm have j2sdk1.4.2_12 and apache-tomcat-4.1.32 installed. The version of Apache is 2.0.54 (from the FC4 distro). I built the connector from the tomcat-connectors-1.2.18-src, using the included directions. The workers.properties file: worker.list=ajp13 worker.ajp13.host=localhost worker.ajp13.port=8009 worker.ajp13.type=ajp13 The httpd.conf file: LoadModule jk_module modules/mod_jk.so JkWorkersFile /var/apache-tomcat-4.1.32/conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevelinfo JkMount /*.jsp ajp13 JkMount /accntManager/* ajp13 When I attempt to access the servlet via Apache, the page just keeps loading forever (oodly enough, it doesn't even timeout). Any ideas? Thanks, Rob -- Rob Tanner Linfield College - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]