java.lang.IllegalStateException: Web app root system property already set to different value: 'webap

报错为:

java.lang.IllegalStateException: Web app root system property already set to different value: 'webapp.root' = [G:\apache-tomcat-8.0.53-wupu\webapps\ewp_gisTools_data3\] instead of [G:\apache-tomcat-8.0.53-wupu\webapps\pollution_permission_system\] - Choose unique values for the 'webAppRootKey' context-param in your web.xml files!
 

tomcat内两个项目同时启动就报错,单个正常.

据查询因为Log4j中${webapp.root}变量冲突导致

解决办法为在web.xml中添加配置:

  
    webAppRootKey  
    项目名.root  

 

你可能感兴趣的:(项目错误,Java)