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
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
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
-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
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
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
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
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
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
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
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
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
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
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
: 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
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
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
-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
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
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
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
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
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
23 matches
Mail list logo