Property 서비스 - 외부 설정 파일 사용 에러
- 작성자 :
- 정*주
- 작성일 :
- 2009-11-11 14:47:29
- 조회수 :
- 5,291
- 구분 :
- 실행환경
- 진행상태 :
- 완료
Q
Property 서비스 중 외부 설정 파일 사용을 하고자 합니다.
가이드대로 했다고 생각하는데 서버 기동 시 에러가 발생하네요.
로그는 아래와 같습니다.
설정파일은 첨부하겠습니다.
답변 부탁드립니다. 감사합니다.
-- 아래 --
2009-11-11 14:08:12,609 DEBUG [egovframework.rte.fdl.property.EgovPropertyService] [Properties Service] Property file is a [refresh-resource.properties]. Encoding Type of the file is UTF-8.
2009-11-11 14:08:12,625 ERROR [egovframework.rte.fdl.property.EgovPropertyService] [Properties Service] There are something wrong definitions in a service configuration file or property files.
2009. 11. 11 오후 2:08:12 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 'propertiesService' defined in file [C:\egovframe\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\swa.egovframe-template7\WEB-INF\classes\egovframework\spring\context-properties.xml]: Invocation of init method failed; nested exception is egovframework.rte.fdl.cmmn.exception.FdlException: [Properties Service] Fail to initialize a Properties Service.
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
...
Caused by: egovframework.rte.fdl.cmmn.exception.FdlException: [Properties Service] Fail to initialize a Properties Service.
at egovframework.rte.fdl.property.impl.EgovPropertyServiceImpl.afterPropertiesSet(EgovPropertyServiceImpl.java:365)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
... 30 more
Caused by: java.lang.NullPointerException
at egovframework.rte.fdl.property.impl.EgovPropertyServiceImpl.afterPropertiesSet(EgovPropertyServiceImpl.java:332)
가이드대로 했다고 생각하는데 서버 기동 시 에러가 발생하네요.
로그는 아래와 같습니다.
설정파일은 첨부하겠습니다.
답변 부탁드립니다. 감사합니다.
-- 아래 --
2009-11-11 14:08:12,609 DEBUG [egovframework.rte.fdl.property.EgovPropertyService] [Properties Service] Property file is a [refresh-resource.properties]. Encoding Type of the file is UTF-8.
2009-11-11 14:08:12,625 ERROR [egovframework.rte.fdl.property.EgovPropertyService] [Properties Service] There are something wrong definitions in a service configuration file or property files.
2009. 11. 11 오후 2:08:12 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 'propertiesService' defined in file [C:\egovframe\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\swa.egovframe-template7\WEB-INF\classes\egovframework\spring\context-properties.xml]: Invocation of init method failed; nested exception is egovframework.rte.fdl.cmmn.exception.FdlException: [Properties Service] Fail to initialize a Properties Service.
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
...
Caused by: egovframework.rte.fdl.cmmn.exception.FdlException: [Properties Service] Fail to initialize a Properties Service.
at egovframework.rte.fdl.property.impl.EgovPropertyServiceImpl.afterPropertiesSet(EgovPropertyServiceImpl.java:365)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
... 30 more
Caused by: java.lang.NullPointerException
at egovframework.rte.fdl.property.impl.EgovPropertyServiceImpl.afterPropertiesSet(EgovPropertyServiceImpl.java:332)
A
안녕하세요.. 정연주님..
해당 문제는 내부적으로 "properties" 속성으로 지정된 부분을 처리하는 과정에서 발생한 문제로 파악되었습니다.
첨부하신 xml에서 주석으로 되어 있으신 부분을 활성화(주석해제)하시면.. 문제가 발생하지 않을 것 같습니다.
(사용하지 않더라고 임의로 지정)
이 부분의 문제는 내부 검토를 통해 처리하도록 하겠습니다.
그럼.. 남은 하루도 즐거운 하루 되십시오.
감사합니다.
해당 문제는 내부적으로 "properties" 속성으로 지정된 부분을 처리하는 과정에서 발생한 문제로 파악되었습니다.
첨부하신 xml에서 주석으로 되어 있으신 부분을 활성화(주석해제)하시면.. 문제가 발생하지 않을 것 같습니다.
(사용하지 않더라고 임의로 지정)
이 부분의 문제는 내부 검토를 통해 처리하도록 하겠습니다.
그럼.. 남은 하루도 즐거운 하루 되십시오.
감사합니다.