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>