• Post Reply Bookmark Topic Watch Topic
  • New Topic

I just deployed my first WAR file.

 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Matthew Webster
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sam Dalton
Author
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sam,
Great link. I love PDF's. Thanks a bunch!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!