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

Posted poterliu

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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>

 

原文地址:

https://www.cnblogs.com/poterliu/p/9258900.html

 

重启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

 

以上是关于Choose unique values for the 'webAppRootKey' context-param in your web.xml files! 错误的解决(代码片段的主要内容,如果未能解决你的问题,请参考以下文章