tomcat-users mailing list archives

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

Shon,

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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkpQs7IACgkQ9CaO5/Lv0PCsoACgqCEc4ZGTiTZdUCXLgT1ZNjwj
3GwAn3X7fZ+QPywM4DsrFHHockpSWVlH
=A3lb
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message