您的位置:首页 > 移动开发 > WebAPP

解决多重web应用中webapp. root重用的问题

2014-02-12 00:00 513 查看
java.lang.IllegalStateException: Web app root system property already set to different value: 'webapp.root' = [D:\Program Files\apache-tomcat-7.0.16\wtpwebapps\nss_upgrade\] instead of [D:\Program Files\apache-tomcat-7.0.16\wtpwebapps\nss\] - Choose unique values for the 'webAppRootKey' context-param in your web.xml files!


解决方法:

检查发布的多个Web应用的web.xml文件,其中是否定义了相同的webAppRootKey, 如:
### app1:
<context-param>
<param-name>webAppRootKey</param-name>
<param-value>app1.root</param-value> <!-- 第一个应用的根 -->
</context-param>

### app2:
<context-param>
<param-name>webAppRootKey</param-name>
<param-value>app1.root</param-value> <!-- 第二个应用的根 -->

</context-param>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: