title: How to repack an Java Web Archive (WAR)?
body: <p>I have a .war file of an application. It works, but I need to update some
  inner jars <i>(only minor version changes)</i></p>
  
  <p>While I can operate on .war archives using the
  midnight commander, the files can't be executed anymore:
  <code>java.lang.SecurityException: SHA1 digest error</code>.</p>
  
  <p>I tried repacking it using the jar command, but I get it wrong:
  The archive contains new META-INF, and no WEB-INF (which is needed).</p>
  
  <p>Thank you for proposed solutions!</p>