java - How to change the default value of context.xml in Tomcat? -
i trying use crosscontext
feature in tomcat need set <context crosscontext="true">
in context.xml
file located in mypath\apache-tomcat-7.0.41\conf
folder.
however find every time restart tomcat restore original value have modify again. want know if there way avoid not need modify context.xml
file every time restart tomcat?
thanks in advance!
<context crosscontext="true"> <watchedresource>web-inf/web.xml</watchedresource> <manager pathname="" /> </context>
above code using...
you need undeploy web application , re-deploy it. tomcat re-using context.xml
file provided on initial deployment, can find in catalina_base/conf/[engine]/[host]/[context].xml
. changes making own context.xml being ignored.
Comments
Post a Comment