RE: Apache/2 and Tomcat/4 not talking
On Thu, 24 Oct 2002, Robert L Sowders wrote: Just for informational purposes, in case someone needs the info. you can't do a: /*/servlet/* but you can do a: /*/servlet/ Notice just the one *. Hmmm, why is that, anyone know? Seems kind of an artificial/arbitrary limitation. And is it just for Tomcat? I doubt it's part of the servlet spec. Got this from: glenn 02/04/21 15:57:11 Modified:jk/native/apache-1.3 mod_jk.c jk/native/common jk_logger.h jk_uri_worker_map.c jk_util.c jk/doc mod_jk-howto.html Log: Apache mod_jk 1.2 new features. Added JkRequestLogFormat for Apache style request logging including Tocmat request latency in seconds and microseconds. Added JkAutoAlias, this can be used to automatically Alias web application context directories so that static files can be served by Apache instead of Tomcat. When configured, requests for a WAR file in the Tomcat appBase (webapps) directory are forbidden. Requests for the WEB-INF and META-INF directories within a web application context dir are also forbidden and will return an HTTP 403 error. Added ability to JkMount so that /*/servlet/ can be used to configure mod_jk to pass all servlet requests on to Tomcat for any web application context. Revision ChangesPath 1.26 +521 -12 jakarta-tomcat-connectors/jk/native/apache-1.3/mod_jk.c Please see http://marc.theaimsgroup.com/?l=tomcat-devm=101942986517696w=2 for complete commit. rls [ ... ] 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:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Apache/2 and Tomcat/4 not talking
I believe this was a feature of adding the JkAutoAlias functionality to mod_jk, but I'm probably wrong. The only person that does I guess is Glenn N. rls Milt Epstein [EMAIL PROTECTED] 10/25/2002 02:09 PM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: Apache/2 and Tomcat/4 not talking On Thu, 24 Oct 2002, Robert L Sowders wrote: Just for informational purposes, in case someone needs the info. you can't do a: /*/servlet/* but you can do a: /*/servlet/ Notice just the one *. Hmmm, why is that, anyone know? Seems kind of an artificial/arbitrary limitation. And is it just for Tomcat? I doubt it's part of the servlet spec. Got this from: glenn 02/04/21 15:57:11 Modified:jk/native/apache-1.3 mod_jk.c jk/native/common jk_logger.h jk_uri_worker_map.c jk_util.c jk/doc mod_jk-howto.html Log: Apache mod_jk 1.2 new features. Added JkRequestLogFormat for Apache style request logging including Tocmat request latency in seconds and microseconds. Added JkAutoAlias, this can be used to automatically Alias web application context directories so that static files can be served by Apache instead of Tomcat. When configured, requests for a WAR file in the Tomcat appBase (webapps) directory are forbidden. Requests for the WEB-INF and META-INF directories within a web application context dir are also forbidden and will return an HTTP 403 error. Added ability to JkMount so that /*/servlet/ can be used to configure mod_jk to pass all servlet requests on to Tomcat for any web application context. Revision ChangesPath 1.26 +521 -12 jakarta-tomcat-connectors/jk/native/apache-1.3/mod_jk.c Please see http://marc.theaimsgroup.com/?l=tomcat-devm=101942986517696w=2 for complete commit. rls [ ... ] 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:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Apache/2 and Tomcat/4 not talking
Thanks for all the help. I have gotten everything working. I have Apache/2 with SSL serving the static content and forwarding the servlet requests to Tomcat 4.0.4 under JDK 1.3 on W2K. To the doubters I say It can be done and the people in this community are vary helpful if you ask the right questions. Thanks! Jim Urban - [EMAIL PROTECTED] Park City Solutions Inc. Clinical Connectivity Suite Product Manager Suite 295 500 Park Blvd. Itasca, IL 60143 Voice: (630) 250-3045 x106 Fax: (630) 250-3046 CONFIDENTIALITY NOTICE This message and any included attachments are from Park City Solutions Inc. and are intended only for the entity to which it is addressed. The contained information is confidential and privileged material. If you are not the intended recipient, you are hereby notified that any use, dissemination, or copying of this communication is strictly prohibited and may be unlawful. If you have received this communication in error please notify the sender of the delivery error by e-mail or call Park City Solutions Inc. corporate offices at (435) 654-0621 -Original Message- From: Milt Epstein [mailto:mepstein;uiuc.edu] Sent: Wednesday, October 23, 2002 5:14 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Apache/2 and Tomcat/4 not talking On Wed, 23 Oct 2002, Jim Urban wrote: I have the following in my Apache httpd.conf: # Static files in the webapp are served by apache Alias /ccs_v32 y:/tomcat4.0.4/webapps/ccs_v32 # All servlets goes to worker1 JkMount /*/servlet/* worker1 The alias works because Apache serves my static files just fine. Not sure you can do that -- i.e. put that '*' before the /servlet/. (But not sure that's your problem either.) You might try it without it, i.e. use /servlet/* as the pattern, or perhaps /ccs_v32/servlet/*. Here is my workers.properties: workers.apache_log=d:/apache_43/apache2/logs/ workers.tomcat_home=y:/tomcat4.0.4 workers.java_home=d:/jdk1.3/ ps=/ # Define worker, ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=10 worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.socket_timeout=300 Jim -Original Message- From: Milt Epstein [mailto:mepstein;uiuc.edu] Sent: Tuesday, October 22, 2002 7:06 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Apache/2 and Tomcat/4 not talking On Tue, 22 Oct 2002, Jim Urban wrote: I have spent the past two days trying to get Apache/2 to forward servlet requests to Tomcat. Here are the particulars: Java 1.3.0 Win 2K SP3 Tomcat 4.0.4 Apache/2 0.43 AJP13 SSL Mod_jk.conf ## Auto generated on Tue Oct 22 12:01:16 CDT 2002## IfModule !mod_jk.c LoadModule jk_module modules/mod_jk.dll /IfModule JkWorkersFile y:/Tomcat4.0.4/conf/jk/workers.properties JkLogFile y:/Tomcat4.0.4/logs/mod_jk.log JkLogLevel debug JkLogStampFormat [%a %b %d %H:%M:%S %Y] [ ... ] You don't have any JkMount directives. JkMount directives are of the form: JkMount url-pattern worker-name They tell Apache what URL's (based on a match of the URL pattern) to forward to Tomcat. worker-name should be defined in workers.properties with a number of: worker.worker-name.property=value where property is { host, port, type }. 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:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org 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:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Apache/2 and Tomcat/4 not talking
Wait! Complete the circle for the archives...what was the solution? John -Original Message- From: Jim Urban [mailto:jurban;parkcitysolutions.com] Sent: Thursday, October 24, 2002 8:27 AM To: 'Milt Epstein'; 'Tomcat Users List' Subject: RE: Apache/2 and Tomcat/4 not talking Thanks for all the help. I have gotten everything working. I have Apache/2 with SSL serving the static content and forwarding the servlet requests to Tomcat 4.0.4 under JDK 1.3 on W2K. To the doubters I say It can be done and the people in this community are vary helpful if you ask the right questions. Thanks! Jim Urban - [EMAIL PROTECTED] Park City Solutions Inc. Clinical Connectivity Suite Product Manager Suite 295 500 Park Blvd. Itasca, IL 60143 Voice: (630) 250-3045 x106 Fax: (630) 250-3046 CONFIDENTIALITY NOTICE This message and any included attachments are from Park City Solutions Inc. and are intended only for the entity to which it is addressed. The contained information is confidential and privileged material. If you are not the intended recipient, you are hereby notified that any use, dissemination, or copying of this communication is strictly prohibited and may be unlawful. If you have received this communication in error please notify the sender of the delivery error by e-mail or call Park City Solutions Inc. corporate offices at (435) 654-0621 -Original Message- From: Milt Epstein [mailto:mepstein;uiuc.edu] Sent: Wednesday, October 23, 2002 5:14 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Apache/2 and Tomcat/4 not talking On Wed, 23 Oct 2002, Jim Urban wrote: I have the following in my Apache httpd.conf: # Static files in the webapp are served by apache Alias /ccs_v32 y:/tomcat4.0.4/webapps/ccs_v32 # All servlets goes to worker1 JkMount /*/servlet/* worker1 The alias works because Apache serves my static files just fine. Not sure you can do that -- i.e. put that '*' before the /servlet/. (But not sure that's your problem either.) You might try it without it, i.e. use /servlet/* as the pattern, or perhaps /ccs_v32/servlet/*. Here is my workers.properties: workers.apache_log=d:/apache_43/apache2/logs/ workers.tomcat_home=y:/tomcat4.0.4 workers.java_home=d:/jdk1.3/ ps=/ # Define worker, ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=10 worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.socket_timeout=300 Jim -Original Message- From: Milt Epstein [mailto:mepstein;uiuc.edu] Sent: Tuesday, October 22, 2002 7:06 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Apache/2 and Tomcat/4 not talking On Tue, 22 Oct 2002, Jim Urban wrote: I have spent the past two days trying to get Apache/2 to forward servlet requests to Tomcat. Here are the particulars: Java 1.3.0 Win 2K SP3 Tomcat 4.0.4 Apache/2 0.43 AJP13 SSL Mod_jk.conf ## Auto generated on Tue Oct 22 12:01:16 CDT 2002## IfModule !mod_jk.c LoadModule jk_module modules/mod_jk.dll /IfModule JkWorkersFile y:/Tomcat4.0.4/conf/jk/workers.properties JkLogFile y:/Tomcat4.0.4/logs/mod_jk.log JkLogLevel debug JkLogStampFormat [%a %b %d %H:%M:%S %Y] [ ... ] You don't have any JkMount directives. JkMount directives are of the form: JkMount url-pattern worker-name They tell Apache what URL's (based on a match of the URL pattern) to forward to Tomcat. worker-name should be defined in workers.properties with a number of: worker.worker-name.property=value where property is { host, port, type }. 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:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org 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:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Apache/2 and Tomcat/4 not talking
It was a combination of minor things that snowballed into a big thing. 1. A typo in my workers.properties file. (worker.list=ajp13 and worker.ajp13.type=ajpl3 the first is a one and the other a lower case L). Surprisingly I didn't get any error message about this! 2. An incomplete mod_jk.conf (because tomcat couldn't find my mod_jk.dll?). 3. SSL request didn't make it to Tomcat because I missed the JkMounts in the VirtualHost localhost:443 of httpd.conf. It was my sloppiness. I've been using Tomcat and Apache for 2 years and I got complacent. Jim Urban - [EMAIL PROTECTED] Park City Solutions Inc. Clinical Connectivity Suite Product Manager Suite 295 500 Park Blvd. Itasca, IL 60143 Voice: (630) 250-3045 x106 Fax: (630) 250-3046 CONFIDENTIALITY NOTICE This message and any included attachments are from Park City Solutions Inc. and are intended only for the entity to which it is addressed. The contained information is confidential and privileged material. If you are not the intended recipient, you are hereby notified that any use, dissemination, or copying of this communication is strictly prohibited and may be unlawful. If you have received this communication in error please notify the sender of the delivery error by e-mail or call Park City Solutions Inc. corporate offices at (435) 654-0621 -Original Message- From: Turner, John [mailto:JTurner;AAS.com] Sent: Thursday, October 24, 2002 7:31 AM To: 'Tomcat Users List' Subject: RE: Apache/2 and Tomcat/4 not talking Wait! Complete the circle for the archives...what was the solution? John -Original Message- From: Jim Urban [mailto:jurban;parkcitysolutions.com] Sent: Thursday, October 24, 2002 8:27 AM To: 'Milt Epstein'; 'Tomcat Users List' Subject: RE: Apache/2 and Tomcat/4 not talking Thanks for all the help. I have gotten everything working. I have Apache/2 with SSL serving the static content and forwarding the servlet requests to Tomcat 4.0.4 under JDK 1.3 on W2K. To the doubters I say It can be done and the people in this community are vary helpful if you ask the right questions. Thanks! Jim Urban - [EMAIL PROTECTED] Park City Solutions Inc. Clinical Connectivity Suite Product Manager Suite 295 500 Park Blvd. Itasca, IL 60143 Voice: (630) 250-3045 x106 Fax: (630) 250-3046 CONFIDENTIALITY NOTICE This message and any included attachments are from Park City Solutions Inc. and are intended only for the entity to which it is addressed. The contained information is confidential and privileged material. If you are not the intended recipient, you are hereby notified that any use, dissemination, or copying of this communication is strictly prohibited and may be unlawful. If you have received this communication in error please notify the sender of the delivery error by e-mail or call Park City Solutions Inc. corporate offices at (435) 654-0621 -Original Message- From: Milt Epstein [mailto:mepstein;uiuc.edu] Sent: Wednesday, October 23, 2002 5:14 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Apache/2 and Tomcat/4 not talking On Wed, 23 Oct 2002, Jim Urban wrote: I have the following in my Apache httpd.conf: # Static files in the webapp are served by apache Alias /ccs_v32 y:/tomcat4.0.4/webapps/ccs_v32 # All servlets goes to worker1 JkMount /*/servlet/* worker1 The alias works because Apache serves my static files just fine. Not sure you can do that -- i.e. put that '*' before the /servlet/. (But not sure that's your problem either.) You might try it without it, i.e. use /servlet/* as the pattern, or perhaps /ccs_v32/servlet/*. Here is my workers.properties: workers.apache_log=d:/apache_43/apache2/logs/ workers.tomcat_home=y:/tomcat4.0.4 workers.java_home=d:/jdk1.3/ ps=/ # Define worker, ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=10 worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.socket_timeout=300 Jim -Original Message- From: Milt Epstein [mailto:mepstein;uiuc.edu] Sent: Tuesday, October 22, 2002 7:06 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Apache/2 and Tomcat/4 not talking On Tue, 22 Oct 2002, Jim Urban wrote: I have spent the past two days trying to get Apache/2 to forward servlet requests to Tomcat. Here are the particulars: Java 1.3.0 Win 2K SP3 Tomcat 4.0.4 Apache/2 0.43 AJP13 SSL Mod_jk.conf ## Auto generated on Tue Oct 22 12:01:16 CDT 2002## IfModule !mod_jk.c LoadModule jk_module modules/mod_jk.dll /IfModule JkWorkersFile y:/Tomcat4.0.4/conf/jk/workers.properties JkLogFile y:/Tomcat4.0.4/logs/mod_jk.log JkLogLevel debug JkLogStampFormat [%a %b %d %H:%M:%S %Y
RE: Apache/2 and Tomcat/4 not talking
Thanks...that 1 vs. l deal is something new, this is the first time I've seen anyone post about that. I never would have thought to check it, I will have to file that away for future debugging reference. John -Original Message- From: Jim Urban [mailto:jurban;parkcitysolutions.com] Sent: Thursday, October 24, 2002 8:55 AM To: 'Tomcat Users List' Subject: RE: Apache/2 and Tomcat/4 not talking It was a combination of minor things that snowballed into a big thing. 1. A typo in my workers.properties file. (worker.list=ajp13 and worker.ajp13.type=ajpl3 the first is a one and the other a lower case L). Surprisingly I didn't get any error message about this! 2. An incomplete mod_jk.conf (because tomcat couldn't find my mod_jk.dll?). 3. SSL request didn't make it to Tomcat because I missed the JkMounts in the VirtualHost localhost:443 of httpd.conf. It was my sloppiness. I've been using Tomcat and Apache for 2 years and I got complacent. Jim Urban - [EMAIL PROTECTED] Park City Solutions Inc. Clinical Connectivity Suite Product Manager Suite 295 500 Park Blvd. Itasca, IL 60143 Voice: (630) 250-3045 x106 Fax: (630) 250-3046 CONFIDENTIALITY NOTICE This message and any included attachments are from Park City Solutions Inc. and are intended only for the entity to which it is addressed. The contained information is confidential and privileged material. If you are not the intended recipient, you are hereby notified that any use, dissemination, or copying of this communication is strictly prohibited and may be unlawful. If you have received this communication in error please notify the sender of the delivery error by e-mail or call Park City Solutions Inc. corporate offices at (435) 654-0621 -Original Message- From: Turner, John [mailto:JTurner;AAS.com] Sent: Thursday, October 24, 2002 7:31 AM To: 'Tomcat Users List' Subject: RE: Apache/2 and Tomcat/4 not talking Wait! Complete the circle for the archives...what was the solution? John -Original Message- From: Jim Urban [mailto:jurban;parkcitysolutions.com] Sent: Thursday, October 24, 2002 8:27 AM To: 'Milt Epstein'; 'Tomcat Users List' Subject: RE: Apache/2 and Tomcat/4 not talking Thanks for all the help. I have gotten everything working. I have Apache/2 with SSL serving the static content and forwarding the servlet requests to Tomcat 4.0.4 under JDK 1.3 on W2K. To the doubters I say It can be done and the people in this community are vary helpful if you ask the right questions. Thanks! Jim Urban - [EMAIL PROTECTED] Park City Solutions Inc. Clinical Connectivity Suite Product Manager Suite 295 500 Park Blvd. Itasca, IL 60143 Voice: (630) 250-3045 x106 Fax: (630) 250-3046 CONFIDENTIALITY NOTICE This message and any included attachments are from Park City Solutions Inc. and are intended only for the entity to which it is addressed. The contained information is confidential and privileged material. If you are not the intended recipient, you are hereby notified that any use, dissemination, or copying of this communication is strictly prohibited and may be unlawful. If you have received this communication in error please notify the sender of the delivery error by e-mail or call Park City Solutions Inc. corporate offices at (435) 654-0621 -Original Message- From: Milt Epstein [mailto:mepstein;uiuc.edu] Sent: Wednesday, October 23, 2002 5:14 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Apache/2 and Tomcat/4 not talking On Wed, 23 Oct 2002, Jim Urban wrote: I have the following in my Apache httpd.conf: # Static files in the webapp are served by apache Alias /ccs_v32 y:/tomcat4.0.4/webapps/ccs_v32 # All servlets goes to worker1 JkMount /*/servlet/* worker1 The alias works because Apache serves my static files just fine. Not sure you can do that -- i.e. put that '*' before the /servlet/. (But not sure that's your problem either.) You might try it without it, i.e. use /servlet/* as the pattern, or perhaps /ccs_v32/servlet/*. Here is my workers.properties: workers.apache_log=d:/apache_43/apache2/logs/ workers.tomcat_home=y:/tomcat4.0.4 workers.java_home=d:/jdk1.3/ ps=/ # Define worker, ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=10 worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.socket_timeout=300 Jim -Original Message- From: Milt Epstein [mailto:mepstein;uiuc.edu] Sent: Tuesday, October 22, 2002 7:06 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Apache/2 and Tomcat/4 not talking On Tue, 22 Oct 2002, Jim
RE: Apache/2 and Tomcat/4 not talking
You are correct. I learned to type back in the early '70s using an old typewriter with stiff keys. It was easier to type a letter l then it was to reach for the number 1 key. The thing is, I typed the first entry then copied and pasted it several more times. So I guess copy and paste once again expands a single error into multiple errors. The only way I found it was by setting the mod_jk log to debug and then spotting a message about not finding a match. It was a cryptic clue that led me to that error. So now I have completely embarrassed myself in front of the entire Tomcat user community. Think I'll go hide somewhere. :) Jim -Original Message- From: Milt Epstein [mailto:mepstein;uiuc.edu] Sent: Thursday, October 24, 2002 10:40 AM To: Tomcat Users List Subject: RE: Apache/2 and Tomcat/4 not talking On Thu, 24 Oct 2002, Jim Urban wrote: It also happens while holding the phone in your left hand while talking to a client and trying to key in a workers.properties file with only your right hand at the same time. Yeah, but I'm guessing you did use a typewriter, and did use 'l' instead of '1', at some point, else how would the thought of doing it have even entered your mind at all (consciously or unconsciously). Correct? -Original Message- From: Milt Epstein [mailto:mepstein;uiuc.edu] Sent: Thursday, October 24, 2002 10:19 AM To: Tomcat Users List Subject: RE: Apache/2 and Tomcat/4 not talking On Thu, 24 Oct 2002, Turner, John wrote: Thanks...that 1 vs. l deal is something new, this is the first time I've seen anyone post about that. I never would have thought to check it, I will have to file that away for future debugging reference. Actually, it's something *old*. People who've used old typewriters will be familiar with the '1' vs. 'l' confusion. (Typewriter?! What the heck is a typewriter?!) :-) -Original Message- From: Jim Urban [mailto:jurban;parkcitysolutions.com] Sent: Thursday, October 24, 2002 8:55 AM To: 'Tomcat Users List' Subject: RE: Apache/2 and Tomcat/4 not talking It was a combination of minor things that snowballed into a big thing. 1. A typo in my workers.properties file. (worker.list=ajp13 and worker.ajp13.type=ajpl3 the first is a one and the other a lower case L). Surprisingly I didn't get any error message about this! 2. An incomplete mod_jk.conf (because tomcat couldn't find my mod_jk.dll?). 3. SSL request didn't make it to Tomcat because I missed the JkMounts in the VirtualHost localhost:443 of httpd.conf. It was my sloppiness. I've been using Tomcat and Apache for 2 years and I got complacent. Jim Urban - [EMAIL PROTECTED] Park City Solutions Inc. Clinical Connectivity Suite Product Manager Suite 295 500 Park Blvd. Itasca, IL 60143 Voice: (630) 250-3045 x106 Fax: (630) 250-3046 CONFIDENTIALITY NOTICE This message and any included attachments are from Park City Solutions Inc. and are intended only for the entity to which it is addressed. The contained information is confidential and privileged material. If you are not the intended recipient, you are hereby notified that any use, dissemination, or copying of this communication is strictly prohibited and may be unlawful. If you have received this communication in error please notify the sender of the delivery error by e-mail or call Park City Solutions Inc. corporate offices at (435) 654-0621 -Original Message- From: Turner, John [mailto:JTurner;AAS.com] Sent: Thursday, October 24, 2002 7:31 AM To: 'Tomcat Users List' Subject: RE: Apache/2 and Tomcat/4 not talking Wait! Complete the circle for the archives...what was the solution? John -Original Message- From: Jim Urban [mailto:jurban;parkcitysolutions.com] Sent: Thursday, October 24, 2002 8:27 AM To: 'Milt Epstein'; 'Tomcat Users List' Subject: RE: Apache/2 and Tomcat/4 not talking Thanks for all the help. I have gotten everything working. I have Apache/2 with SSL serving the static content and forwarding the servlet requests to Tomcat 4.0.4 under JDK 1.3 on W2K. To the doubters I say It can be done and the people in this community are vary helpful if you ask the right questions. Thanks! Jim Urban - [EMAIL PROTECTED] Park City Solutions Inc. Clinical Connectivity Suite Product Manager Suite 295 500 Park Blvd. Itasca, IL 60143 Voice: (630) 250-3045 x106 Fax: (630) 250-3046 CONFIDENTIALITY NOTICE This message and any included attachments are from Park City Solutions Inc. and are intended only for the entity to which it is addressed. The contained information is confidential and privileged material. If you are not the intended recipient, you are hereby notified that any use
RE: Apache/2 and Tomcat/4 not talking
On Thu, 24 Oct 2002, Jim Urban wrote: It also happens while holding the phone in your left hand while talking to a client and trying to key in a workers.properties file with only your right hand at the same time. Yeah, but I'm guessing you did use a typewriter, and did use 'l' instead of '1', at some point, else how would the thought of doing it have even entered your mind at all (consciously or unconsciously). Correct? -Original Message- From: Milt Epstein [mailto:mepstein;uiuc.edu] Sent: Thursday, October 24, 2002 10:19 AM To: Tomcat Users List Subject: RE: Apache/2 and Tomcat/4 not talking On Thu, 24 Oct 2002, Turner, John wrote: Thanks...that 1 vs. l deal is something new, this is the first time I've seen anyone post about that. I never would have thought to check it, I will have to file that away for future debugging reference. Actually, it's something *old*. People who've used old typewriters will be familiar with the '1' vs. 'l' confusion. (Typewriter?! What the heck is a typewriter?!) :-) -Original Message- From: Jim Urban [mailto:jurban;parkcitysolutions.com] Sent: Thursday, October 24, 2002 8:55 AM To: 'Tomcat Users List' Subject: RE: Apache/2 and Tomcat/4 not talking It was a combination of minor things that snowballed into a big thing. 1. A typo in my workers.properties file. (worker.list=ajp13 and worker.ajp13.type=ajpl3 the first is a one and the other a lower case L). Surprisingly I didn't get any error message about this! 2. An incomplete mod_jk.conf (because tomcat couldn't find my mod_jk.dll?). 3. SSL request didn't make it to Tomcat because I missed the JkMounts in the VirtualHost localhost:443 of httpd.conf. It was my sloppiness. I've been using Tomcat and Apache for 2 years and I got complacent. Jim Urban - [EMAIL PROTECTED] Park City Solutions Inc. Clinical Connectivity Suite Product Manager Suite 295 500 Park Blvd. Itasca, IL 60143 Voice: (630) 250-3045 x106 Fax: (630) 250-3046 CONFIDENTIALITY NOTICE This message and any included attachments are from Park City Solutions Inc. and are intended only for the entity to which it is addressed. The contained information is confidential and privileged material. If you are not the intended recipient, you are hereby notified that any use, dissemination, or copying of this communication is strictly prohibited and may be unlawful. If you have received this communication in error please notify the sender of the delivery error by e-mail or call Park City Solutions Inc. corporate offices at (435) 654-0621 -Original Message- From: Turner, John [mailto:JTurner;AAS.com] Sent: Thursday, October 24, 2002 7:31 AM To: 'Tomcat Users List' Subject: RE: Apache/2 and Tomcat/4 not talking Wait! Complete the circle for the archives...what was the solution? John -Original Message- From: Jim Urban [mailto:jurban;parkcitysolutions.com] Sent: Thursday, October 24, 2002 8:27 AM To: 'Milt Epstein'; 'Tomcat Users List' Subject: RE: Apache/2 and Tomcat/4 not talking Thanks for all the help. I have gotten everything working. I have Apache/2 with SSL serving the static content and forwarding the servlet requests to Tomcat 4.0.4 under JDK 1.3 on W2K. To the doubters I say It can be done and the people in this community are vary helpful if you ask the right questions. Thanks! Jim Urban - [EMAIL PROTECTED] Park City Solutions Inc. Clinical Connectivity Suite Product Manager Suite 295 500 Park Blvd. Itasca, IL 60143 Voice: (630) 250-3045 x106 Fax: (630) 250-3046 CONFIDENTIALITY NOTICE This message and any included attachments are from Park City Solutions Inc. and are intended only for the entity to which it is addressed. The contained information is confidential and privileged material. If you are not the intended recipient, you are hereby notified that any use, dissemination, or copying of this communication is strictly prohibited and may be unlawful. If you have received this communication in error please notify the sender of the delivery error by e-mail or call Park City Solutions Inc. corporate offices at (435) 654-0621 -Original Message- From: Milt Epstein [mailto:mepstein;uiuc.edu] Sent: Wednesday, October 23, 2002 5:14 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Apache/2 and Tomcat/4 not talking On Wed, 23 Oct 2002, Jim Urban wrote: I have the following in my Apache httpd.conf: # Static files in the webapp are served by apache Alias /ccs_v32 y:/tomcat4.0.4/webapps/ccs_v32 # All servlets goes to worker1 JkMount /*/servlet/* worker1 The alias
RE: Apache/2 and Tomcat/4 not talking
On Thu, 24 Oct 2002, Turner, John wrote: Thanks...that 1 vs. l deal is something new, this is the first time I've seen anyone post about that. I never would have thought to check it, I will have to file that away for future debugging reference. Actually, it's something *old*. People who've used old typewriters will be familiar with the '1' vs. 'l' confusion. (Typewriter?! What the heck is a typewriter?!) :-) -Original Message- From: Jim Urban [mailto:jurban;parkcitysolutions.com] Sent: Thursday, October 24, 2002 8:55 AM To: 'Tomcat Users List' Subject: RE: Apache/2 and Tomcat/4 not talking It was a combination of minor things that snowballed into a big thing. 1. A typo in my workers.properties file. (worker.list=ajp13 and worker.ajp13.type=ajpl3 the first is a one and the other a lower case L). Surprisingly I didn't get any error message about this! 2. An incomplete mod_jk.conf (because tomcat couldn't find my mod_jk.dll?). 3. SSL request didn't make it to Tomcat because I missed the JkMounts in the VirtualHost localhost:443 of httpd.conf. It was my sloppiness. I've been using Tomcat and Apache for 2 years and I got complacent. Jim Urban - [EMAIL PROTECTED] Park City Solutions Inc. Clinical Connectivity Suite Product Manager Suite 295 500 Park Blvd. Itasca, IL 60143 Voice: (630) 250-3045 x106 Fax: (630) 250-3046 CONFIDENTIALITY NOTICE This message and any included attachments are from Park City Solutions Inc. and are intended only for the entity to which it is addressed. The contained information is confidential and privileged material. If you are not the intended recipient, you are hereby notified that any use, dissemination, or copying of this communication is strictly prohibited and may be unlawful. If you have received this communication in error please notify the sender of the delivery error by e-mail or call Park City Solutions Inc. corporate offices at (435) 654-0621 -Original Message- From: Turner, John [mailto:JTurner;AAS.com] Sent: Thursday, October 24, 2002 7:31 AM To: 'Tomcat Users List' Subject: RE: Apache/2 and Tomcat/4 not talking Wait! Complete the circle for the archives...what was the solution? John -Original Message- From: Jim Urban [mailto:jurban;parkcitysolutions.com] Sent: Thursday, October 24, 2002 8:27 AM To: 'Milt Epstein'; 'Tomcat Users List' Subject: RE: Apache/2 and Tomcat/4 not talking Thanks for all the help. I have gotten everything working. I have Apache/2 with SSL serving the static content and forwarding the servlet requests to Tomcat 4.0.4 under JDK 1.3 on W2K. To the doubters I say It can be done and the people in this community are vary helpful if you ask the right questions. Thanks! Jim Urban - [EMAIL PROTECTED] Park City Solutions Inc. Clinical Connectivity Suite Product Manager Suite 295 500 Park Blvd. Itasca, IL 60143 Voice: (630) 250-3045 x106 Fax: (630) 250-3046 CONFIDENTIALITY NOTICE This message and any included attachments are from Park City Solutions Inc. and are intended only for the entity to which it is addressed. The contained information is confidential and privileged material. If you are not the intended recipient, you are hereby notified that any use, dissemination, or copying of this communication is strictly prohibited and may be unlawful. If you have received this communication in error please notify the sender of the delivery error by e-mail or call Park City Solutions Inc. corporate offices at (435) 654-0621 -Original Message- From: Milt Epstein [mailto:mepstein;uiuc.edu] Sent: Wednesday, October 23, 2002 5:14 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Apache/2 and Tomcat/4 not talking On Wed, 23 Oct 2002, Jim Urban wrote: I have the following in my Apache httpd.conf: # Static files in the webapp are served by apache Alias /ccs_v32 y:/tomcat4.0.4/webapps/ccs_v32 # All servlets goes to worker1 JkMount /*/servlet/* worker1 The alias works because Apache serves my static files just fine. Not sure you can do that -- i.e. put that '*' before the /servlet/. (But not sure that's your problem either.) You might try it without it, i.e. use /servlet/* as the pattern, or perhaps /ccs_v32/servlet/*. Here is my workers.properties: workers.apache_log=d:/apache_43/apache2/logs/ workers.tomcat_home=y:/tomcat4.0.4 workers.java_home=d:/jdk1.3/ ps=/ # Define worker, ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=10 worker.worker1.cache_timeout=600
RE: Apache/2 and Tomcat/4 not talking
It also happens while holding the phone in your left hand while talking to a client and trying to key in a workers.properties file with only your right hand at the same time. Jim -Original Message- From: Milt Epstein [mailto:mepstein;uiuc.edu] Sent: Thursday, October 24, 2002 10:19 AM To: Tomcat Users List Subject: RE: Apache/2 and Tomcat/4 not talking On Thu, 24 Oct 2002, Turner, John wrote: Thanks...that 1 vs. l deal is something new, this is the first time I've seen anyone post about that. I never would have thought to check it, I will have to file that away for future debugging reference. Actually, it's something *old*. People who've used old typewriters will be familiar with the '1' vs. 'l' confusion. (Typewriter?! What the heck is a typewriter?!) :-) -Original Message- From: Jim Urban [mailto:jurban;parkcitysolutions.com] Sent: Thursday, October 24, 2002 8:55 AM To: 'Tomcat Users List' Subject: RE: Apache/2 and Tomcat/4 not talking It was a combination of minor things that snowballed into a big thing. 1. A typo in my workers.properties file. (worker.list=ajp13 and worker.ajp13.type=ajpl3 the first is a one and the other a lower case L). Surprisingly I didn't get any error message about this! 2. An incomplete mod_jk.conf (because tomcat couldn't find my mod_jk.dll?). 3. SSL request didn't make it to Tomcat because I missed the JkMounts in the VirtualHost localhost:443 of httpd.conf. It was my sloppiness. I've been using Tomcat and Apache for 2 years and I got complacent. Jim Urban - [EMAIL PROTECTED] Park City Solutions Inc. Clinical Connectivity Suite Product Manager Suite 295 500 Park Blvd. Itasca, IL 60143 Voice: (630) 250-3045 x106 Fax: (630) 250-3046 CONFIDENTIALITY NOTICE This message and any included attachments are from Park City Solutions Inc. and are intended only for the entity to which it is addressed. The contained information is confidential and privileged material. If you are not the intended recipient, you are hereby notified that any use, dissemination, or copying of this communication is strictly prohibited and may be unlawful. If you have received this communication in error please notify the sender of the delivery error by e-mail or call Park City Solutions Inc. corporate offices at (435) 654-0621 -Original Message- From: Turner, John [mailto:JTurner;AAS.com] Sent: Thursday, October 24, 2002 7:31 AM To: 'Tomcat Users List' Subject: RE: Apache/2 and Tomcat/4 not talking Wait! Complete the circle for the archives...what was the solution? John -Original Message- From: Jim Urban [mailto:jurban;parkcitysolutions.com] Sent: Thursday, October 24, 2002 8:27 AM To: 'Milt Epstein'; 'Tomcat Users List' Subject: RE: Apache/2 and Tomcat/4 not talking Thanks for all the help. I have gotten everything working. I have Apache/2 with SSL serving the static content and forwarding the servlet requests to Tomcat 4.0.4 under JDK 1.3 on W2K. To the doubters I say It can be done and the people in this community are vary helpful if you ask the right questions. Thanks! Jim Urban - [EMAIL PROTECTED] Park City Solutions Inc. Clinical Connectivity Suite Product Manager Suite 295 500 Park Blvd. Itasca, IL 60143 Voice: (630) 250-3045 x106 Fax: (630) 250-3046 CONFIDENTIALITY NOTICE This message and any included attachments are from Park City Solutions Inc. and are intended only for the entity to which it is addressed. The contained information is confidential and privileged material. If you are not the intended recipient, you are hereby notified that any use, dissemination, or copying of this communication is strictly prohibited and may be unlawful. If you have received this communication in error please notify the sender of the delivery error by e-mail or call Park City Solutions Inc. corporate offices at (435) 654-0621 -Original Message- From: Milt Epstein [mailto:mepstein;uiuc.edu] Sent: Wednesday, October 23, 2002 5:14 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Apache/2 and Tomcat/4 not talking On Wed, 23 Oct 2002, Jim Urban wrote: I have the following in my Apache httpd.conf: # Static files in the webapp are served by apache Alias /ccs_v32 y:/tomcat4.0.4/webapps/ccs_v32 # All servlets goes to worker1 JkMount /*/servlet/* worker1 The alias works because Apache serves my static files just fine. Not sure you can do that -- i.e. put that '*' before the /servlet/. (But not sure that's your problem either.) You might try it without it, i.e. use /servlet/* as the pattern, or perhaps /ccs_v32/servlet/*. Here is my workers.properties: workers.apache_log=d:/apache_43/apache2/logs
RE: Apache/2 and Tomcat/4 not talking
Just for informational purposes, in case someone needs the info. you can't do a: /*/servlet/* but you can do a: /*/servlet/ Notice just the one *. Got this from: glenn 02/04/21 15:57:11 Modified:jk/native/apache-1.3 mod_jk.c jk/native/common jk_logger.h jk_uri_worker_map.c jk_util.c jk/doc mod_jk-howto.html Log: Apache mod_jk 1.2 new features. Added JkRequestLogFormat for Apache style request logging including Tocmat request latency in seconds and microseconds. Added JkAutoAlias, this can be used to automatically Alias web application context directories so that static files can be served by Apache instead of Tomcat. When configured, requests for a WAR file in the Tomcat appBase (webapps) directory are forbidden. Requests for the WEB-INF and META-INF directories within a web application context dir are also forbidden and will return an HTTP 403 error. Added ability to JkMount so that /*/servlet/ can be used to configure mod_jk to pass all servlet requests on to Tomcat for any web application context. Revision ChangesPath 1.26 +521 -12 jakarta-tomcat-connectors/jk/native/apache-1.3/mod_jk.c Please see http://marc.theaimsgroup.com/?l=tomcat-devm=101942986517696w=2 for complete commit. rls Jim Urban [EMAIL PROTECTED] 10/24/2002 05:27 AM Please respond to Tomcat Users List To: 'Milt Epstein' [EMAIL PROTECTED], 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject:RE: Apache/2 and Tomcat/4 not talking Thanks for all the help. I have gotten everything working. I have Apache/2 with SSL serving the static content and forwarding the servlet requests to Tomcat 4.0.4 under JDK 1.3 on W2K. To the doubters I say It can be done and the people in this community are vary helpful if you ask the right questions. Thanks! Jim Urban - [EMAIL PROTECTED] Park City Solutions Inc. Clinical Connectivity Suite Product Manager Suite 295 500 Park Blvd. Itasca, IL 60143 Voice: (630) 250-3045 x106 Fax: (630) 250-3046 CONFIDENTIALITY NOTICE This message and any included attachments are from Park City Solutions Inc. and are intended only for the entity to which it is addressed. The contained information is confidential and privileged material. If you are not the intended recipient, you are hereby notified that any use, dissemination, or copying of this communication is strictly prohibited and may be unlawful. If you have received this communication in error please notify the sender of the delivery error by e-mail or call Park City Solutions Inc. corporate offices at (435) 654-0621 -Original Message- From: Milt Epstein [mailto:mepstein;uiuc.edu] Sent: Wednesday, October 23, 2002 5:14 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Apache/2 and Tomcat/4 not talking On Wed, 23 Oct 2002, Jim Urban wrote: I have the following in my Apache httpd.conf: # Static files in the webapp are served by apache Alias /ccs_v32 y:/tomcat4.0.4/webapps/ccs_v32 # All servlets goes to worker1 JkMount /*/servlet/* worker1 The alias works because Apache serves my static files just fine. Not sure you can do that -- i.e. put that '*' before the /servlet/. (But not sure that's your problem either.) You might try it without it, i.e. use /servlet/* as the pattern, or perhaps /ccs_v32/servlet/*. Here is my workers.properties: workers.apache_log=d:/apache_43/apache2/logs/ workers.tomcat_home=y:/tomcat4.0.4 workers.java_home=d:/jdk1.3/ ps=/ # Define worker, ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=10 worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.socket_timeout=300 Jim -Original Message- From: Milt Epstein [mailto:mepstein;uiuc.edu] Sent: Tuesday, October 22, 2002 7:06 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Apache/2 and Tomcat/4 not talking On Tue, 22 Oct 2002, Jim Urban wrote: I have spent the past two days trying to get Apache/2 to forward servlet requests to Tomcat. Here are the particulars: Java 1.3.0 Win 2K SP3 Tomcat 4.0.4 Apache/2 0.43 AJP13 SSL Mod_jk.conf ## Auto generated on Tue Oct 22 12:01:16 CDT 2002## IfModule !mod_jk.c LoadModule jk_module modules/mod_jk.dll /IfModule JkWorkersFile y:/Tomcat4.0.4/conf/jk/workers.properties JkLogFile y:/Tomcat4.0.4/logs/mod_jk.log JkLogLevel debug JkLogStampFormat [%a %b %d %H:%M:%S %Y] [ ... ] You don't have any JkMount directives. JkMount directives are of the form: JkMount url-pattern worker-name They tell Apache what URL's (based on a match of the URL pattern) to forward to Tomcat. worker-name should be defined in workers.properties with a number of: worker.worker-name.property=value where property
RE: Apache/2 and Tomcat/4 not talking
On Wed, 23 Oct 2002, Jim Urban wrote: I have the following in my Apache httpd.conf: # Static files in the webapp are served by apache Alias /ccs_v32 y:/tomcat4.0.4/webapps/ccs_v32 # All servlets goes to worker1 JkMount /*/servlet/* worker1 The alias works because Apache serves my static files just fine. Not sure you can do that -- i.e. put that '*' before the /servlet/. (But not sure that's your problem either.) You might try it without it, i.e. use /servlet/* as the pattern, or perhaps /ccs_v32/servlet/*. Here is my workers.properties: workers.apache_log=d:/apache_43/apache2/logs/ workers.tomcat_home=y:/tomcat4.0.4 workers.java_home=d:/jdk1.3/ ps=/ # Define worker, ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=10 worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.socket_timeout=300 Jim -Original Message- From: Milt Epstein [mailto:mepstein;uiuc.edu] Sent: Tuesday, October 22, 2002 7:06 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Apache/2 and Tomcat/4 not talking On Tue, 22 Oct 2002, Jim Urban wrote: I have spent the past two days trying to get Apache/2 to forward servlet requests to Tomcat. Here are the particulars: Java 1.3.0 Win 2K SP3 Tomcat 4.0.4 Apache/2 0.43 AJP13 SSL Mod_jk.conf ## Auto generated on Tue Oct 22 12:01:16 CDT 2002## IfModule !mod_jk.c LoadModule jk_module modules/mod_jk.dll /IfModule JkWorkersFile y:/Tomcat4.0.4/conf/jk/workers.properties JkLogFile y:/Tomcat4.0.4/logs/mod_jk.log JkLogLevel debug JkLogStampFormat [%a %b %d %H:%M:%S %Y] [ ... ] You don't have any JkMount directives. JkMount directives are of the form: JkMount url-pattern worker-name They tell Apache what URL's (based on a match of the URL pattern) to forward to Tomcat. worker-name should be defined in workers.properties with a number of: worker.worker-name.property=value where property is { host, port, type }. 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:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org 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:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Apache/2 and Tomcat/4 not talking
I'm pretty sure that only one globbing is allowed. When mod_jk builds it's map I think only one * is done. rls Milt Epstein [EMAIL PROTECTED] 10/23/2002 03:14 PM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED], [EMAIL PROTECTED] cc: Subject:RE: Apache/2 and Tomcat/4 not talking On Wed, 23 Oct 2002, Jim Urban wrote: I have the following in my Apache httpd.conf: # Static files in the webapp are served by apache Alias /ccs_v32 y:/tomcat4.0.4/webapps/ccs_v32 # All servlets goes to worker1 JkMount /*/servlet/* worker1 The alias works because Apache serves my static files just fine. Not sure you can do that -- i.e. put that '*' before the /servlet/. (But not sure that's your problem either.) You might try it without it, i.e. use /servlet/* as the pattern, or perhaps /ccs_v32/servlet/*. Here is my workers.properties: workers.apache_log=d:/apache_43/apache2/logs/ workers.tomcat_home=y:/tomcat4.0.4 workers.java_home=d:/jdk1.3/ ps=/ # Define worker, ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=10 worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.socket_timeout=300 Jim -Original Message- From: Milt Epstein [mailto:mepstein;uiuc.edu] Sent: Tuesday, October 22, 2002 7:06 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Apache/2 and Tomcat/4 not talking On Tue, 22 Oct 2002, Jim Urban wrote: I have spent the past two days trying to get Apache/2 to forward servlet requests to Tomcat. Here are the particulars: Java 1.3.0 Win 2K SP3 Tomcat 4.0.4 Apache/2 0.43 AJP13 SSL Mod_jk.conf ## Auto generated on Tue Oct 22 12:01:16 CDT 2002## IfModule !mod_jk.c LoadModule jk_module modules/mod_jk.dll /IfModule JkWorkersFile y:/Tomcat4.0.4/conf/jk/workers.properties JkLogFile y:/Tomcat4.0.4/logs/mod_jk.log JkLogLevel debug JkLogStampFormat [%a %b %d %H:%M:%S %Y] [ ... ] You don't have any JkMount directives. JkMount directives are of the form: JkMount url-pattern worker-name They tell Apache what URL's (based on a match of the URL pattern) to forward to Tomcat. worker-name should be defined in workers.properties with a number of: worker.worker-name.property=value where property is { host, port, type }. 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:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org 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:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Apache/2 and Tomcat/4 not talking
I have the following in my Apache httpd.conf: # Static files in the webapp are served by apache Alias /ccs_v32 y:/tomcat4.0.4/webapps/ccs_v32 # All servlets goes to worker1 JkMount /*/servlet/* worker1 The alias works because Apache serves my static files just fine. Here is my workers.properties: workers.apache_log=d:/apache_43/apache2/logs/ workers.tomcat_home=y:/tomcat4.0.4 workers.java_home=d:/jdk1.3/ ps=/ # Define worker, ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=10 worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.socket_timeout=300 Jim -Original Message- From: Milt Epstein [mailto:mepstein;uiuc.edu] Sent: Tuesday, October 22, 2002 7:06 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Apache/2 and Tomcat/4 not talking On Tue, 22 Oct 2002, Jim Urban wrote: I have spent the past two days trying to get Apache/2 to forward servlet requests to Tomcat. Here are the particulars: Java 1.3.0 Win 2K SP3 Tomcat 4.0.4 Apache/2 0.43 AJP13 SSL Mod_jk.conf ## Auto generated on Tue Oct 22 12:01:16 CDT 2002## IfModule !mod_jk.c LoadModule jk_module modules/mod_jk.dll /IfModule JkWorkersFile y:/Tomcat4.0.4/conf/jk/workers.properties JkLogFile y:/Tomcat4.0.4/logs/mod_jk.log JkLogLevel debug JkLogStampFormat [%a %b %d %H:%M:%S %Y] [ ... ] You don't have any JkMount directives. JkMount directives are of the form: JkMount url-pattern worker-name They tell Apache what URL's (based on a match of the URL pattern) to forward to Tomcat. worker-name should be defined in workers.properties with a number of: worker.worker-name.property=value where property is { host, port, type }. 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:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Apache/2 and Tomcat/4 not talking
[Tue Oct 22 14:04:37 2002] [jk_uri_worker_map.c (477)]: Attempting to map URI '/ccs_v32/servlet/NsServlet' [Tue Oct 22 14:04:37 2002] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match Is '/ccs_v32/servlet/NsServlet' a sane path? Do you have NsServlet configured correctly in web.xml? John -Original Message- From: Jim Urban [mailto:jurban;parkcitysolutions.com] Sent: Wednesday, October 23, 2002 8:41 AM To: 'Milt Epstein'; 'Tomcat Users List' Subject: RE: Apache/2 and Tomcat/4 not talking I have the following in my Apache httpd.conf: # Static files in the webapp are served by apache Alias /ccs_v32 y:/tomcat4.0.4/webapps/ccs_v32 # All servlets goes to worker1 JkMount /*/servlet/* worker1 The alias works because Apache serves my static files just fine. -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Apache/2 and Tomcat/4 not talking
Where are the Jkmount statements. If you don't mount anything, then you'll have nothing to look at. Please see http://www.johnturner.com/howto/apache2-tomcat404-howto.html. Even though it's written for a Red Hat system, the configuration of Apache, Mod_jk, and Tomcat is relevant to your situation. You should start reading from step 3 on down. Make sure you click on the included link to see an example of a mod_jk.conf file. rls Jim Urban [EMAIL PROTECTED] 10/22/2002 12:12 PM Please respond to Tomcat Users List To: Tomcat-User \(E-mail\) [EMAIL PROTECTED] cc: Subject:Apache/2 and Tomcat/4 not talking I have spent the past two days trying to get Apache/2 to forward servlet requests to Tomcat. Here are the particulars: Java 1.3.0 Win 2K SP3 Tomcat 4.0.4 Apache/2 0.43 AJP13 SSL Mod_jk.conf ## Auto generated on Tue Oct 22 12:01:16 CDT 2002## IfModule !mod_jk.c LoadModule jk_module modules/mod_jk.dll /IfModule JkWorkersFile y:/Tomcat4.0.4/conf/jk/workers.properties JkLogFile y:/Tomcat4.0.4/logs/mod_jk.log JkLogLevel debug JkLogStampFormat [%a %b %d %H:%M:%S %Y] workers.properties ## Auto generated on Tue Oct 22 12:01:16 CDT 2002## IfModule !mod_jk.c LoadModule jk_module modules/mod_jk.dll /IfModule JkWorkersFile y:/Tomcat4.0.4/conf/jk/workers.properties JkLogFile y:/Tomcat4.0.4/logs/mod_jk.log JkLogLevel debug JkLogStampFormat [%a %b %d %H:%M:%S %Y] mod_jk.log [Tue Oct 22 14:04:28 2002] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Tue Oct 22 14:04:28 2002] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Tue Oct 22 14:04:28 2002] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1 [Tue Oct 22 14:04:28 2002] [jk_uri_worker_map.c (287)]: Into jk_uri_worker_map_t::uri_worker_map_open, general context path rule /*/servlet/*=worker1 was added [Tue Oct 22 14:04:28 2002] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules [Tue Oct 22 14:04:28 2002] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done [Tue Oct 22 14:04:28 2002] [jk_worker.c (88)]: Into wc_open [Tue Oct 22 14:04:28 2002] [jk_worker.c (224)]: Into build_worker_map, creating 1 workers [Tue Oct 22 14:04:28 2002] [jk_worker.c (230)]: build_worker_map, creating worker worker1 [Tue Oct 22 14:04:28 2002] [jk_worker.c (148)]: Into wc_create_worker [Tue Oct 22 14:04:28 2002] [jk_worker.c (260)]: Factory :ajp12 [Tue Oct 22 14:04:28 2002] [jk_worker.c (260)]: Factory :ajp13 [Tue Oct 22 14:04:28 2002] [jk_worker.c (164)]: wc_create_worker, about to create instance worker1 of ajp13 [Tue Oct 22 14:04:28 2002] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory [Tue Oct 22 14:04:28 2002] [jk_worker.c (173)]: wc_create_worker, about to validate and init worker1 [Tue Oct 22 14:04:28 2002] [jk_ajp_common.c (1206)]: Into jk_worker_t::validate [Tue Oct 22 14:04:28 2002] [jk_ajp_common.c (1226)]: In jk_worker_t::validate for worker worker1 contact is localhost:8009 [Tue Oct 22 14:04:28 2002] [jk_ajp_common.c (1254)]: Into jk_worker_t::init [Tue Oct 22 14:04:28 2002] [jk_ajp_common.c (1274)]: In jk_worker_t::init, setting socket timeout to 300 [Tue Oct 22 14:04:28 2002] [jk_worker.c (189)]: wc_create_worker, done [Tue Oct 22 14:04:28 2002] [jk_worker.c (240)]: build_worker_map, removing old worker1 worker [Tue Oct 22 14:04:28 2002] [jk_worker.c (252)]: build_worker_map, done [Tue Oct 22 14:04:28 2002] [jk_worker.c (111)]: wc_open, done 1 [Tue Oct 22 14:04:28 2002] [jk_worker.c (118)]: Into wc_close [Tue Oct 22 14:04:28 2002] [jk_worker.c (201)]: close_workers got 1 workers to destroy [Tue Oct 22 14:04:28 2002] [jk_worker.c (208)]: close_workers will destroy worker worker1 [Tue Oct 22 14:04:28 2002] [jk_ajp_common.c (1311)]: Into jk_worker_t::destroy [Tue Oct 22 14:04:28 2002] [jk_ajp_common.c (1318)]: Into jk_worker_t::destroy up to 10 endpoint to close [Tue Oct 22 14:04:28 2002] [jk_worker.c (120)]: wc_close, done [Tue Oct 22 14:04:28 2002] [jk_uri_worker_map.c (190)]: Into jk_uri_worker_map_t::uri_worker_map_free [Tue Oct 22 14:04:28 2002] [jk_uri_worker_map.c (441)]: Into jk_uri_worker_map_t::uri_worker_map_close [Tue Oct 22 14:04:31 2002] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Tue Oct 22 14:04:31 2002] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Tue Oct 22 14:04:31 2002] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1 [Tue Oct 22 14:04:31 2002] [jk_uri_worker_map.c (287)]: Into jk_uri_worker_map_t::uri_worker_map_open, general context path rule /*/servlet/*=worker1 was added [Tue Oct 22 14:04:31 2002] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules [Tue Oct 22 14:04:31 2002] [jk_uri_worker_map.c (422)]:
Re: Apache/2 and Tomcat/4 not talking
On Tue, 22 Oct 2002, Jim Urban wrote: I have spent the past two days trying to get Apache/2 to forward servlet requests to Tomcat. Here are the particulars: Java 1.3.0 Win 2K SP3 Tomcat 4.0.4 Apache/2 0.43 AJP13 SSL Mod_jk.conf ## Auto generated on Tue Oct 22 12:01:16 CDT 2002## IfModule !mod_jk.c LoadModule jk_module modules/mod_jk.dll /IfModule JkWorkersFile y:/Tomcat4.0.4/conf/jk/workers.properties JkLogFile y:/Tomcat4.0.4/logs/mod_jk.log JkLogLevel debug JkLogStampFormat [%a %b %d %H:%M:%S %Y] [ ... ] You don't have any JkMount directives. JkMount directives are of the form: JkMount url-pattern worker-name They tell Apache what URL's (based on a match of the URL pattern) to forward to Tomcat. worker-name should be defined in workers.properties with a number of: worker.worker-name.property=value where property is { host, port, type }. 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:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Apache 2 and Tomcat 4
Tomcat 4 uses Listener elements in server.xml to generate mod_jk.conf. Here's a comprehensive list of user-provided HOWTO documents, for various operating systems and Tomcat versions: http://marc.theaimsgroup.com/?l=tomcat-userm=103231363414971w=2 John -Original Message- From: Steven Gollery [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 2:35 PM To: [EMAIL PROTECTED] Subject: Apache 2 and Tomcat 4 I've been trying to set up Apache 2 to work with Tomcat 4 on NT but I'm having problems finding documentation: everything refers to earlier versions or to Linux (or both). Trying to follow the directions in http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html, I can't get Tomcat to generate the mod_jk.conf file: Catalina.bat apparently doesn't recognize the -jkconf (or jkconf) directive in Tomcat 4.. Meanwhile, http://www.pubbitch.org/jboss/mod_jk2.html is the closest I can come to the versions I'm trying to use, but for Linux. I've tried to follow these directions, but they mention libjkjni.so, which I can't find for NT. Can someone point me to the location of this file, or tell me how to build it? Or is there some other file that is the equivalent on NT? I'd really like to RTFM, but I can't find what I need. Any specific advice would be appreciated. Or should I just stick with earlier versions of Apache web server and Tomcat until docs are available? Thanks, Steven Gollery [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: Apache 2 and Tomcat 4
Steven: Even though I have now switched to Tomcat on Linux, I wrote these very informal steps that I executed to get Tomcat up and running on NT. I hope this helps, Kenny - Original Message - From: Steven Gollery [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 30, 2002 1:34 PM Subject: Apache 2 and Tomcat 4 I've been trying to set up Apache 2 to work with Tomcat 4 on NT but I'm having problems finding documentation: everything refers to earlier versions or to Linux (or both). Trying to follow the directions in http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html, I can't get Tomcat to generate the mod_jk.conf file: Catalina.bat apparently doesn't recognize the -jkconf (or jkconf) directive in Tomcat 4.. Meanwhile, http://www.pubbitch.org/jboss/mod_jk2.html is the closest I can come to the versions I'm trying to use, but for Linux. I've tried to follow these directions, but they mention libjkjni.so, which I can't find for NT. Can someone point me to the location of this file, or tell me how to build it? Or is there some other file that is the equivalent on NT? I'd really like to RTFM, but I can't find what I need. Any specific advice would be appreciated. Or should I just stick with earlier versions of Apache web server and Tomcat until docs are available? Thanks, Steven Gollery [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] JSP server installation instructions.doc Description: MS-Word document -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Apache 2 and Tomcat 4
Thanks, John -- and also thanks to Kenny Dubuisson. With the links you both provided, I've now managed to get Apache and Tomcat running. Much appreciated. Steve Gollery [EMAIL PROTECTED] Turner, John wrote: Tomcat 4 uses Listener elements in server.xml to generate mod_jk.conf. Here's a comprehensive list of user-provided HOWTO documents, for various operating systems and Tomcat versions: http://marc.theaimsgroup.com/?l=tomcat-userm=103231363414971w=2 John -Original Message- From: Steven Gollery [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 2:35 PM To: [EMAIL PROTECTED] Subject: Apache 2 and Tomcat 4 I've been trying to set up Apache 2 to work with Tomcat 4 on NT but I'm having problems finding documentation: everything refers to earlier versions or to Linux (or both). Trying to follow the directions in http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html, I can't get Tomcat to generate the mod_jk.conf file: Catalina.bat apparently doesn't recognize the -jkconf (or jkconf) directive in Tomcat 4.. Meanwhile, http://www.pubbitch.org/jboss/mod_jk2.html is the closest I can come to the versions I'm trying to use, but for Linux. I've tried to follow these directions, but they mention libjkjni.so, which I can't find for NT. Can someone point me to the location of this file, or tell me how to build it? Or is there some other file that is the equivalent on NT? I'd really like to RTFM, but I can't find what I need. Any specific advice would be appreciated. Or should I just stick with earlier versions of Apache web server and Tomcat until docs are available? Thanks, Steven Gollery [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: Apache 2 with Tomcat 4.* on Solaris 8
Others have built the connectors on Solaris 8. Do you have a GNU build environment setup? You'll need gcc, libtool, automake, make, and autoconf if you want to do it the old school way using ./configure. All tools are available at http://www.sunfreeware.com If you want to post more specific information about your build problems (error messages, etc), you will probably get a response from someone who has the answer. John -Original Message- From: Hauck, Joe [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 12:57 PM To: [EMAIL PROTECTED] Subject: Apache 2 with Tomcat 4.* on Solaris 8 Hello all, Is anyone using Apache2 with Tomcat 4 on Solaris 8? If so, what connector are you using (mod_jk, mod_jk2, mod_webapp)? I have tried to build both mod_jk and mod_jk2 from source with no luck. Any help would be greatly appreciated. Joe. -- 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: Apache 2 with Tomcat 4.* on Solaris 8
We use Apache 2.0.39, Tomcat 4.0.3. on Solaris 8 w/ mod_webapp. -Original Message- From: Hauck, Joe [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 12:57 PM To: [EMAIL PROTECTED] Subject: Apache 2 with Tomcat 4.* on Solaris 8 Hello all, Is anyone using Apache2 with Tomcat 4 on Solaris 8? If so, what connector are you using (mod_jk, mod_jk2, mod_webapp)? I have tried to build both mod_jk and mod_jk2 from source with no luck. Any help would be greatly appreciated. Joe. -- 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: Apache 2 with Tomcat 4.* on Solaris 8
I am currently using it on Solaris 9 and it wasn't easy to get things working, but I have managed to get all 3 to work and I have decided to go with mod_jk for now since it seems to handle the SSL info the best. I couldn't get the other 2 to pass the cert chain from apache2 to tomcat. Here are a few hints on getting it compiled: You have to make sure you have the following packages installed: libtool autoconf automake m4 Then you have to make sure you use gcc to compile and set these env variables: CC=gcc CFLAGS=-DBSD_COMP I just went into the jk/native directory and ran the buildconf.sh script then use run configure like this: ./configure --with-apxs=[path to your apxs binary] then make and you should have the mod_jk.so file in the apache-2.0 directory when you are finished. Calvin --On Wednesday, September 25, 2002 12:57:08 PM -0400 Hauck, Joe [EMAIL PROTECTED] wrote: Hello all, Is anyone using Apache2 with Tomcat 4 on Solaris 8? If so, what connector are you using (mod_jk, mod_jk2, mod_webapp)? I have tried to build both mod_jk and mod_jk2 from source with no luck. calvin hendryx-parker www.epylon.com enterprise infomediary, engineering 415.593.2738 o | 415.593.2738 f Epylon Corporation 645 Harrison Street, Suite 200 San Francisco, CA 94107 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache 2 and Tomcat 4
You need to register the dairy as a Context in the server.xml file, something like this assuming the path is /dairy Context path=/dairy docBase=diary debug=0 reloadable=true / If your installation is working correctly at http://localhost:8080 then please read http://localhost:8080/tomcat-docs/appdev/index.html for an easy way to deploy applications under 4.1.x. using Ant. Good luck rls Michael Remijan [EMAIL PROTECTED] 08/11/2002 02:57 PM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: Apache 2 and Tomcat 4 Robert, Yes, but I don't and can't use an index.html. I need index.jsp so I can put a tag in the page that will do a redirect to another jsp page if need be. I've setup workers2.properties like this: [uri:/diary] info=Diary webapp in the default context context=/diary debug=0 [uri:/diary/servlet/*] info=Prefix mapping [uri:/diary/do/*] info=Prefix mapping [uri:/diary/*.jsp] info=Extension mapping but still get a directory listing when I goto http://localhost/diary or http://localhost/diary/ So it's like apache isn't forwarding this request to tomcat. If I put in http://localhost/diary/index.jsp it works fine. mike/ -Original Message- From: Robert L Sowders [mailto:[EMAIL PROTECTED]] Sent: Monday, August 05, 2002 6:37 PM To: Tomcat Users List Subject: RE: Apache 2 and Tomcat 4 Mod_jk2 doesn't have anything to do with the default index page. That is up to Apache or Tomcat depending on what dirs Tomcat is mounting with mod_jk2. This is determined in the works2.properties file in the APACHE_HOME\conf directory. (*.jsp) Tomcat is set to recognize the index.jsp as the default in it's directories already. If you just want a page to look at instead of the directory listing for the example directory then a simple index.html will do just fine. Have a look at TOMCAT_HOME\examples\servlets\index.html or the TOMCAT_HOME\examples\jsp\index.html. Apache will hand you these pages so there's no need to do a index.jsp. Remember let Apache and Tomcat do their respective jobs, static for Apache, and jsp for Tomcat. Michael Remijan [EMAIL PROTECTED] 08/05/2002 12:52 PM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: Apache 2 and Tomcat 4 Robert, I tracked it down. I've been using jdk1.4.1beta. Once I downloaded and installed jdk1.4.0 it started to work. How do I get mod_jk2 to recognize index.jsp as the default page. I obviously need that other than a directory listing. I have index.jsp added to DirectoryIndex in httpd.conf and I have the welcome-file-list set in the web.xml's mike/ -Original Message- From: Robert L Sowders [mailto:[EMAIL PROTECTED]] Sent: Monday, August 05, 2002 1:03 PM To: Tomcat Users List Cc: Tomcat Users List Subject: RE: Apache 2 and Tomcat 4 Hey Mike, What do the apache log files say? Chck there to see any errors during startup for Tomcat. Check your JAVA_HOME environment variable and path statement for accuracy. You may also want to include the JAVA_HOME\bin dir in the path so the JAI is found. Hope this helps. Michael Remijan [EMAIL PROTECTED] 08/05/2002 09:50 AM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: Apache 2 and Tomcat 4 Robert, I followed these steps but it doesn't appear to be working. The stderr.log says: --- TomcatStarter: main() Try org.apache.tomcat.startup.Main Try org.apache.catalina.startup.BootstrapService Starting org.apache.catalina.startup.BootstrapService java.lang.NoClassDefFoundError: org/xml/sax/InputSource at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Unknown Source) at org.apache.catalina.startup.BootstrapService.init(BootstrapService.java:198) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:292) at java.lang.reflect.Method.invoke(Native Method) at org.apache.jk.apr.TomcatStarter.run(TomcatStarter.java:127) at java.lang.Thread.run(Unknown Source) --- couple things about your post: (1) you say Cut and paste the following jk2.properties file into the JAVA_HOME\conf directory (Edit paths to suit) I'm assuming you mean TOMCAT_HOME (2) my jdk1.4 is in c:\program files\j2se. this make a difference? mike/ -Original Message- From: Robert L Sowders [mailto:[EMAIL PROTECTED]] Sent: Friday, August 02, 2002 11:18 PM To: [EMAIL PROTECTED] Subject: Re: Apache 2 and Tomcat 4 Sure thing, But it's for Tomcat 4.1.8 Install J2sdk1.4.0_01 http://java.sun.com/j2se/1.4/download.html No need to install src or demos. I chose an install path of c:\1\java, try to keep it simple. Add the java bin directory
RE: Apache 2 and Tomcat 4
... I do have this done. Right now I'm thinking that it has to do with the Apache configuration. If I have directory browsing turned on, and an index.html file is not found, then apache will display the directory. I'm hoping that if I turn directory browsing off, and it doesn't find index.html it'll forward the request to tomcat. This sound like it'll work? mike/ -Original Message- From: Robert L Sowders [mailto:[EMAIL PROTECTED]] Sent: Monday, August 12, 2002 5:41 AM To: Tomcat Users List Cc: Tomcat Users List Subject: RE: Apache 2 and Tomcat 4 You need to register the dairy as a Context in the server.xml file, something like this assuming the path is /dairy Context path=/dairy docBase=diary debug=0 reloadable=true / If your installation is working correctly at http://localhost:8080 then please read http://localhost:8080/tomcat-docs/appdev/index.html for an easy way to deploy applications under 4.1.x. using Ant. Good luck rls Michael Remijan [EMAIL PROTECTED] 08/11/2002 02:57 PM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: Apache 2 and Tomcat 4 Robert, Yes, but I don't and can't use an index.html. I need index.jsp so I can put a tag in the page that will do a redirect to another jsp page if need be. I've setup workers2.properties like this: [uri:/diary] info=Diary webapp in the default context context=/diary debug=0 [uri:/diary/servlet/*] info=Prefix mapping [uri:/diary/do/*] info=Prefix mapping [uri:/diary/*.jsp] info=Extension mapping but still get a directory listing when I goto http://localhost/diary or http://localhost/diary/ So it's like apache isn't forwarding this request to tomcat. If I put in http://localhost/diary/index.jsp it works fine. mike/ -Original Message- From: Robert L Sowders [mailto:[EMAIL PROTECTED]] Sent: Monday, August 05, 2002 6:37 PM To: Tomcat Users List Subject: RE: Apache 2 and Tomcat 4 Mod_jk2 doesn't have anything to do with the default index page. That is up to Apache or Tomcat depending on what dirs Tomcat is mounting with mod_jk2. This is determined in the works2.properties file in the APACHE_HOME\conf directory. (*.jsp) Tomcat is set to recognize the index.jsp as the default in it's directories already. If you just want a page to look at instead of the directory listing for the example directory then a simple index.html will do just fine. Have a look at TOMCAT_HOME\examples\servlets\index.html or the TOMCAT_HOME\examples\jsp\index.html. Apache will hand you these pages so there's no need to do a index.jsp. Remember let Apache and Tomcat do their respective jobs, static for Apache, and jsp for Tomcat. Michael Remijan [EMAIL PROTECTED] 08/05/2002 12:52 PM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: Apache 2 and Tomcat 4 Robert, I tracked it down. I've been using jdk1.4.1beta. Once I downloaded and installed jdk1.4.0 it started to work. How do I get mod_jk2 to recognize index.jsp as the default page. I obviously need that other than a directory listing. I have index.jsp added to DirectoryIndex in httpd.conf and I have the welcome-file-list set in the web.xml's mike/ -Original Message- From: Robert L Sowders [mailto:[EMAIL PROTECTED]] Sent: Monday, August 05, 2002 1:03 PM To: Tomcat Users List Cc: Tomcat Users List Subject: RE: Apache 2 and Tomcat 4 Hey Mike, What do the apache log files say? Chck there to see any errors during startup for Tomcat. Check your JAVA_HOME environment variable and path statement for accuracy. You may also want to include the JAVA_HOME\bin dir in the path so the JAI is found. Hope this helps. Michael Remijan [EMAIL PROTECTED] 08/05/2002 09:50 AM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: Apache 2 and Tomcat 4 Robert, I followed these steps but it doesn't appear to be working. The stderr.log says: --- TomcatStarter: main() Try org.apache.tomcat.startup.Main Try org.apache.catalina.startup.BootstrapService Starting org.apache.catalina.startup.BootstrapService java.lang.NoClassDefFoundError: org/xml/sax/InputSource at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Unknown Source) at org.apache.catalina.startup.BootstrapService.init(BootstrapService.java:198) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:292) at java.lang.reflect.Method.invoke(Native Method) at org.apache.jk.apr.TomcatStarter.run(TomcatStarter.java:127) at java.lang.Thread.run(Unknown Source) --- couple things about your post: (1) you say Cut and paste the following jk2.properties file
RE: Apache 2 and Tomcat 4
That's not quite how it works. The only edit you need to do in the httpd.conf is the LoadModule statement for the mod_jk2.dll. Then assuming all your paths are correct in worker2.properties file, Tomcat will display a blue directory listing at http://localhost/examples. See below for details on how to turn that off. The URI statements in the workers2.properties file is used by mod_jk2 to direct traffic to Tomcat but only the directories listed and only for the file types listed. That way you can have static and dynamic files in the same directory. I'm sorry Michael, are you saying that Tomcat is refusing to show you the directory listing of the /examples directory??? Please let me know if you see a blue directory listing or not at http://localhost/examples If what you want to do is to NOT have Tomcat display the directory listing of the examples directory then please see line 54 of the TOMCAT_HOME\conf\web.xml file and change true to false. But then you must know that if you deny the directory listing and you do not have an index.html or index.jsp file there, nothing will be displayed. init-param param-namelistings/param-name param-valuetrue/param-value /init-param Michael Remijan [EMAIL PROTECTED] 08/12/2002 07:26 AM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: Apache 2 and Tomcat 4 ... I do have this done. Right now I'm thinking that it has to do with the Apache configuration. If I have directory browsing turned on, and an index.html file is not found, then apache will display the directory. I'm hoping that if I turn directory browsing off, and it doesn't find index.html it'll forward the request to tomcat. This sound like it'll work? mike/ -Original Message- From: Robert L Sowders [mailto:[EMAIL PROTECTED]] Sent: Monday, August 12, 2002 5:41 AM To: Tomcat Users List Cc: Tomcat Users List Subject: RE: Apache 2 and Tomcat 4 You need to register the dairy as a Context in the server.xml file, something like this assuming the path is /dairy Context path=/dairy docBase=diary debug=0 reloadable=true / If your installation is working correctly at http://localhost:8080 then please read http://localhost:8080/tomcat-docs/appdev/index.html for an easy way to deploy applications under 4.1.x. using Ant. Good luck rls Michael Remijan [EMAIL PROTECTED] 08/11/2002 02:57 PM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: Apache 2 and Tomcat 4 Robert, Yes, but I don't and can't use an index.html. I need index.jsp so I can put a tag in the page that will do a redirect to another jsp page if need be. I've setup workers2.properties like this: [uri:/diary] info=Diary webapp in the default context context=/diary debug=0 [uri:/diary/servlet/*] info=Prefix mapping [uri:/diary/do/*] info=Prefix mapping [uri:/diary/*.jsp] info=Extension mapping but still get a directory listing when I goto http://localhost/diary or http://localhost/diary/ So it's like apache isn't forwarding this request to tomcat. If I put in http://localhost/diary/index.jsp it works fine. mike/ -Original Message- From: Robert L Sowders [mailto:[EMAIL PROTECTED]] Sent: Monday, August 05, 2002 6:37 PM To: Tomcat Users List Subject: RE: Apache 2 and Tomcat 4 Mod_jk2 doesn't have anything to do with the default index page. That is up to Apache or Tomcat depending on what dirs Tomcat is mounting with mod_jk2. This is determined in the works2.properties file in the APACHE_HOME\conf directory. (*.jsp) Tomcat is set to recognize the index.jsp as the default in it's directories already. If you just want a page to look at instead of the directory listing for the example directory then a simple index.html will do just fine. Have a look at TOMCAT_HOME\examples\servlets\index.html or the TOMCAT_HOME\examples\jsp\index.html. Apache will hand you these pages so there's no need to do a index.jsp. Remember let Apache and Tomcat do their respective jobs, static for Apache, and jsp for Tomcat. Michael Remijan [EMAIL PROTECTED] 08/05/2002 12:52 PM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: Apache 2 and Tomcat 4 Robert, I tracked it down. I've been using jdk1.4.1beta. Once I downloaded and installed jdk1.4.0 it started to work. How do I get mod_jk2 to recognize index.jsp as the default page. I obviously need that other than a directory listing. I have index.jsp added to DirectoryIndex in httpd.conf and I have the welcome-file-list set in the web.xml's mike/ -Original Message- From: Robert L Sowders [mailto:[EMAIL PROTECTED]] Sent: Monday, August 05, 2002 1:03 PM To: Tomcat Users List Cc: Tomcat Users List Subject: RE: Apache 2 and Tomcat 4 Hey
RE: Apache 2 and Tomcat 4
Robert, Yes, but I don't and can't use an index.html. I need index.jsp so I can put a tag in the page that will do a redirect to another jsp page if need be. I've setup workers2.properties like this: [uri:/diary] info=Diary webapp in the default context context=/diary debug=0 [uri:/diary/servlet/*] info=Prefix mapping [uri:/diary/do/*] info=Prefix mapping [uri:/diary/*.jsp] info=Extension mapping but still get a directory listing when I goto http://localhost/diary or http://localhost/diary/ So it's like apache isn't forwarding this request to tomcat. If I put in http://localhost/diary/index.jsp it works fine. mike/ -Original Message- From: Robert L Sowders [mailto:[EMAIL PROTECTED]] Sent: Monday, August 05, 2002 6:37 PM To: Tomcat Users List Subject: RE: Apache 2 and Tomcat 4 Mod_jk2 doesn't have anything to do with the default index page. That is up to Apache or Tomcat depending on what dirs Tomcat is mounting with mod_jk2. This is determined in the works2.properties file in the APACHE_HOME\conf directory. (*.jsp) Tomcat is set to recognize the index.jsp as the default in it's directories already. If you just want a page to look at instead of the directory listing for the example directory then a simple index.html will do just fine. Have a look at TOMCAT_HOME\examples\servlets\index.html or the TOMCAT_HOME\examples\jsp\index.html. Apache will hand you these pages so there's no need to do a index.jsp. Remember let Apache and Tomcat do their respective jobs, static for Apache, and jsp for Tomcat. Michael Remijan [EMAIL PROTECTED] 08/05/2002 12:52 PM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: Apache 2 and Tomcat 4 Robert, I tracked it down. I've been using jdk1.4.1beta. Once I downloaded and installed jdk1.4.0 it started to work. How do I get mod_jk2 to recognize index.jsp as the default page. I obviously need that other than a directory listing. I have index.jsp added to DirectoryIndex in httpd.conf and I have the welcome-file-list set in the web.xml's mike/ -Original Message- From: Robert L Sowders [mailto:[EMAIL PROTECTED]] Sent: Monday, August 05, 2002 1:03 PM To: Tomcat Users List Cc: Tomcat Users List Subject: RE: Apache 2 and Tomcat 4 Hey Mike, What do the apache log files say? Chck there to see any errors during startup for Tomcat. Check your JAVA_HOME environment variable and path statement for accuracy. You may also want to include the JAVA_HOME\bin dir in the path so the JAI is found. Hope this helps. Michael Remijan [EMAIL PROTECTED] 08/05/2002 09:50 AM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: Apache 2 and Tomcat 4 Robert, I followed these steps but it doesn't appear to be working. The stderr.log says: --- TomcatStarter: main() Try org.apache.tomcat.startup.Main Try org.apache.catalina.startup.BootstrapService Starting org.apache.catalina.startup.BootstrapService java.lang.NoClassDefFoundError: org/xml/sax/InputSource at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Unknown Source) at org.apache.catalina.startup.BootstrapService.init(BootstrapService.java:198) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:292) at java.lang.reflect.Method.invoke(Native Method) at org.apache.jk.apr.TomcatStarter.run(TomcatStarter.java:127) at java.lang.Thread.run(Unknown Source) --- couple things about your post: (1) you say Cut and paste the following jk2.properties file into the JAVA_HOME\conf directory (Edit paths to suit) I'm assuming you mean TOMCAT_HOME (2) my jdk1.4 is in c:\program files\j2se. this make a difference? mike/ -Original Message- From: Robert L Sowders [mailto:[EMAIL PROTECTED]] Sent: Friday, August 02, 2002 11:18 PM To: [EMAIL PROTECTED] Subject: Re: Apache 2 and Tomcat 4 Sure thing, But it's for Tomcat 4.1.8 Install J2sdk1.4.0_01 http://java.sun.com/j2se/1.4/download.html No need to install src or demos. I chose an install path of c:\1\java, try to keep it simple. Add the java bin directory to the system PATH variable in my case it is C:\1\java\bin Add JAVA_HOME to the system variables pointing it at where you installed JSDK mine is C:\1\java Install Apache 2.0.39 http://www.apache.org/dist/httpd/binaries/win32/apache_2.0.39-win32-x86-no_ssl.msi Make a nice short path without any blank spaces for the installation. Mine is C:\1\Apache2 During installation set domain and ServerName to localhost. Install Tomcat 4.1.8 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/test/v4.1.8/bin/jakarta-tomcat-4.1.8-LE-jdk14.exe Again make sure to chose a nice short install path without any
RE: Apache 2 and Tomcat 4
Robert, Is the JAVA_HOME/conf directory the correct place to put jk2.properties file, because I do not have a conf file in my JAVA_HOME directory? Thanks Trask -Original Message- From: Robert L Sowders [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 03, 2002 12:18 AM To: [EMAIL PROTECTED] Subject: Re: Apache 2 and Tomcat 4 Sure thing, But it's for Tomcat 4.1.8 Install J2sdk1.4.0_01 http://java.sun.com/j2se/1.4/download.html No need to install src or demos. I chose an install path of c:\1\java, try to keep it simple. Add the java bin directory to the system PATH variable in my case it is C:\1\java\bin Add JAVA_HOME to the system variables pointing it at where you installed JSDK mine is C:\1\java Install Apache 2.0.39 http://www.apache.org/dist/httpd/binaries/win32/apache_2.0.39-win32-x86- no_ssl.msi Make a nice short path without any blank spaces for the installation. Mine is C:\1\Apache2 During installation set domain and ServerName to localhost. Install Tomcat 4.1.8 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/test/v4.1.8/bin/jaka rta-tomcat-4.1.8-LE-jdk14.exe Again make sure to chose a nice short install path without any blanks in the names. Mine is C:\1\Tomcat Note: During installation you don't have select the check box for nt service. Tomcat will be started by Apache as it's needed. Set system environment variables for Tomcat home; TOMCAT_HOME= C:\1\Tomcat Install and configure mod_jk2.dll http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/nightly/w in32/ Save mod_jk2.dll to the APACHE_HOME/modules directory. In the httpd.conf file add this LoadModule statement to the beginning of the LoadModule section; LoadModule jk2_module modules/mod_jk2.dll In your APACHE_HOME/logs directory create three empty files; stdout.log stderr.log jk2.shm Drop the attached workers2.properties file into the APACHE_HOME/conf directory. (Edit paths to suit) Cut and paste the following jk2.properties file into the JAVA_HOME\conf directory (Edit paths to suit) Reboot to make all the variables active Open http://localhost/examples to test. Have fun rls Hello All, I am trying to find a configuration that will allow apache 2 and tomcat 4 to talk to each other on a windows platform. Does anyone have any pointers on where to look? Thanks. Stephen. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache 2 and Tomcat 4
http://www.cnr.berkeley.edu/~salazar/apache_tomcat.html John Turner [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 02, 2002 6:53 AM To: [EMAIL PROTECTED] Subject: Apache 2 and Tomcat 4 Hello All, I am trying to find a configuration that will allow apache 2 and tomcat 4 to talk to each other on a windows platform. Does anyone have any pointers on where to look? Thanks. Stephen. --- Copyright material and/or confidential and/or privileged information may be contained in this e-mail and any attached documents. The material and information is intended for the use of the intended addressee only. If you are not the intended addressee, or the person responsible for delivering it to the intended addressee, you may not copy, disclose, distribute, disseminate or deliver it to anyone else or use it in any unauthorised manner or take or omit to take any action in reliance on it. To do so is prohibited and may be unlawful. The views expressed in this e-mail may not be official policy but the personal views of the originator. If you receive this e-mail in error, please advise the sender immediately by using the reply facility in your e-mail software, or contact [EMAIL PROTECTED] Please also delete this e-mail and all documents attached immediately. Many thanks for your co-operation. BMW Financial Services (GB) Limited is registered in England and Wales under company number 01288537. Registered Offices : Europa House, Bartley Way, Hook, Hants, RG27 9UF -- -- 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: Apache 2 and Tomcat 4
Thanks, Apart from a few typo's on the page it worked wonderfully. -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: 02 August 2002 13:15 To: 'Tomcat Users List' Subject: RE: Apache 2 and Tomcat 4 http://www.cnr.berkeley.edu/~salazar/apache_tomcat.html John Turner [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 02, 2002 6:53 AM To: [EMAIL PROTECTED] Subject: Apache 2 and Tomcat 4 Hello All, I am trying to find a configuration that will allow apache 2 and tomcat 4 to talk to each other on a windows platform. Does anyone have any pointers on where to look? Thanks. Stephen. --- Copyright material and/or confidential and/or privileged information may be contained in this e-mail and any attached documents. The material and information is intended for the use of the intended addressee only. If you are not the intended addressee, or the person responsible for delivering it to the intended addressee, you may not copy, disclose, distribute, disseminate or deliver it to anyone else or use it in any unauthorised manner or take or omit to take any action in reliance on it. To do so is prohibited and may be unlawful. The views expressed in this e-mail may not be official policy but the personal views of the originator. If you receive this e-mail in error, please advise the sender immediately by using the reply facility in your e-mail software, or contact [EMAIL PROTECTED] Please also delete this e-mail and all documents attached immediately. Many thanks for your co-operation. BMW Financial Services (GB) Limited is registered in England and Wales under company number 01288537. Registered Offices : Europa House, Bartley Way, Hook, Hants, RG27 9UF -- -- 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: Apache 2 and Tomcat 4
Sure thing, But it's for Tomcat 4.1.8 Install J2sdk1.4.0_01 http://java.sun.com/j2se/1.4/download.html No need to install src or demos. I chose an install path of c:\1\java, try to keep it simple. Add the java bin directory to the system PATH variable in my case it is C:\1\java\bin Add JAVA_HOME to the system variables pointing it at where you installed JSDK mine is C:\1\java Install Apache 2.0.39 http://www.apache.org/dist/httpd/binaries/win32/apache_2.0.39-win32-x86-no_ssl.msi Make a nice short path without any blank spaces for the installation. Mine is C:\1\Apache2 During installation set domain and ServerName to localhost. Install Tomcat 4.1.8 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/test/v4.1.8/bin/jakarta-tomcat-4.1.8-LE-jdk14.exe Again make sure to chose a nice short install path without any blanks in the names. Mine is C:\1\Tomcat Note: During installation you don't have select the check box for nt service. Tomcat will be started by Apache as it's needed. Set system environment variables for Tomcat home; TOMCAT_HOME= C:\1\Tomcat Install and configure mod_jk2.dll http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/nightly/win32/ Save mod_jk2.dll to the APACHE_HOME/modules directory. In the httpd.conf file add this LoadModule statement to the beginning of the LoadModule section; LoadModule jk2_module modules/mod_jk2.dll In your APACHE_HOME/logs directory create three empty files; stdout.log stderr.log jk2.shm Drop the attached workers2.properties file into the APACHE_HOME/conf directory. (Edit paths to suit) Cut and paste the following jk2.properties file into the JAVA_HOME\conf directory (Edit paths to suit) Reboot to make all the variables active Open http://localhost/examples to test. Have fun rls Hello All, I am trying to find a configuration that will allow apache 2 and tomcat 4 to talk to each other on a windows platform. Does anyone have any pointers on where to look? Thanks. Stephen. jk2.properties Description: Binary data workers2.properties Description: Binary data -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache 2 and Tomcat 4 on Windows!!@#$!
Cool I will have to find a way to compile it for my Linux box. -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 11:42 PM To: Tomcat Users List Subject: RE: Apache 2 and Tomcat 4 on Windows!!@#$! Sure it does. Just download the precompiled mod_jk.dll binary from: http://www.acg-gmbh.de/mod_jk/ Then include the attached mod_jk.conf at the *bottom* of your httpd.conf. Note that this was autogenerated from Tomcat 3.3.1 using -autoconf when starting Tomcat. I just changed some of the values in it to match with my 4.1-dev install. You'll have to add your own stuff, but it will give you a startor you can just forward everything to Tomcat and make it easy. Your choice. Then, make sure that the JkWorkersFile directive is pointing to the location of the attached workers.properties. Notice that is is somewhat different than the one you posted, Sachin. Make sure the file paths make sense for your install and all that jazz My Apache 2.0.35 is working just great with this setup. Jake At 08:53 PM 4/19/2002 -0400, you wrote: Yea... does any of the developers monitor this list? I think by now there should be a blaring huge notice saying that mod_jk and Apache 2 just doesn't work yet. -Original Message- From: Dole, Sachin Sudhakar [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 7:05 PM To: '[EMAIL PROTECTED]' Subject: Apache 2 and Tomcat 4 on Windows!!@#$! Hi I get the following error when starting apache 2 with the directive: LoadModule jk_module modules/mod_jk.dll The error: C:\Program Files\Apache Group\Apache2\binapache Syntax error on line 952 of C:/Program Files/Apache Group/Apache2/conf/httpd.conf: Cannot load C:/Program Files/Apache Group/Apache2/modules/mod_jk.dll into server: The specified module could not be found. I have the dll in place. Now, I have tomcat running, I have the attached Worker.properties and httpd.conf. Can someone please help me out. I have searched the mail archives and though there are a number of people facing the same problem, it seems to me that my problems are unique!!! httpd.conf workers.properties What could be the problem? Warm Regards Sachin Dole Warm Regards Sachin Dole Gateway Village - 800 Bldg, 800 W.Trade St., 3rd Flr South, NC1-025-03-42, Charlotte NC. Phone: 704-683-3603 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Apache 2 and Tomcat 4 on Windows!!@#$!
Yea... does any of the developers monitor this list? I think by now there should be a blaring huge notice saying that mod_jk and Apache 2 just doesn't work yet. -Original Message- From: Dole, Sachin Sudhakar [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 7:05 PM To: '[EMAIL PROTECTED]' Subject: Apache 2 and Tomcat 4 on Windows!!@#$! Hi I get the following error when starting apache 2 with the directive: LoadModule jk_module modules/mod_jk.dll The error: C:\Program Files\Apache Group\Apache2\binapache Syntax error on line 952 of C:/Program Files/Apache Group/Apache2/conf/httpd.conf: Cannot load C:/Program Files/Apache Group/Apache2/modules/mod_jk.dll into server: The specified module could not be found. I have the dll in place. Now, I have tomcat running, I have the attached Worker.properties and httpd.conf. Can someone please help me out. I have searched the mail archives and though there are a number of people facing the same problem, it seems to me that my problems are unique!!! httpd.conf workers.properties What could be the problem? Warm Regards Sachin Dole Warm Regards Sachin Dole Gateway Village - 800 Bldg, 800 W.Trade St., 3rd Flr South, NC1-025-03-42, Charlotte NC. Phone: 704-683-3603 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Apache 2 and Tomcat 4 on Windows!!@#$!
Sure it does. Just download the precompiled mod_jk.dll binary from: http://www.acg-gmbh.de/mod_jk/ Then include the attached mod_jk.conf at the *bottom* of your httpd.conf. Note that this was autogenerated from Tomcat 3.3.1 using -autoconf when starting Tomcat. I just changed some of the values in it to match with my 4.1-dev install. You'll have to add your own stuff, but it will give you a startor you can just forward everything to Tomcat and make it easy. Your choice. Then, make sure that the JkWorkersFile directive is pointing to the location of the attached workers.properties. Notice that is is somewhat different than the one you posted, Sachin. Make sure the file paths make sense for your install and all that jazz My Apache 2.0.35 is working just great with this setup. Jake At 08:53 PM 4/19/2002 -0400, you wrote: Yea... does any of the developers monitor this list? I think by now there should be a blaring huge notice saying that mod_jk and Apache 2 just doesn't work yet. -Original Message- From: Dole, Sachin Sudhakar [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 7:05 PM To: '[EMAIL PROTECTED]' Subject: Apache 2 and Tomcat 4 on Windows!!@#$! Hi I get the following error when starting apache 2 with the directive: LoadModule jk_module modules/mod_jk.dll The error: C:\Program Files\Apache Group\Apache2\binapache Syntax error on line 952 of C:/Program Files/Apache Group/Apache2/conf/httpd.conf: Cannot load C:/Program Files/Apache Group/Apache2/modules/mod_jk.dll into server: The specified module could not be found. I have the dll in place. Now, I have tomcat running, I have the attached Worker.properties and httpd.conf. Can someone please help me out. I have searched the mail archives and though there are a number of people facing the same problem, it seems to me that my problems are unique!!! httpd.conf workers.properties What could be the problem? Warm Regards Sachin Dole Warm Regards Sachin Dole Gateway Village - 800 Bldg, 800 W.Trade St., 3rd Flr South, NC1-025-03-42, Charlotte NC. Phone: 704-683-3603 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] # workers.properties - # # This file provides jk derived plugins with the needed information to # connect to the different tomcat workers. Note that the distributed # version of this file requires modification before it is usable by a # plugin. # # As a general note, the characters $( and ) are used internally to define # macros. Do not use them in your own configuration!!! # # Whenever you see a set of lines such as: # x=value # y=$(x)\something # # the final value for y will be value\something # # Normaly all you will need to do is un-comment and modify the first three # properties, i.e. workers.tomcat_home, workers.java_home and ps. # Most of the configuration is derived from these. # # When you are done updating workers.tomcat_home, workers.java_home and ps # you should have 3 workers configured: # # - An ajp12 worker that connects to localhost:8007 # - An ajp13 worker that connects to localhost:8009 # - A jni inprocess worker. # - A load balancer worker # # However by default the plugins will only use the ajp12 worker. To have # the plugins use other workers you should modify the worker.list property. # # # OPTIONS ( very important for jni mode ) # # workers.tomcat_home should point to the location where you # installed tomcat. This is where you have your conf, webapps and lib # directories. # workers.tomcat_home=$(CATALINA_HOME) # workers.tomcat_home=/usr/local/tomcat # # workers.java_home should point to your Java installation. Normally # you should have a bin and lib directories beneath it. # workers.java_home=$(JAVA_HOME) # workers.java_home=/usr/java # # You should configure your environment slash... ps=\ on NT and / on UNIX # and maybe something different elsewhere. # # ps=/ ps=\ # #-- ADVANCED MODE #- # # #-- DEFAULT worket list -- #- # # # The workers that your plugins should create and work with # # Add 'inprocess' if you want JNI connector worker.list=ajp13 # ,ajp14, inprocess #-- DEFAULT ajp13 WORKER DEFINITION -- #- # # # Defining a worker named ajp13 and of type ajp13 # Note that the name and the type do not have to match. # worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 # # Specifies the load balance factor when used with # a load balancing worker. # Note: # lbfactor must be 0 # Low lbfactor means less work done by the worker. worker.ajp13.lbfactor=1 # # Specify the size of the open connection cache. #worker.ajp13.cachesize