Choose unique values for the 'webAppRootKey' context-param in your web.xml files! 错误的解决

大意是Log4jConfigListener在获取webapp.root值时,被后一context的值替换掉了,所以要在各个项目的web.xml中配置不同的webAppRootKey值,随即在其中一个web.xml中添加:

<context-param>
<param-name>webAppRootKey</param-name>
<param-value>web.sample.root</param-value>
</context-param>

  

重启tomcat,问题解决。

参考:

https://blog.csdn.net/paulluo0739/article/details/7402420

https://www.cnblogs.com/ShaolinRong/archive/2013/02/27/2935080.html

https://blog.csdn.net/hjm4702192/article/details/8659054

猜你喜欢

转载自www.cnblogs.com/poterliu/p/9258900.html
今日推荐