More than one fragment with the name [spring_web] was found.

阅读更多

项目跑的好好的。突然之间报错,不能tomcat启动。

报错如下:

Caused by: java.lang.IllegalArgumentException: More than one fragment with the name [spring_web] 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.
	at org.apache.tomcat.util.descriptor.web.WebXml.orderWebFragments(WebXml.java:2257)
	at org.apache.tomcat.util.descriptor.web.WebXml.orderWebFragments(WebXml.java:2215)
	at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1127)
	at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:768)
	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:301)
	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5048)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	... 27 more

 

  不知所云,无从下手。

  解决方案如下:

     add  tag to your web.xml just under the  tag. should work.

    在web.xml 文件的的元素后面增加  元素。如下:

 

XXXX
	

 

  问题解决。。。tomcat成功启动。

你可能感兴趣的:(tomcat,section,8.2.2,spring_web)