• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to Explode a *.war File Manually?

 
Ranch Hand
Posts: 325
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic