• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to create a war file

 
Glenny Dsilva
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. What are the commands to create a war file in tomcat.

2. How to deploy the war file in tomcat 5.0
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1.)
Tomcat doesn't create the war file, the jar utility does.

If you were on a Unix box and you wanted to war up an app named myApp and put it in your home directory:


Likewise, if you were on a windows box and wanted to create the war file in your C: drives root directory:



2.)
The easiest way to deploy a war file in Tomcat is to put it in the TOMCAT_HOME/webapps directory.
[ May 09, 2005: Message edited by: Ben Souther ]
 
Glenny Dsilva
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx a lot

But How do I then extract the war file.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you put it in the webapps directory, Tomcat will extract it for you.
You can try this with any of the demo war files from my site if you like
http://simple.souther.us

You can also extract them with the jar utility:


WinZip can also open/extact them.
They're just jar files.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic