简体   繁体   English

如果没有部署应用程序 <context> 在tomcat的server.xml之外定义

[英]app is not deploying if <context> defined outside of server.xml in tomcat

<context> works just fine if I define it within <host> in server.xml but if I create a file called manager.xml in conf/Catalina/localhost , the application is not getting deployed. <context>可以在server.xml的<host>中定义,则可以正常工作,但是如果我在conf/Catalina/localhost创建一个名为manager.xml的文件,则该应用程序不会得到部署。 Am I missing anything ? 我有什么想念的吗?

Here is the manager.xml 这是manager.xml

<Context path="/manager" docBase="/var/tomcat/webapps/manager" privileged="true">
  </Context>

Found the issue. 找到了问题。 It was due to deployonStartup is set to false. 这是由于deployonStartup设置为false。 I have changed this to true and I'm able to use context.xml outside of war file now. 我已将其更改为true,现在可以在war文件之外使用context.xml。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM