반응형

Spring 3.0에서 4.0으로 올리면서 아래의 문제가 발생했다. 나도 스프링 전체에 대한 버전 업그레이드는 처음하는 것이라 문제가 계속 발생한다. 

 

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.

 

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.

 

먼저 조취를 했던 방법은 아래와 같다.

 

1. 아래의 블로그를 검색했는데, web.xml에서 버전을 3.0으로 올리면 된다고 해서 했지만, 문제가 없어지지 않았다.

- https://jmlim.tistory.com/5#recentComments

 

좀 더 찾아보고 에러를 보니 1개 이상의 spring-web fragment가 있다고 해서 라이브러리를 봤더니 spring 3버전과 4버전 라이브러리가 동시에 있어 발생한 문제였다.


2. 스프링 버전 중복문제
-> 현재 스프링 3.0 으로 되어 있는데, 4로 올리려고 했더니 스프링 버전이 지금 3이랑 4랑 중복되어 있다.
-> 이거 찾아야 한다.

 

 

위와 같이, spring 버전이 3버전과 4버전이 있어서 구동을 할 때, 1개가 아닌 2개 이상이 있어 발생한 문제였다. [WEB-INF] - [lib]에서 3버전의 spring 관련 jar 파일들을 다 삭제를 했더니 문제가 해결됐다.

 

위와 같이 했는데도 문제가 없어지지 않는다면, 다른 방법을 찾아야 한다.

반응형

'IT > 이클립스(Eclipse)' 카테고리의 다른 글

[이클립스/Eclipse] 이클립스(Eclipse) 정보: 프로덕션 환경들에서 최적의 성능을 제공하는, APR 기반 Apache Tomcat Native 라이브러리가, 다음 java.library.path에서 발견되지 않습니다 문제 해결 방법  (0) 2022.12.14
[이클립스/Eclipse] 이클립스(Eclipse) Target runtime jdk1.7.0_75 is not defined. 문제 해결 방법  (2) 2022.11.25
[이클립스/Eclipse] 이클립스(Eclipse) Result Maps collection already contains value for Common.UserMap 문제 해결 방법  (0) 2022.11.23
[이클립스/Eclipse] 이클립스(Eclipse) Attribute "type" is required and must be specified for element type "resultMap". 문제 해결 방법  (0) 2022.11.23
[이클립스/Eclipse] 이클립스(Eclipse) Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:3.5.1:testCompile (execution: default-testCompile, phase: test-compile) 문제 해결 방법  (0) 2022.11.16
[이클립스/Eclipse] 이클립스(Eclipse) Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (execution: default-compile, phase: compile) 문제 해결 방법  (0) 2022.11.16
[이클립스/Eclipse] 이클립스(Eclipse) Project configuration is not up-to-date with pom.xml. Select: Maven->Update Project... from the project context menu or use Quick Fix. 문제 해결 방법  (0) 2022.11.08
[이클립스/Eclipse] 이클립스(Eclipse) Could not initialize class org.apache.maven.plugin.war.util.WebappStructureSerializer 문제 해결 방법  (0) 2022.11.08
  • 네이버 블러그 공유하기
  • 네이버 밴드에 공유하기
  • 페이스북 공유하기
  • 카카오스토리 공유하기