It's not a secret anymore!*
The moose likes Tomcat and the fly likes Expanded WARs? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Expanded WARs?" Watch "Expanded WARs?" New topic
Author

Expanded WARs?

Chase Bonham
Ranch Hand

Joined: Jul 15, 2006
Posts: 50
Tomcat 5.5.23.

<Host appBase="/mydir">
...
</Host>

By default, when myapp.war gets deployed, Tomcat creates a myapp directory in the mydir (appBase) directory and expands the war there.

Is it possible to specify a different directory for that expansion to take place?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

One option is to set the "unpackWARs" attribute to false.

Tomcat will still unpack it but it will do so 'behind the scenes' somewhere in the work directory.

http://tomcat.apache.org/tomcat-5.5-doc/config/host.html
[ June 18, 2007: Message edited by: Ben Souther ]

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Expanded WARs?
 
Similar Threads
how to remove the port number in URL
virtual hosts in stand alone tomcat
Why my application on Tomcat works only with localhost?
Get Host appbase Path of a JSP in Tomcat
virtual host in tomcat