File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to Explode a *.war File Manually?

 
Natalie Kopple
Ranch Hand
Posts: 325
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I put a *.war in the Tomcat webapps folder. I got HTTP Status 404 error.

I know that *.war file works elsewhere. And the Tomcat log tells:


SEVERE: Exception fixing docBase for context [/tcgaclient]
java.util.zip.ZipException: error in opening zip file


I would like to explode that *.war manually. Please advise how I can do it. Thank you.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64173
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That probably means that the file is corrupted. Or perhaps there is a permissions problem.

In any case, a war file is just a zip file with a specified folder format inside. Any zip tool, including the jar command, can manipulate the war file.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic