메뉴 건너뛰기

조회 수 4265 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

[전자정부 표준프레임워크]에 배치관리가 있어서 생성을 해봤습니다.


테이블도 생성하고 완료를 한 후에 톰캣을 restart해보니 아래와 같은 에러가 발생했습니다.

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'egovBatchOpertController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'egovBatchOpertIdGnrService' is defined


왜 이런 에러가 발생하는 걸까요?

에러가 나는 'egovBatchOpertIdGnrService'로 검색을 해보니 context-scheduling-sym-bat.xml 파일에 아래와 같이 정의가 돼 있습니다.

    <!-- 배치관리 스케줄러 -->
    <bean id="batchScheduler" class="egovframework.com.sym.bat.service.BatchScheduler" init-method="init" destroy-method="destroy">
        <property name="egovBatchSchdulService" ref="egovBatchSchdulService"/>
        <property name="idgenService" ref="egovBatchResultIdGnrService" />
    </bean>


idgenService를 사용하겠다고 정의는 했는데요. context-idgn-***.xml 파일은 생성이 안돼 있네요.

전자정부 프레임워크 사이트에 가서 확인을 해보니 context-idgn-***.xml 파일을 하나 생성하고 내용을 추가하면 된다고 합니다.


그래서, resource/egovframework/spring/com/scheduling 폴더 아래에 context-idgn-schedule.xml이라는 파일을 생성했구요.

아래 소스를 넣어주니 잘 돌아갑니다.

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd">

<!--  배치작업 ID -->
<bean name="egovBatchOpertIdGnrService" class="egovframework.rte.fdl.idgnr.impl.EgovTableIdGnrService" destroy-method="destroy">
<property name="dataSource" ref="dataSource" />
<property name="strategy"   ref="batchOpertIdStrategy" />
<property name="blockSize"  value="1"/>
<property name="table"      value="COMTECOPSEQ"/>
<property name="tableName"  value="BATCH_OPERT_ID"/>
</bean>
<bean name="batchOpertIdStrategy" class="egovframework.rte.fdl.idgnr.impl.strategy.EgovIdGnrStrategyImpl">
<property name="prefix" value="BAT" />
<property name="cipers" value="17" />
<property name="fillChar" value="0" />
</bean> 
<!-- 배치작업 ID -->

<!-- 배치스케줄 ID -->
<bean name="egovBatchSchdulIdGnrService" class="egovframework.rte.fdl.idgnr.impl.EgovTableIdGnrService" destroy-method="destroy">
<property name="dataSource" ref="dataSource" />
<property name="strategy"   ref="batchSchdulIdStrategy" />
<property name="blockSize"  value="1"/>
<property name="table"      value="COMTECOPSEQ"/>
<property name="tableName"  value="BATCH_SCHDUL_ID"/>
</bean>
<bean name="batchSchdulIdStrategy" class="egovframework.rte.fdl.idgnr.impl.strategy.EgovIdGnrStrategyImpl">
<property name="prefix" value="BSC" />
<property name="cipers" value="17" />
<property name="fillChar" value="0" />
</bean>
<!-- 배치스케줄 ID -->

<!-- 배치결과 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 -->

</beans>


로그인하고 들어가면 배치관리 메뉴가 보입니다.


[전자정부 표준프레임워크]가 참 많은 컴포넌트를 만들어 놓아서 사용할 때 편리하긴 한데요.

하나 추가할 때마다 에러가 발생할 때가 많고, 디자인도 엉성해서 좀 아쉬울 때가 많네요.

개발자들을 위해서 조금만 더 신경 써주면 좋겠다는 생각을 해봅니다.


List of Articles
번호 제목 날짜 조회 수
31 전자정부프레임워크 v2.5, v2.6 오라클 세팅하기 file 2016.09.12 5109
30 Spring Boot 프로젝트 생성 file 2016.09.02 4160
29 전자정부표준프레임워크 - 설치 file 2016.09.02 6277
28 MySQL에 All-in-one 설치시 webmaster로 로그인 안되는 문제 해결을 위한 2가지 수정사항 file 2016.08.29 4951
27 war로 묶지 않아도 컴파일된 소스 위치 확인하기 file 2016.08.29 4116
26 간단한 개인홈페이지 만들어보기 file 2016.08.29 4748
25 전자정부 표준프레임워크 설치하기 file 2016.08.29 4250
24 Database Connections 생성하기 (Mysql) file 2016.08.29 3365
23 Database Connections 생성하기 (오라클) file 2016.08.29 4072
22 Select statements cannot be executed as an update. 에러 해결방법 file 2016.08.29 3828
21 회원가입 폼(form)으로 보는 Validator 구현하는 방법 file 2016.08.29 7108
20 스프링(Spring)의 Validator 기능을 사용하다가 '정의되지 않음 또는 null 참조인 'type' 속성을 가져올 수 없습니다.'라는 오류를 만났을 때 해결방법 file 2016.08.29 5157
» 배치관리 컴포넌트 생성 후 에러 날 때 해결방법 file 2016.08.29 4265
18 새로 만든 모듈의 iBatis 쿼리를 새로운 xml 파일에 만들고 싶다면 이렇게 하자. file 2016.08.29 3773
17 새로 만든 모듈의 iBatis 쿼리를 새로운 xml 파일에 만들고 싶다면 이렇게 하자. file 2016.08.29 3649
16 No bean name '***Service' is defined 오류나는 이유 및 해결방법 file 2016.08.29 4561
15 회원가입 양식에서 (필수/옵션)필드 추가/제거하기 file 2016.08.29 4471
14 회원가입 양식에서 (필수/옵션)필드 추가/제거하기 file 2016.08.29 5325
13 기존 프로젝트, Table, View 모두 다 삭제하기 file 2016.08.29 4600
12 로그인 컴포넌트 설치시 뷰 생성 에러 해결방법 (ORA-01031: 권한이 불충분합니다) file 2016.08.29 3872
Board Pagination Prev 1 2 3 4 5 6 7 8 Next
/ 8

하단 정보를 입력할 수 있습니다

© k2s0o1d4e0s2i1g5n. All Rights Reserved