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.
Whenever tomcat started, it creats a context file called TEST.xml under the dir of TOMCAT_home/conf/Catalina/localhost, Can anyone tell me why?
I am curious about this, because not for all applications it creates this .xml file, only for one of my specific applications. I tried jsp_examples with the installation of tomcat, it does not create one .xml under this dir either.
My jsp and servlet application is under TOMCAT_home/webapps/TEST.
Presumably, you have a context.xml within the META-INF directory of your webapp. Tomcat will copy this file to the TOMCAT_home/conf/Catalina/localhost and rename it to the name of your context when you deploy the app via a war.