org.springframework.beans.factory.BeanCreationException 오류 질문 좀 드립니다.
- 작성자 :
- 이*욱
- 작성일 :
- 2012-08-24 20:50:55
- 조회수 :
- 2,355
- 구분 :
- 공통컴포넌트
- 진행상태 :
- 완료
Q
안녕하세요.
전자 정부 컴포넌트에 대하여 질문좀 드립니다.
먼저 전자정부웹프로젝트 생성후에
컴포넌트로 공통과 로그인만 추가해서
더미사용자로 기본 페이지 나오는거 확인했습니다.
그리고 테스트 게시판을 만들어 볼려고
기본 웹 프로젝트 생성하면 일반적인샘플페이지에서 나오는 게시판 코드를 추가하면
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sampleService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sampleDAO': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'sqlMapClient' is defined
.
.
.
.
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sampleDAO': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'sqlMapClient' is defined
.
.
.
.
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'sqlMapClient' is defined
.
.
.
.
.
Root cause follows.
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'sqlMapClient' is defined
.
.
.
.
.
2012. 8. 24 오후 8:17:41 org.apache.catalina.core.StandardContext listenerStart
심각: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sampleService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sampleDAO': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'sqlMapClient' is defined
.
.
.
.
.
.
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sampleDAO': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'sqlMapClient' is defined
.
.
.
.
.
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'sqlMapClient' is defined
.
.
.
이런 오류가 납니다.
수없이 검색 해봐도 알수가 없어 질문드립니다.
조언 부탁드립니다.
로그와 폴더구조와 사용한 소스 첨부합니다.
전자 정부 컴포넌트에 대하여 질문좀 드립니다.
먼저 전자정부웹프로젝트 생성후에
컴포넌트로 공통과 로그인만 추가해서
더미사용자로 기본 페이지 나오는거 확인했습니다.
그리고 테스트 게시판을 만들어 볼려고
기본 웹 프로젝트 생성하면 일반적인샘플페이지에서 나오는 게시판 코드를 추가하면
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sampleService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sampleDAO': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'sqlMapClient' is defined
.
.
.
.
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sampleDAO': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'sqlMapClient' is defined
.
.
.
.
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'sqlMapClient' is defined
.
.
.
.
.
Root cause follows.
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'sqlMapClient' is defined
.
.
.
.
.
2012. 8. 24 오후 8:17:41 org.apache.catalina.core.StandardContext listenerStart
심각: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sampleService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sampleDAO': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'sqlMapClient' is defined
.
.
.
.
.
.
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sampleDAO': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'sqlMapClient' is defined
.
.
.
.
.
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'sqlMapClient' is defined
.
.
.
이런 오류가 납니다.
수없이 검색 해봐도 알수가 없어 질문드립니다.
조언 부탁드립니다.
로그와 폴더구조와 사용한 소스 첨부합니다.
첨부파일
A
안녀하세요.. 이선욱님..
설정 중에.. sqlMapClient의로 정의된 bean이 없어서 발생된 오류입니다.
(클래스 : org.springframework.orm.ibatis.SqlMapClientFactoryBean)
sample로 생성되는 프로젝트의 경우나 공통컴포넌트의 경우는 context-sqlMap.xml 파일에 정의되어 있습니다.
해당 bean 정의가 있는지.. 전체 프로젝트에서 검색을 해보시면 되실 것 같습니다.
참고로 공통컴포넌트쪽은 bean id가 egov.sqlMapClient로 정의되어 있고..
EgovComAbstractDAO.java에 의해 이 bean id가 지정(injection)되어 있습니다.
그럼.. 즐거운 하루되십시오.
감사합니다.
설정 중에.. sqlMapClient의로 정의된 bean이 없어서 발생된 오류입니다.
(클래스 : org.springframework.orm.ibatis.SqlMapClientFactoryBean)
sample로 생성되는 프로젝트의 경우나 공통컴포넌트의 경우는 context-sqlMap.xml 파일에 정의되어 있습니다.
해당 bean 정의가 있는지.. 전체 프로젝트에서 검색을 해보시면 되실 것 같습니다.
참고로 공통컴포넌트쪽은 bean id가 egov.sqlMapClient로 정의되어 있고..
EgovComAbstractDAO.java에 의해 이 bean id가 지정(injection)되어 있습니다.
그럼.. 즐거운 하루되십시오.
감사합니다.