File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do I make a war file?

 
John Neubean
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic