| Author |
I just deployed my first WAR file.
|
Gregg Bolinger
Sheriff
Joined: Jul 11, 2001
Posts: 15040
|
|
Holy crap!! I just copied it to the webapps folder in Tomcat and it worked. Talk about cool. I didn't event have to touch any XML files. Can someone give me some information on how it was able to do this? I am not clear on how a WAR file works nor how Tomcat dealt with it when I copied it into the webapps folder. [ January 17, 2003: Message edited by: Gregg Bolinger ]
|
My Blog | DZone Articles
|
 |
Matthew Webster
Ranch Hand
Joined: May 10, 2001
Posts: 51
|
|
When a WAR file is copied into the WebApps directory Tomcat unzips it (war's, jar's, ear's etc are just zip files in disguise) into the webapps directory. There is one exception, something to do with the server.xml file which you just would not expect Tomcat to not realise there is anything to deploy, but I can't remember what it is right now.
|
Matthew Webster - eudoxus@freeuk.com<br /><a href="http://www.matthewwebster.homeunix.net/" target="_blank" rel="nofollow">http://www.matthewwebster.homeunix.net/</a>
|
 |
Sam Dalton
Author
Ranch Hand
Joined: Jul 26, 2001
Posts: 170
|
|
Check out http://www.samjdalton.com/javaone/bof-1757.pdf for information about web applications, their structure, and how they can be deployed 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>
|
 |
Gregg Bolinger
Sheriff
Joined: Jul 11, 2001
Posts: 15040
|
|
Sam, Great link. I love PDF's. Thanks a bunch!
|
 |
 |
|
|
subject: I just deployed my first WAR file.
|
|
|