• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How do I make a war file?

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
WARNING! Do not activate jet boots indoors or you will see a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic