• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

I just deployed my first WAR file.

 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author
Posts: 170
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sam,
Great link. I love PDF's. Thanks a bunch!
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic