실행환경 가이드에서 서버 구동 문의
- 작성자 :
- 이*진
- 작성일 :
- 2010-06-18 16:20:47
- 조회수 :
- 3,848
- 구분 :
- 실행환경
- 진행상태 :
- 완료
Q
실행환경 가이드 프로그램을 구동하려는데
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Duplicate <http> element detected
오류가 나서 egovframework.guideprogram.civilappeal.service 의 context-security.xml에서 <http></http> 부분 주석처리
java.lang.NoClassDefFoundError:javax/xml/stream/util/XMLEventConsumer 오류가 발생하여 egovframework.guideprogram.civilappeal.web의 pom.xml 에
<dependency>
<groupId>javax.xml.stream</groupId>
<artifactId>stax-api</artifactId>
<version>1.0-2</version>
</dependency> 를 추가했습니다.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_filterChainProxy': Initialization of bean failed; nested exception is org.springframework.security.config.SecurityConfigurationException: Filters 'org.springframework.security.intercept.web.FilterSecurityInterceptor@c278b5'and 'org.springframework.security.intercept.web.FilterSecurityInterceptor@c278b5' have the same 'order' value. When using custom filters, please make sure the positions do not conflict with default filters. Alternatively you can disable the default filters by removing the corresponding child elements from <http> and avoiding the use of <http auto-config='true'>. 와 같은 오류가 발생해서 서버 구동이 안됩니다.
이럴땐 어떻게 처리를 하면 되는지 도움 부탁드립니다.
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Duplicate <http> element detected
오류가 나서 egovframework.guideprogram.civilappeal.service 의 context-security.xml에서 <http></http> 부분 주석처리
java.lang.NoClassDefFoundError:javax/xml/stream/util/XMLEventConsumer 오류가 발생하여 egovframework.guideprogram.civilappeal.web의 pom.xml 에
<dependency>
<groupId>javax.xml.stream</groupId>
<artifactId>stax-api</artifactId>
<version>1.0-2</version>
</dependency> 를 추가했습니다.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_filterChainProxy': Initialization of bean failed; nested exception is org.springframework.security.config.SecurityConfigurationException: Filters 'org.springframework.security.intercept.web.FilterSecurityInterceptor@c278b5'and 'org.springframework.security.intercept.web.FilterSecurityInterceptor@c278b5' have the same 'order' value. When using custom filters, please make sure the positions do not conflict with default filters. Alternatively you can disable the default filters by removing the corresponding child elements from <http> and avoiding the use of <http auto-config='true'>. 와 같은 오류가 발생해서 서버 구동이 안됩니다.
이럴땐 어떻게 처리를 하면 되는지 도움 부탁드립니다.
첨부파일
A
안녕하세요.. 이경진님
Spring Security와 관련된 context-security.xml이 이중으로 loading되어서 발생한 오류입니다.
하나는 web 프로젝트에 파일로 존재하고 다른 하나는 web 프로젝트의 dependency로 추가되어 있는 egovframework.guideprogram.civilappeal.services쪽 library에 포함되어 있는 것입니다.
이 경우는 web 프로젝트의 pom.xml 에서 artifactId가 egovframework.guideprogram.civilappeal.services인 dependency를 제외(삭제 또는 주석처리)시키시면 됩니다.
버전은 1.0.0-SNAPSHOT로 되어 있습니다.
그럼.. 즐거운 하루 되십시오.
감사합니다.
Spring Security와 관련된 context-security.xml이 이중으로 loading되어서 발생한 오류입니다.
하나는 web 프로젝트에 파일로 존재하고 다른 하나는 web 프로젝트의 dependency로 추가되어 있는 egovframework.guideprogram.civilappeal.services쪽 library에 포함되어 있는 것입니다.
이 경우는 web 프로젝트의 pom.xml 에서 artifactId가 egovframework.guideprogram.civilappeal.services인 dependency를 제외(삭제 또는 주석처리)시키시면 됩니다.
버전은 1.0.0-SNAPSHOT로 되어 있습니다.
그럼.. 즐거운 하루 되십시오.
감사합니다.