my dog learned polymorphism*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes using .war file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "using .war file" Watch "using .war file" New topic
Author

using .war file

Sudd Ghosh
Ranch Hand

Joined: Oct 23, 2002
Posts: 187
I am trying to use a war file for my webapp called "/webapp/chapter16". Do I need to create the war file from inside the "/webapp/chapter16" dir or from a level higher "/webapp/" dir? Also after the war file is created, do I need to place it inside the "chapter16" dir or outside ? What else do I need to do to get this running ?
Thanks


SCJP 1.4, SCWCD, SCBCD 1.3
Sam Dalton
Author
Ranch Hand

Joined: Jul 26, 2001
Posts: 170
You should be able to drop your WAR file into the webapps directory.
Cheers
Sam


<a href="http://www.samjdalton.com" target="_blank" rel="nofollow">Sam Dalton</a>,<br />Co-author of [http://www.amazon.com/exec/obidos/tg/detail/-/1590592255/qid=1068633302//ref=sr_8_xs_ap_i0_xgl14/104-4904002-9274339?v=glance&s=books&n=507846]Professional JSP 2.0[/URL] (October 2003)<br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/1861007701/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional SCWCD Certification</a><br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/186100561X/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional Java Servlets 2.3</a>
Carl Trusiak
Sheriff

Joined: Jun 13, 2000
Posts: 3340
You create the war in the chapter16 directory and name it chapter16.war. You can do a quick test and see if it was created properly using jar-tf chapter16.war. The list will show all the files in a the same structure that exists under chapter16 (But, not include the directory chapter16). Then placing it under webapp on Tomcat will do the trick.


I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: using .war file