user496949 user496949 - 5 days ago 7
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

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

Comments