웹서비스 구현예제 질문입니다;;
- 작성자 :
- 장*영
- 작성일 :
- 2010-07-02 16:28:26
- 조회수 :
- 4,010
- 구분 :
- 실행환경
- 진행상태 :
- 완료
Q
받은 파일을 실행 했는데.. 컴터 한대는 잘 구현이 되는데..
이걸로 톰캣으로 테스트 할려고 다른 컴터 2대에도 같은 예제 압축파일을
옮겨서 import해서 실행을 하니 오류가 발생합니다
(컴터 한개는 잘 구현 됩니다...)
오류 내용은..
심각: 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 'org.apache.cxf.wsdl.WSDLManager' defined in class path resource [META-INF/cxf/cxf.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]: Constructor threw exception; nested exception is java.lang.ClassCastException: class org.apache.cxf.transport.jms.ClientBehaviorPolicyType
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]: Constructor threw exception; nested exception is java.lang.ClassCastException: class org.apache.cxf.transport.jms.ClientBehaviorPolicyType
Caused by: java.lang.ClassCastException: class org.apache.cxf.transport.jms.ClientBehaviorPolicyType
입니다.. ㅠㅠ
이걸로 톰캣으로 테스트 할려고 다른 컴터 2대에도 같은 예제 압축파일을
옮겨서 import해서 실행을 하니 오류가 발생합니다
(컴터 한개는 잘 구현 됩니다...)
오류 내용은..
심각: 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 'org.apache.cxf.wsdl.WSDLManager' defined in class path resource [META-INF/cxf/cxf.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]: Constructor threw exception; nested exception is java.lang.ClassCastException: class org.apache.cxf.transport.jms.ClientBehaviorPolicyType
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]: Constructor threw exception; nested exception is java.lang.ClassCastException: class org.apache.cxf.transport.jms.ClientBehaviorPolicyType
Caused by: java.lang.ClassCastException: class org.apache.cxf.transport.jms.ClientBehaviorPolicyType
입니다.. ㅠㅠ
A
안녕하세요.. 장지영님..
해당 오류 유형은.. classloader 문제인 것 같습니다.
cxf 관련 classes(jar안 또는 일반 classes)들이 중복되어 로드된 것 같습니다.
우선 .. ../WEB-INF/lib/에 cxf 관련 jar가 들어있는지 확인(없어야 함)해 보시고..
maven clean(Run As 메뉴)을 실행하시고.. tomcat쪽 서버도 삭제 후 재등록 해보시기 바랍니다.
그럼.. 즐거운 하루되십시오.
감사합니다.
해당 오류 유형은.. classloader 문제인 것 같습니다.
cxf 관련 classes(jar안 또는 일반 classes)들이 중복되어 로드된 것 같습니다.
우선 .. ../WEB-INF/lib/에 cxf 관련 jar가 들어있는지 확인(없어야 함)해 보시고..
maven clean(Run As 메뉴)을 실행하시고.. tomcat쪽 서버도 삭제 후 재등록 해보시기 바랍니다.
그럼.. 즐거운 하루되십시오.
감사합니다.