aspose file tools*
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
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
virtual host in tomcat
virtual hosts in stand alone tomcat
Get Host appbase Path of a JSP in Tomcat
how to remove the port number in URL
Why my application on Tomcat works only with localhost?