File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes How to Explode a *.war File Manually? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "How to Explode a *.war File Manually?" Watch "How to Explode a *.war File Manually?" New topic
Author

How to Explode a *.war File Manually?

Natalie Kopple
Ranch Hand

Joined: May 06, 2003
Posts: 320
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

Joined: Jan 10, 2002
Posts: 56191
    
  13

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to Explode a *.war File Manually?
 
Similar Threads
Issues logging with log4j
write File to server with servlet
TomCat refuse to execute init(), but WebLogic could!
problem deploying a war
tomcat 6 WAR deployment