user496949 user496949 - 1 year ago 84
Java Question

Why is my WAR file automatically exploded in Tomcat?

In Tomcat, I found the .war will be automatically exploded. Is this the behavior expected?

Answer Source

Check out unpackWARs option in server.xml:

<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">

I guess working on exploded archive is faster (I have no idea whether Tomcat explodes the file in-memory when unpackWARs is false or uses some other technique).

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download