合并TOMCAT报错

来源:互联网 发布:索尼相机软件下载 编辑:程序博客网 时间:2024/06/12 18:55
合并tomcat服务后,启动报错


严重: Exception sending context initialized event to listener instance of class org.springframework.web.util.Log4jConfigListener
java.lang.IllegalStateException: Web app root system property already set to different value: 'webapp.root' = [/export/wwwroot/YuSheng/] instead of [/export/wwwroot/Yute/] - Choose unique values for the 'webAppRootKey' context-param in your web.xml files!


2011-8-31 14:48:00 org.apache.catalina.core.StandardContext start
严重: Error listenerStart




原因:WEB.XML中没有为工程指定webAppRootKey,造成冲突,可以在每个工程的WEB.XML中加上


<context-param>
<param-name>webAppRootKey</param-name>
<param-value>XXX</param-value>
</context-param>
原创粉丝点击