my dog learned polymorphism
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
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Expanded WARs?" Watch "Expanded WARs?" New topic

Expanded WARs?

Chase Bonham
Ranch Hand

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

<Host appBase="/mydir">

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

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.
[ 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:
subject: Expanded WARs?
It's not a secret anymore!