File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Help with  .war files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Help with  .war files" Watch "Help with  .war files" New topic

Help with .war files

Ajan Balakrishnan
Ranch Hand

Joined: Jan 04, 2001
Posts: 71
Hi guys,
Anybody got an idea to extract contents from .war files like the one's comes with Tomcat. Any utilities/tools available.
Any help greatly appreciated
Peter den Haan
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
Just use jar. Both .war and .ear files are just .jar files with a certain structure (and a .jar file is in turn a .zip file with meta-information added, so if you don't have jar you can simply rename the file to .zip and open it).
- Peter
Ajan Balakrishnan
Ranch Hand

Joined: Jan 04, 2001
Posts: 71
Thanx Peter for your reply. I know the .jar can be opened with any zip utilities. I tried the same thing with .war but no luck.
Even i renamed the .war to zip and tried still luck doesnot seem to turn out my way.

Thanx again

[This message has been edited by Ajan Balakrishnan (edited February 07, 2001).]
It is sorta covered in the JavaRanch Style Guide.
subject: Help with .war files
Similar Threads
How to create WAR file with Resource?
war files?
How does one make a *%$#@ .war file?
Error while trying to make war file
How to Update WarFile in Maven POM.xml