File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes How to create a war file. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How to create a war file." Watch "How to create a war file." New topic
Author

How to create a war file.

John Daniel
Greenhorn

Joined: Mar 27, 2005
Posts: 20
I've been able to create a small three screen web application using Murach's Java Servlets and JSPs book with only the usual number of issues. Now, however, I need to convert my application into a "war" file. Unfortunately, war files are not in the book. Could someone please give me the "war files for dummies" summary of how to create a deploy-able war file?
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

A WAR file is no different from a JAR file, except that it has some special content. Look at Wikipedia, there's a link to creating a WAR file.

(sorry I can't post the link, don't know why, but I'm getting an error. Go to Wikipedia and search for WAR)


[My Blog]
All roads lead to JavaRanch
Chetan Raju
Ranch Hand

Joined: Aug 02, 2006
Posts: 109
I guess war file can be created by zipping it (windows) and renaming it as .war

However, the directory structure should be taken care of. (Web app directory structure)
Jeroen T Wenting
Ranch Hand

Joined: Apr 21, 2006
Posts: 1847
war files, and ear files, par files, rar files, and jar files are all created using the jar command.
Don't use another tool, as the file structure might not match the required one.


42
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

rar files ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to create a war file.