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

java.lang.IllegalStateException: Web app root system property already set to different value: 'Portal.root' = [C:\jakarta-tomcat-5.0.30\webapps\Portal\] instead of [C:\jakarta-tomcat-5.0.30\webapps\Poral\] - Choose unique values for the 'webAppRootKey' context-param in your web.xml files! java

 

        解决方法: web

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

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

</context-param> app

相关文章
相关标签/搜索