user496949 user496949 - 11 months ago 61
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).