Monday, November 21, 2011

'Exploding' the war

Often, you will come across references to 'exploded war'. All this means is that the war file has been unzipped (or unwared or unjared - its the same thing).

If you explode the war, you will see that it contains the WEB-INF directory.
Look inside it to see the web.xml, /classes and /lib

You can deploy your application as a war, or copy the exploded war.

On Tomcat, when you deploy it as a war, it will automatically be exploded when Tomcat loads it.

On some other servers, like JBoss or Weblogic, a war file will not be exploded.

No comments: