tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: Deploy Tocam with 2 war -> one core and one customize
Date Sun, 05 Jul 2009 14:07:46 GMT
Hash: SHA1


On 7/5/2009 8:44 AM, sha_z12 wrote:
> i need to deploy to tomcat 2 wars that [contain the] same file
> name[s] but the files can be different.
> for example, the 2 wars are :
> 1. CORE.war
> 2. Customize.war
> what i need is that when i am calling "default.jsp" file, tomcat will go
> first to customize.war and will look there for the requested
> file(default.jsp) , if he will not find it there , tomcat will go to
> Core.war and will use the file from there.

Neither Tomcat nor any other app server that I know of can deploy two
WAR files into the same context.

May I suggest an easier alternative? Instead of deploying CORE.war and
Customize.war, why not do this:

$ unzip CORE.war /path/to/deployment/directory
$ unzip -o Customize.war /path/to/deployment/directory

Then, deploy your webapp. If you need a single WAR to deploy, then
simply unzip your WAR files to a temporary directory and then create a
new WAR file from the resulting directory structure.

- -chris
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message