This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) this week in the Spring 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).]
I agree. Here's the link:
subject: Help with .war files
It's not a secret anymore!