More Than One Fragment with the Name [Spring_Web] Was Found. This Is Not Legal with Relative Ordering

More than one fragment with the name [spring_web] was found. This is not legal with relative ordering

Sounds like you have two different versions of Spring, check your dependencies to see if you have a dependency to another Spring-version.

mvn dependency:tree -Dverbose -Dincludes=groupId:artifactId

Spring Boot : java.lang.IllegalArgumentException: More than one fragment with the name [spring_web] was found

Finally i found some solution, it looks like there was some spring dependency conflicts was there.So what i was done is simple recreated the project with another name, then it started to work and the error also gone.
Another possible solution is to clean your server in the right way(I haven't tried that, but i think it will work).

Use below command in your intelliJ terminal.

  1. Gradle clean and build command inside project folder :

    gradlew clean build

2.To refresh dependencies :

gradlew --refresh-dependencies

Also check your tomcat/webapps/Project/WEB-INF/lib/
folder for dependency conflict during library upgrade.

More than one fragment with the name [spring_web] was found. This is not legal with relative ordering

Sounds like you have two different versions of Spring, check your dependencies to see if you have a dependency to another Spring-version.

mvn dependency:tree -Dverbose -Dincludes=groupId:artifactId


Related Topics



Leave a reply



Submit