Re: Running two versions of servlet in same tomcat instance

2011-09-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tod, On 9/18/2011 1:37 PM, Tod Olson wrote: > I would like to run two versions of the same servlet (same > servlet-class, but with different WAR filename, servlet-name and > url-pattern) under a single instance of Tomcat 6.0.33. Your nomenclature i

Re: Running two versions of servlet in same tomcat instance

2011-09-19 Thread André Warnier
Actually, the explanation below was a bit approximative (late Sunday night thing). It's not really "relative". The formal explanation is given in the Servlet Specification, but it's more like this : a) Tomcat uses the first path component of the URL, to map a request to a web application. (in

Re: Running two versions of servlet in same tomcat instance

2011-09-18 Thread Tod Olson
Aha, that fixes it. Thanks for that explanation, I had completely missed that about the url-pattern being relative to the webapp. I clearly need to un-confuse myself about servlet-mapping. Thank you! -Tod On Sep 18, 2011, at 2:19 PM, André Warnier wrote: > Hi. > > Change the of your test

Re: Running two versions of servlet in same tomcat instance

2011-09-18 Thread André Warnier
Hi. Change the of your test application, to be exactly the same as the of the production application. And invoke it as "http://yourhost.cpy.com/testvsb/";, followed by the same "rest of URL" as what you use for the main application. Brief explanation : the is *relative* to the "webapp na

Running two versions of servlet in same tomcat instance

2011-09-18 Thread Tod Olson
I would like to run two versions of the same servlet (same servlet-class, but with different WAR filename, servlet-name and url-pattern) under a single instance of Tomcat 6.0.33. Basically, the aim is to run both test and production versions of the servlet under the same instance. Better to r