简体   繁体   English

失败-在Tomcat 7中出现错误:如果在server.xml中定义了上下文,则无法上传War文件“ WhitePagesAddressLookup.war”

[英]FAIL -Getting error in tomcat7: War file “WhitePagesAddressLookup.war” cannot be uploaded if context is defined in server.xml

I have tried to get rid of the 404 tomcat error. 我试图摆脱404 tomcat错误。 After quite a bit of research I realise that my tocat7 manager is not deploying my war file. 经过大量研究后,我意识到我的tocat7管理员没有部署我的war文件。 I am getting this error: FAIL - War file "WhitePagesAddressLookup.war" cannot be uploaded if context is defined in server.xml Can anyone tell me why this is so? 我收到此错误:失败-如果在server.xml中定义了上下文,则无法上传War文件“ WhitePagesAddressLookup.war”。有人可以告诉我为什么吗? I have put my .war file inside of my eclipse folder and outside on my desktop both but placement does not affect the "fail" error. 我已经将.war文件放在eclipse文件夹内,而又放在桌面上,但是放置不会影响“失败”错误。

By reading the error you get, I guess it's because the context WhitePagesAddressLookup is defined in the <TOMCAT_HOME>/conf/server.xml , which is not compatible with dynamic deploying. 通过读取错误信息,我猜是因为上下文WhitePagesAddressLookup是在<TOMCAT_HOME>/conf/server.xml定义的,它与动态部署不兼容。 Better stop Tomcat, remove the correspondant Context node from the server.xml , restart Tomcat, and try to re-deploy it. 最好停止Tomcat,从server.xml删除对应的Context节点,重新启动Tomcat,然后尝试重新部署它。

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

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