报错:
Caused by: java.lang.IllegalArgumentException: More than one fragment with the name [log4j] was found. This is not legal with relative ordering. See section 8.2.2 2c of the Servlet specification for details. Consider using absolute ordering.
org.apache.tomcat.util.modeler.BaseModelMBean.invoke Exception invoking method manageApp
org.apache.tomcat.util.modeler.BaseModelMBean.invoke Exception invoking method createStandardContext
javax.management.RuntimeOperationsException: Exception invoking method manageApp
Caused by: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/yl]]
之前是使用的8.0版本启动没什么问题,然后以后部署维护的都要是8.5以上。经过一轮在网上的搜查,原因都是网上的servlet mapping 没有加 / 的问题。但是经过修改,还是启动不了。
然后总结了一下,几个不能启动问题:
1.servlet 与webapp 版本不对应问题
2.log4j 冲突问题
3.servletmapping 没加 “/”
4.web.xml中存在这加载顺序问题,以为必须要按照规范的顺序进行执行。
然后经过网上找文章:
原文地址
原来是顺序的问题。
感谢这位大神。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)