공통컨포넌트 올인원 생성후 비즈니스 로직 추가 오류 문의
- 작성자 :
- J*
- 작성일 :
- 2025-03-19 16:18:00
- 조회수 :
- 94
- 구분 :
- 공통컴포넌트 / 4.1
- 진행상태 :
- 완료
Q
답변주신대로 jdk 1.8 바꾸고, egovframework 외 별도 패키지 생성하여, 클래스 파일 추가했는데,
첨부된 파일과 같이 오류가 계속 납니다.
서버도 추가 삭제 해보고,
메이븐도 update, clean install 등 다해봤지만 동일하네요.
추가로
src/main/java/resources/egovframework/spring/com/context-ldap.xml <?xml version="1.0" encoding="UTF-8"?> 이부분에서 오류가 아래와 같이 나네요.
Referenced file contains errors (https://www.springframework.org/schema/data/repository/spring-repository.xsd). For more information, right click on the message in the Problems View and select "Show Details..."
어떻게 해야될지 가이드 바랍니다.
첨부된 파일과 같이 오류가 계속 납니다.
서버도 추가 삭제 해보고,
메이븐도 update, clean install 등 다해봤지만 동일하네요.
추가로
src/main/java/resources/egovframework/spring/com/context-ldap.xml <?xml version="1.0" encoding="UTF-8"?> 이부분에서 오류가 아래와 같이 나네요.
Referenced file contains errors (https://www.springframework.org/schema/data/repository/spring-repository.xsd). For more information, right click on the message in the Problems View and select "Show Details..."
어떻게 해야될지 가이드 바랍니다.
환경정보
-
- OS 정보 : window
- 표준프레임워크 버전 : 4.1
- JDK(JRE) 정보 : 1.8
- WAS 정보 : tomcat9
- DB 정보 : oracle
- 기타 환경 정보 :
A
안녕하세요.
표준프레임워크 센터입니다.
첨부해주신 로그를 확인했을 때
BeanCreationException: Error creating bean with name 'egovMessageSource' defined in file context-common.xml
이와 같이 context-common.xml의 메시지소스 관련 Bean 생성에서 이슈가 있는 것으로 확인되었으며
설정 xml 파일 확인 결과
classpath:/egovframework/egovProps/globals의 메시지 파일을 읽는 메시지소스 Bean이
context-common.xml의 reloadableResourceBundleMessageSource와 ResourceBundleMessageSource로
중복으로 구성되어 있어 스프링에서 메시지소스 Bean을 정상적으로 생성하지 못한 것으로 보입니다.
메시지소스 Bean은 중복 생성되지 않아야 하므로
해당 구성을 검토하여 하나는 제거해 보시기 바랍니다.
감사합니다.
표준프레임워크 센터입니다.
첨부해주신 로그를 확인했을 때
BeanCreationException: Error creating bean with name 'egovMessageSource' defined in file context-common.xml
이와 같이 context-common.xml의 메시지소스 관련 Bean 생성에서 이슈가 있는 것으로 확인되었으며
설정 xml 파일 확인 결과
classpath:/egovframework/egovProps/globals의 메시지 파일을 읽는 메시지소스 Bean이
context-common.xml의 reloadableResourceBundleMessageSource와 ResourceBundleMessageSource로
중복으로 구성되어 있어 스프링에서 메시지소스 Bean을 정상적으로 생성하지 못한 것으로 보입니다.
메시지소스 Bean은 중복 생성되지 않아야 하므로
해당 구성을 검토하여 하나는 제거해 보시기 바랍니다.
감사합니다.