'sampleService' 에러
- 작성자 :
- 박*수
- 작성일 :
- 2010-06-28 22:48:51
- 조회수 :
- 4,362
- 구분 :
- 실행환경
- 진행상태 :
- 완료
Q
잘 되다가 아래 에러가 계속 발생하네요..
어떤건지 모르겠습니다. 확인 바랍니다.
Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sampleService': Injection of resource fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sampleDAO': Injection of resource methods failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in file [C:\egovframeworkSample\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\sbcbg\WEB-INF\classes\egovframework\spring\context-sqlMap.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [egovframework/sqlmap/rte/sql-map-config.xml]; nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: java.io.IOException: Could not find resource egovframework/sqlmap/rte/sample/Test_SQl.xml
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessAfterInstantiation(CommonAnnotationBeanPostProcessor.java:292)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:959)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
at
어떤건지 모르겠습니다. 확인 바랍니다.
Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sampleService': Injection of resource fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sampleDAO': Injection of resource methods failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in file [C:\egovframeworkSample\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\sbcbg\WEB-INF\classes\egovframework\spring\context-sqlMap.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [egovframework/sqlmap/rte/sql-map-config.xml]; nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: java.io.IOException: Could not find resource egovframework/sqlmap/rte/sample/Test_SQl.xml
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessAfterInstantiation(CommonAnnotationBeanPostProcessor.java:292)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:959)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
at
A
안녕하세요.. 박왕수님..
해당 오류는 sampleService를 만들면서 발생되었다고 나오지만.. 아래 부분에 실제 원인에 대한 정보가 있습니다. (여러 단계를 거쳐 최종 문제는 sampleService를 만들지 못함)
실제 원인은.. egovframework/sqlmap/rte/sample/Test_SQl.xml 파일이 없어서 발생한 오류입니다.
해당 query는 egovframework/sqlmap/rte/sql-map-config.xml에 기술되어 있기 때문이고.. 해당 query를 사용하지 않는 경우 sql-map-config.xml에서 해당 라인을 제거하시거나..
Test_SQl.xml을 만들어 넣으시면 될 것 같습니다.
그럼.. 즐거운 하루되십시오.
감사합니다.
해당 오류는 sampleService를 만들면서 발생되었다고 나오지만.. 아래 부분에 실제 원인에 대한 정보가 있습니다. (여러 단계를 거쳐 최종 문제는 sampleService를 만들지 못함)
실제 원인은.. egovframework/sqlmap/rte/sample/Test_SQl.xml 파일이 없어서 발생한 오류입니다.
해당 query는 egovframework/sqlmap/rte/sql-map-config.xml에 기술되어 있기 때문이고.. 해당 query를 사용하지 않는 경우 sql-map-config.xml에서 해당 라인을 제거하시거나..
Test_SQl.xml을 만들어 넣으시면 될 것 같습니다.
그럼.. 즐거운 하루되십시오.
감사합니다.