Configuration files allowable under each web application in tomcat?
Mark O' Sullivan
Joined: Aug 17, 2009
Can someone let me know the allowable configuration files under each web application in tomcat, for example, context.xml, web.xml, etc that are currently installed under the conf directory of the server? In order words, which of these can be specific to each web application? Thanks, much appreciated.
There are 2 deployment descriptors (as they are formally called) for J2EE webapps. One is WEB-INF/web.xml. The other depends on the server being used, but for Tomcat, it's the Context, which is normally either included in the WAR as META-INF/context.xml or in the TOMCAT_HOME/conf/Catalina/xxxx directory ("xxxx" is usually, but not always "localhost").
The web.xml descriptor defines properties of the webapp itself. The Context defines properties of the webapp as it relates to the J2EE container that it is deployed in. Context is actually optional - Tomcat will synthesize a Context if you just dump a WAR into the TOMCAT_HOME/webapps directory, but it will have only default values.
Customer surveys are for companies who didn't pay proper attention to begin with.