This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Tomcat and the fly likes How to Explode a *.war File Manually? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to Explode a *.war File Manually?" Watch "How to Explode a *.war File Manually?" New topic

How to Explode a *.war File Manually?

Natalie Kopple
Ranch Hand

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

Joined: Jan 10, 2002
Posts: 61314

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.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
GeeCON Prague 2014
subject: How to Explode a *.war File Manually?