tomcat6 - Do i need a context.xml file to deploy spring webapp to tomcat -
tomcat6 - Do i need a context.xml file to deploy spring webapp to tomcat -
i new tomcat, apologize if dumb question. have created spring mvc webapp runs locally using maven-jetty-plugin.
i can create war file. deploy war file tomcat6 instance. however, not sure if need create context.xml file tomcat? , if do, place file in spring webapp? current directory construction looks this:
src | |-main | |-java |-resource | |-meta-inf |-webapp | |-web-inf |-web.xml
the context.xml
file used configure application specific instructions container (tomcat). instance, can define jndi resources, loggers, valves, etc. see context container more details.
by default, tomcat auto-generate default context.xml
war if not specify 1 , store within own configuration files in /conf/[enginename]/[hostname]/[context-root].xml
if want include part of war, can place in /meta-inf/context.xml within war.
spring tomcat6
Comments
Post a Comment