Re: JK2 Servlet Configuration Problem
Tomcat Users List [EMAIL PROTECTED] schrieb am 17.07.03 04:16:58: I'm running Tomcat 4.1.24 with Apache 2.0.46 using JK2 2.0.2 on a Red Hat 9 system (kernel 2.4.20). I followed the last HOWTO on the JK docs page (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html) and everything works great. Except it only specifies how to have *.jsp files sent to tomcat. None of my servlets work because JK2 is setup to only send requests ending in *.jsp to Tomcat. Here's what I have in workers2.properties: [uri:vegas.x.multivisioninc.com/*.jsp] worker=ajp13:localhost:8009 [uri:admin.vegas.x.multivisioninc.com/*.jsp] worker=ajp13:localhost:8009 My servlets all start at /action. If I change the uri path to /action/* then I loose JPSs. If I change it to * then it works, however, then tomcat is serving up my /images/* folder instead of Apache. I can't move all the JSPs under the /action directory. Is there any way to specify more than one uri per virtual host? Workaround for that: Put the servlets under a sub-directory then mount that directory additionally in workers2.properties: [uri:vegas.x.multivisioninc.com/servlets/*] worker=ajp13:localhost:8009 The documentation for JK is really bad. Someone should re-write it. Agree to that. A better way for configuration docs than the JK doc and the many JK guides on the internet would be propably if more people share their experiences and setup notices on a central site, like http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Jk2Connector Joe Krause -- Simon Pabst E-Mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JK2 Servlet Configuration Problem
I don't use JK2, but as far as I know, this is prefectly valid: [uri:vegas.x.multivisioninc.com/*.jsp] worker=ajp13:localhost:8009 [uri:vegas.x.multivisioninc.com/action/*] worker=ajp13:localhost:8009 Are you saying you have tried this and it does not work? Regarding your comments on the documentation, patches are always welcome. John On Wed, 16 Jul 2003 14:06:40 -0700, Joe Krause [EMAIL PROTECTED] wrote: I'm running Tomcat 4.1.24 with Apache 2.0.46 using JK2 2.0.2 on a Red Hat 9 system (kernel 2.4.20). I followed the last HOWTO on the JK docs page (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html) and everything works great. Except it only specifies how to have *.jsp files sent to tomcat. None of my servlets work because JK2 is setup to only send requests ending in *.jsp to Tomcat. Here's what I have in workers2.properties: [uri:vegas.x.multivisioninc.com/*.jsp] worker=ajp13:localhost:8009 [uri:admin.vegas.x.multivisioninc.com/*.jsp] worker=ajp13:localhost:8009 My servlets all start at /action. If I change the uri path to /action/* then I loose JPSs. If I change it to * then it works, however, then tomcat is serving up my /images/* folder instead of Apache. I can't move all the JSPs under the /action directory. Is there any way to specify more than one uri per virtual host? The documentation for JK is really bad. Someone should re-write it. Joe Krause -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JK2 Servlet Configuration Problem
Great! Thanks guys - this works. -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 6:09 AM To: Tomcat Users List Subject: Re: JK2 Servlet Configuration Problem I don't use JK2, but as far as I know, this is prefectly valid: [uri:vegas.x.multivisioninc.com/*.jsp] worker=ajp13:localhost:8009 [uri:vegas.x.multivisioninc.com/action/*] worker=ajp13:localhost:8009 Are you saying you have tried this and it does not work? Regarding your comments on the documentation, patches are always welcome. John On Wed, 16 Jul 2003 14:06:40 -0700, Joe Krause [EMAIL PROTECTED] wrote: I'm running Tomcat 4.1.24 with Apache 2.0.46 using JK2 2.0.2 on a Red Hat 9 system (kernel 2.4.20). I followed the last HOWTO on the JK docs page (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html) and everything works great. Except it only specifies how to have *.jsp files sent to tomcat. None of my servlets work because JK2 is setup to only send requests ending in *.jsp to Tomcat. Here's what I have in workers2.properties: [uri:vegas.x.multivisioninc.com/*.jsp] worker=ajp13:localhost:8009 [uri:admin.vegas.x.multivisioninc.com/*.jsp] worker=ajp13:localhost:8009 My servlets all start at /action. If I change the uri path to /action/* then I loose JPSs. If I change it to * then it works, however, then tomcat is serving up my /images/* folder instead of Apache. I can't move all the JSPs under the /action directory. Is there any way to specify more than one uri per virtual host? The documentation for JK is really bad. Someone should re-write it. Joe Krause -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JK2 Servlet Configuration Problem
I have the same problem of tomcat serving up my /images/* folder instead of Apache. I have two mappings as well, for /*.jsp and /servlet/*. I spent hours trying to figure out why Tomcat was serving up my directories! Please keep me posted if you find a solution. Rick. - Original Message - From: Joe Krause [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 2:06 PM Subject: JK2 Servlet Configuration Problem I'm running Tomcat 4.1.24 with Apache 2.0.46 using JK2 2.0.2 on a Red Hat 9 system (kernel 2.4.20). I followed the last HOWTO on the JK docs page (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html) and everything works great. Except it only specifies how to have *.jsp files sent to tomcat. None of my servlets work because JK2 is setup to only send requests ending in *.jsp to Tomcat. Here's what I have in workers2.properties: [uri:vegas.x.multivisioninc.com/*.jsp] worker=ajp13:localhost:8009 [uri:admin.vegas.x.multivisioninc.com/*.jsp] worker=ajp13:localhost:8009 My servlets all start at /action. If I change the uri path to /action/* then I loose JPSs. If I change it to * then it works, however, then tomcat is serving up my /images/* folder instead of Apache. I can't move all the JSPs under the /action directory. Is there any way to specify more than one uri per virtual host? The documentation for JK is really bad. Someone should re-write it. Joe Krause - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]