Tomcat 실행시 오류
- 작성자 :
- 이*훈
- 작성일 :
- 2011-01-28 14:32:22
- 조회수 :
- 2,956
- 구분 :
- 개발환경
- 진행상태 :
- 완료
Q
서버를 실행 시키면
2011-01-28 14:07:06,274 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'NotiManageService': Injection of resource fields failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'egovNotiManageIdGnrService' is defined
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessAfterInstantiation(CommonAnnotationBeanPostProcessor.java:292)
2011-01-28 14:07:06,274 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'NotiManageService': Injection of resource fields failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'egovNotiManageIdGnrService' is defined
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessAfterInstantiation(CommonAnnotationBeanPostProcessor.java:292)
A
안녕하세요.. 이정훈님..
ID 생성을 위한 ID Generation 서비스에 대한 설정이 없어서 발생된 오류 같습니다.
(egovNotiManageIdGnrService 라는 이름으로 유추된 내용입니다.
실제 저희쪽에는 egovNotiManageIdGnrService를 사용하진 않습니다.)
resource쪽 (/src/main/resources) egovframework/spring/context-idgen.xml 안에..
다음과 같은 형식으로 ID Generation 서비스를 정의하시면 될 것 같습니다.
<!-- 배치결과 ID -->
<bean name="egovBatchResultIdGnrService"
class="egovframework.rte.fdl.idgnr.impl.EgovTableIdGnrService"
destroy-method="destroy">
<property name="dataSource" ref="dataSource" />
<property name="strategy" ref="batchResultIdStrategy" />
<property name="blockSize" value="1"/>
<property name="table" value="COMTECOPSEQ"/>
<property name="tableName" value="BATCH_RESULT_ID"/>
</bean>
<bean name="batchResultIdStrategy"
class="egovframework.rte.fdl.idgnr.impl.strategy.EgovIdGnrStrategyImpl">
<property name="prefix" value="BRT" />
<property name="cipers" value="17" />
<property name="fillChar" value="0" />
</bean>
<!-- 배치결과 ID -->
자세한 내용은 다음 가이드를 참조하시구요..
http://www.egovframe.org/wiki/doku.php?id=egovframework:rte:fdl:id_generation
그럼.. 즐거운 하루되십시오.
감사합니다.
ID 생성을 위한 ID Generation 서비스에 대한 설정이 없어서 발생된 오류 같습니다.
(egovNotiManageIdGnrService 라는 이름으로 유추된 내용입니다.
실제 저희쪽에는 egovNotiManageIdGnrService를 사용하진 않습니다.)
resource쪽 (/src/main/resources) egovframework/spring/context-idgen.xml 안에..
다음과 같은 형식으로 ID Generation 서비스를 정의하시면 될 것 같습니다.
<!-- 배치결과 ID -->
<bean name="egovBatchResultIdGnrService"
class="egovframework.rte.fdl.idgnr.impl.EgovTableIdGnrService"
destroy-method="destroy">
<property name="dataSource" ref="dataSource" />
<property name="strategy" ref="batchResultIdStrategy" />
<property name="blockSize" value="1"/>
<property name="table" value="COMTECOPSEQ"/>
<property name="tableName" value="BATCH_RESULT_ID"/>
</bean>
<bean name="batchResultIdStrategy"
class="egovframework.rte.fdl.idgnr.impl.strategy.EgovIdGnrStrategyImpl">
<property name="prefix" value="BRT" />
<property name="cipers" value="17" />
<property name="fillChar" value="0" />
</bean>
<!-- 배치결과 ID -->
자세한 내용은 다음 가이드를 참조하시구요..
http://www.egovframe.org/wiki/doku.php?id=egovframework:rte:fdl:id_generation
그럼.. 즐거운 하루되십시오.
감사합니다.