Under Caused by: Java. Lang. IllegalArgumentException: find multiple fragments called spring_web. This is illegal relative sorting.

The IDE tool used is MyEclipse, Eclipse

Error:

Under Caused by: Java. Lang. IllegalArgumentException: find multiple fragments called spring_web. This is illegal relative sorting. For more information, see section 1 of the Servlet specification8.22.Section 2 c. Consider using absolute sort. at org.apache.tomcat.util.descriptor.web.WebXml.orderWebFragments(WebXml.java:2260)
		at org.apache.tomcat.util.descriptor.web.WebXml.orderWebFragments(WebXml.java:2218)
		at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1292)
		at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:984)
		at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:302)
		at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
		at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5044)
		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
Copy the code

The solution

The first step:

  • Remove all’s path from referenced library’s build path

The second step

  • Delete all dependencies in web-INF /lib and add them again.