目录

caused-by-java.lang.IllegalArgumentException-More-than-one-fragment-with-the-name-spring_web-was

目录

caused by: java.lang.IllegalArgumentException: More than one fragment with the name [spring_web] was

今天在搭建springweb应用环境的时候启动tomcat报错More than one fragment with the name [spring_web] was found. This is not legal …

部分错误:

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:1134)

at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:775)

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)

… 26 more

解决办法就是:

在web.xml加一个标签:< absolute-ordering />

https://i-blog.csdnimg.cn/blog_migrate/e86cdb8c9c84251179dd2e4cdd62d2f6.png#pic_center

参考:http://www.bubuko.com/infodetail-3090661.html