• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

why .war file in webapps folder only

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anyone tell me that why we are putting our web applicaton in web-apps folder only?? How server recognizes the presence of application in webapps folder?
[ June 20, 2008: Message edited by: Asif Kadiwala ]
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Asif Kadiwala:
Can anyone tell me that why we are putting our web applicaton in web-apps folder only?? How server recognizes the presence of application in webapps folder?

[ June 20, 2008: Message edited by: Asif Kadiwala ]



That depends on the container's implementation. With tomcat, it looks at the webapps folder by default. Other containers might look elsewhere
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The webapps directory is the the default place to put web apps but it's far from the only place you can put them. Tomcat allows you to configure multiple hosts. Each host has an appBase attribute which can point to any directory you choose.
Furthermore, you don't even need to place your app in its host's appBase directory. You can configure the docbase to point to any directory on your system that Tomcat can see.

For more details, see:
http://tomcat.apache.org/tomcat-6.0-doc/config/index.html
reply
    Bookmark Topic Watch Topic
  • New Topic