Re: Multiple Contexts from single WAR

2007-06-22 Thread Johnny Kewl
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. When the .war is located someplace other

Re: Multiple Contexts from single WAR

2007-06-22 Thread Johnny Kewl
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. When the .war

Re: Multiple Contexts from single WAR

2007-06-22 Thread David kerber
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. When the .war

Re: Multiple Contexts from single WAR

2007-06-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Johnny, Johnny Kewl wrote: Context path=/TheOneIWant/ 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

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 it manually (as I did

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 Context path=/TheOneIWant/ 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/Catalina

Re: Multiple Contexts from single WAR

2007-06-22 Thread Johnny Kewl
PM Subject: Re: Multiple Contexts from single WAR I don't know if this is how it *should* be done, but I have gotten it to work by putting the context definitions in server.xml, and specifying both their context base and doc base. I never got it to work using any other technique, and I tried

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 go into the Host appBase directory

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 replication of the [appname].xml

Re: Multiple Contexts from single WAR

2007-06-22 Thread David Smith
be done? - Original Message - From: Caldarale, Charles R [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org 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

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 users@tomcat.apache.org Sent: Friday, June 22, 2007 4:02 PM Subject: RE: Multiple Contexts from single WAR From: Johnny Kewl [mailto:[EMAIL PROTECTED] Subject: Re: Multiple

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. project name=Deployer default=compile basedir=. path

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 users@tomcat.apache.org Sent: Friday, June 22, 2007 5:07 PM Subject: RE: Multiple Contexts from single WAR From

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

RE: Multiple Contexts from single WAR

2007-06-22 Thread Chris Hall
: 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 users@tomcat.apache.org Sent: Friday, June 22, 2007 5:07 PM Subject: RE: Multiple

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/context to invoke my servlet by default. Pick one of the welcome-file names and map that to your servlet

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, make

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

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

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 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 one web-app, say WebApp A that I

Re: Multiple Contexts from single WAR

2007-06-21 Thread Johnny Kewl
single WAR 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 one web-app, say WebApp A that I

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 someplace other than the Host