user496949 user496949 - 7 months ago 49
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?


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).