aspose file tools*
The moose likes Tomcat and the fly likes How do I make a war file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How do I make a war file?" Watch "How do I make a war file?" New topic
Author

How do I make a war file?

John Neubean
Greenhorn

Joined: Jun 07, 2006
Posts: 2
What is the best way to make a war file from within a web server using jar?
My problem is, I don't know what directories and subdirectories to include.
I've seen jar syntax: <prompt>jar <war app name>.war .

The dot at the end signifies copying everything in the current directory, but the war file created this way does'nt work If I'm in the "class" subdirectory when I create the war file.

What procedures should I follow to make a war file that deploys correctly when placed in C:\Tomcat\webapps\

Should I still use: <prompt>jar <war app name>.war .
but, from another location?

Posting a step-by-step procedure for creating and deploying war files would be very handy for those of us tired of searching and buying books without answers.

Thanks for your assistance.

John NeuBean
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Suppose tomcat is installed in c:\tomcat and your webapp's name is myWebapp.
Also suppose you want the generated war file to go to the root of your c drive.


[ June 12, 2006: Message edited by: Ben Souther ]

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do I make a war file?