Tomcat context.xml files, is there any hiearchy?

I am trying to use symbolic links in one of the applications that I run on Tomcat5. Thanks to some help qaru.site/questions/230359 / ... I was able to do this by creating a file in context.xml

/ ... MyApplication / META-INF / context.xml

Now I am trying to implement this on a production server. However, there are other applications on it. And there is another context file

/ ... cat /CONF/context.xml

It seems to me that they install configurations across the server for all applications. If I allow links in conf / context.xml, my symbolic links work. If I do not allow links in conf / context.xml, my application symlinks do not work, although I have allowed them in the META-INF / context.xml file

My question is: does conf / context.xml manage all applications? If I want symbolic links to work in only one application, do I need to remove conf / context.xml and create new context files for each application? Or is there a way that I can only allow symlinks in my application?

+5
source share
2 answers

See my answer to “ which Tomcat 5 context file file takes precedence .

allowLinks, conf/context.xml . conf/context.xml, allowLinks="false" conf/context.xml.

myapplication, <Context allowLinks="true" ...> META-INF/context.xml , conf/context.xml.

<Context allowLinks="true" override="true" ...> META-INF/context.xml, <Context> META-INF/context.xml , conf/context.xml.

, myapplication/WEB-INF/context.xml conf/Catalina/localhost/myapplication.xml. , WEB-INF , webapp - webapp.: -)

+7

.

meta-inf/context.xml conf/Catalina/localhost/myapplication.xml

conf/Catalina/localhost/myapplication.xml , , .

. , , meta-inf.

Prod, UAT .. .

, , , , conf/context.xml. , , , .

0

All Articles