title: How to unpackage and repackage a WAR file
body: <p>I have a WAR file. I would like to open it, edit an XML file, remove some jars and then re-package it.</p>
  
  <p>I used WINRAR to open the WAR file and I removed some Jars and did an 'Add to Archive' in WinRar and created a WAR.</p>
  
  <p>When I deployed the WAR in jboss folder, I got an exception.</p>
  
  <pre><code>   16:05:14,316 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) 
     MSC00001: Failed to start service jboss.deployment.unit."myapplication.war".
     STRUCTURE: org.jboss.msc.service.StartException in 
     service   jboss.deployment.unit."myapplication.war".STRUCTURE: 
     Failed to process phase STRUCTURE of deployment "myapplication.war"
  </code></pre>
  
  <p>How do I repackage the WAR ?</p>