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
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).]
I agree. Here's the link:
subject: Help with .war files
jQuery in Action, 3rd edition