admin管理员组文章数量:1289901
I'm working with tomcat 10, in our setup, autoDeploy should be disabled. I want to deploy a war file called ws-backend.war, which comes pre-packaged with context.xml. My setup works well with autodeploy enabled, but after autoDeploy is disabled, tomcat does not expand my war file (ws-backend.war). Here is what I have tried:
- I have also tried defininng a ws-backend.xml in $CATALINA_BASE/conf/Catalina/localhost, with following content, but it does not do anything.
<?xml version="1.0" encoding="UTF-8"?>
<Context docBase="ws-backend.war"/>
- The only other way, I could manage to atleast deploy my application was to add a line in server.xml. But, in this setup, tomcat unpacks the application,but totally ignores my context.xml
<Context docBase="ws-backend.war"/>
Here is what I need:
- I want application specific configuration in context.xml packaged with the war file( I'm trying to follow the recommendation that we should not define context in server.xml)
- autoDeploy should be disabled
- Tomcat should unpack my war file and use the context.xml packaged with the war
本文标签: javaDefining application context outside serverxml in tomcatStack Overflow
版权声明:本文标题:java - Defining application context outside server.xml in tomcat - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741480830a2381160.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论