RE: Multiple Contexts from single WAR

2007-06-22 Thread Caldarale, Charles R
> From: Chris Hall [mailto:[EMAIL PROTECTED] > Subject: RE: Multiple Contexts from single WAR > > How to have a servlet mapping the same as the context name? I want > http://localhost/ to invoke my servlet by default. Pick one of the names and map that to your servle

RE: Multiple Contexts from single WAR

2007-06-22 Thread Chris Hall
2007 18:22 To: Tomcat Users List Subject: Re: Multiple Contexts from single WAR Talking to David he's doing it yet another way. Tomcat is certainly flexible ;) - Original Message - From: "Caldarale, Charles R" <[EMAIL PROTECTED]> To: "Tomcat Users List&quo

Re: Multiple Contexts from single WAR

2007-06-22 Thread David Smith
Sorry, but I don't use ant. I've switched to maven for building webapps. I find it's ability to handle dependencies via standard http download oh so nice to work with. What I posted allows for multiple configs from one war build -- great for when the logic is all the same, just need to tweak

Re: Multiple Contexts from single WAR

2007-06-22 Thread Johnny Kewl
Talking to David he's doing it yet another way. Tomcat is certainly flexible ;) - Original Message - From: "Caldarale, Charles R" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Friday, June 22, 2007 5:07 PM Subject: RE: Multiple Contexts from

Re: Multiple Contexts from single WAR

2007-06-22 Thread Johnny Kewl
Ok thanks Charles - Original Message - From: "Caldarale, Charles R" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Friday, June 22, 2007 4:02 PM Subject: RE: Multiple Contexts from single WAR From: Johnny Kewl [mailto:[EMAIL PROTECTED] Subject: Re: Mul

Re: Multiple Contexts from single WAR

2007-06-22 Thread Johnny Kewl
Hey David Try this. Little bit of ant script to deploy your WAR as many times as you want I like! Now if the original user had to say put 3 contexts on 5 different machines... very cool! Just read the ant script. http://localhost:808

RE: Multiple Contexts from single WAR

2007-06-22 Thread Caldarale, Charles R
> From: Johnny Kewl [mailto:[EMAIL PROTECTED] > Subject: Re: Multiple Contexts from single WAR > > Even though that works, personally I would go for making > 3 copies, rename them to whatever is wanted, then just > drop them in. The procedure I outlined requires only

RE: Multiple Contexts from single WAR

2007-06-22 Thread Caldarale, Charles R
> From: David Smith [mailto:[EMAIL PROTECTED] > Subject: Re: Multiple Contexts from single WAR > > I don't know of any way to make one war deploy as three separate > contexts. I already described the required procedure; here it is again: 1) The .war file must NOT

Re: Multiple Contexts from single WAR

2007-06-22 Thread David Smith
it should be done? - Original Message - From: "Caldarale, Charles R" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Friday, June 22, 2007 3:13 AM Subject: RE: Multiple Contexts from single WAR From: Johnny Kewl [mailto:[EMAIL PROTECTED] Subject: Re: Multi

Re: Multiple Contexts from single WAR

2007-06-22 Thread Johnny Kewl
To: "Tomcat Users List" Sent: Friday, June 22, 2007 3:13 AM Subject: RE: Multiple Contexts from single WAR From: Johnny Kewl [mailto:[EMAIL PROTECTED] Subject: Re: Multiple Contexts from single WAR OK... you cant do it from a WAR, the tomcat WAR deployment seems to ignore contexts a

RE: Multiple Contexts from single WAR

2007-06-22 Thread Caldarale, Charles R
> From: Johnny Kewl [mailto:[EMAIL PROTECTED] > Subject: Re: Multiple Contexts from single WAR > > > > Compile it and drop that WAR into Tomcats webapp (auto deploy) > > The context will be changed to TEST will it not? > Yes it does describe the thing in conf

RE: Multiple Contexts from single WAR

2007-06-22 Thread Caldarale, Charles R
> From: Johnny Kewl [mailto:[EMAIL PROTECTED] > Subject: Re: Multiple Contexts from single WAR > > How does the user deploy it to get it like that, thanks, > we now know what cant be done, but given one WAR, how > would you deploy it to 3 contexts, as 3 web apps? Either do

Re: Multiple Contexts from single WAR

2007-06-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Johnny, Johnny Kewl wrote: > > > Compile it and drop that WAR into Tomcats webapp (auto deploy) They're not talking about auto-deploy. I think this part is confusing you. You're right: auto-deploy uses the name of the WAR file for the context path

Re: Multiple Contexts from single WAR

2007-06-22 Thread David kerber
7 3:13 AM Subject: RE: Multiple Contexts from single WAR From: Johnny Kewl [mailto:[EMAIL PROTECTED] Subject: Re: Multiple Contexts from single WAR OK... you cant do it from a WAR, the tomcat WAR deployment seems to ignore contexts and always default to the name of the WAR file. Not true. Whe

Re: Multiple Contexts from single WAR

2007-06-22 Thread Johnny Kewl
, 2007 3:13 AM Subject: RE: Multiple Contexts from single WAR From: Johnny Kewl [mailto:[EMAIL PROTECTED] Subject: Re: Multiple Contexts from single WAR OK... you cant do it from a WAR, the tomcat WAR deployment seems to ignore contexts and always default to the name of the WAR file. Not true.

Re: Multiple Contexts from single WAR

2007-06-22 Thread Johnny Kewl
[host] but its not the one the user put in Please explain why this is not true? - Original Message - From: "Caldarale, Charles R" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Friday, June 22, 2007 3:13 AM Subject: RE: Multiple Contexts from single

RE: Multiple Contexts from single WAR

2007-06-21 Thread Caldarale, Charles R
> From: Johnny Kewl [mailto:[EMAIL PROTECTED] > Subject: Re: Multiple Contexts from single WAR > > OK... you cant do it from a WAR, the tomcat WAR deployment > seems to ignore contexts and always default to the name of > the WAR file. Not true. When the .war is located so

Re: Multiple Contexts from single WAR

2007-06-21 Thread Johnny Kewl
ntext you want it will require a little ant script. Why didnt you just say so ;) ... bed time for me. - Original Message - From: "Caldarale, Charles R" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Friday, June 22, 2007 2:08 AM Subject: RE: Mu

RE: Multiple Contexts from single WAR

2007-06-21 Thread Caldarale, Charles R
> From: Johnny Kewl [mailto:[EMAIL PROTECTED] > Subject: Re: Multiple Contexts from single WAR > > Chris, dont think you can... just so I understand it you thinking > http://localhost:8080/A > http://localhost:8080/B > http://localhost:8080/C > must all map to o

Re: Multiple Contexts from single WAR

2007-06-21 Thread Johnny Kewl
Chris, to get an idea of how you can map with Apache in front of Tomcat, look at this link. http://tomcat.apache.org/connectors-doc-archive/jk2/jk/aphowto.html Its worth a read because often when the site gets bigger, you end up wanting to load balance, or use Apache to serve images so may

Re: Multiple Contexts from single WAR

2007-06-21 Thread Johnny Kewl
Chris, dont think you can... just so I understand it you thinking http://localhost:8080/A http://localhost:8080/B http://localhost:8080/C must all map to one web-app, say WebApp A that I dont think is possible But if you not using ROOT for anything else other than Welcome to Tomcat

Re: Multiple Contexts from single WAR

2007-06-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, Chris Hall wrote: > Hi, I'm experiencing some issues with getting correct behaviour on deploying > multiple Contexts based on a single WAR. I need to do this because whilst my > application is common to multiple contexts, I need to control Remo

RE: Multiple Contexts from single WAR

2007-06-21 Thread Caldarale, Charles R
> From: Chris Hall [mailto:[EMAIL PROTECTED] > Subject: Multiple Contexts from single WAR > > I have defined multiple contexts in > conf/catalina/localhost/*.xml each of which use > a common docBase and this appears to create each > of the webapps on start-up. If you're going to play this game