This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Where does the container look for web.xml?
I believe that the container looks for the web.xml when it starts up.
In my comp, there are lots of web.xml files.
Does the container read all the web.xml files?
Or does it read all the web.xml files inside all the WEB-INF folders present in the installed directory?
web.xml is most important part of any web application and is is only one per web application. So one application has only one web.xml file.
and that is why it is called deployment descriptor. when you are deploying your web application web.xml look inside WEB-INF folder and it is always be there.
so when you start your container the tomcat first look at web.xml inside WEB-INF/web.xml and according to what developer written inside web.xml container make initially configuration and set according to web application.