This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
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?
Similar Threads
virtual hosts in stand alone tomcat
Why my application on Tomcat works only with localhost?
how to remove the port number in URL
Get Host appbase Path of a JSP in Tomcat
virtual host in tomcat