• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why .war file in webapps folder only

 
Asif Kadiwala
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • 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 ]
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • 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
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic