tomcat 버전 7.0.4를 통해 배포 할 때 예외가 발생합니다. Java 1.7 사용하고 있습니다. 그것은 비록 제대로 jdk 1.6 함께 일하고있는 것 같습니다.Tomcat에 war 파일을 배포 할 때 java.lang.reflect.MalformedParameterizedTypeException이 발생했습니다.
2013-09-26 13:03:58,154 ERROR [org.springframework.web.context.ContextLoader] -
Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]: Initializati
on of bean failed; nested exception is java.lang.reflect.MalformedParameterizedT
ypeException
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
an(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.
getBeansOfType(DefaultListableBeanFactory.java:308)
at org.springframework.context.support.AbstractApplicationContext.getBea
nsOfType(AbstractApplicationContext.java:947)
at org.springframework.context.support.AbstractApplicationContext.regist
erListeners(AbstractApplicationContext.java:701)
at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:377)
끈적 거리며 스프링 잼과 버전 충돌이 있음을 알았습니다.
다음 봄용 용기를 사용하고 있습니다.
spring-2.5.5 - tried with 2.5.6 also
spring-aop-2.5.6
spring-beans-2.5.6
spring-context-2.5.6
spring-core-2.5.6
spring-jdbc-3.1.1.RELEASE - tried with 2.5.6 also
spring-orm-3.1.1.RELEASE - tried with 2.5.6 also
spring-transaction-3.1.1.RELEASE - tried with 2.5.6 also
spring-tx-3.1.1.RELEASE - tried with 2.5.6 also
Following are the cxf jars used.
cxf-api-2.6.0
cxf-bundle-jaxrs-2.6.0
cxf-rt-bindings-soap-2.6.0
cxf-rt-bindings-xml-2.6.0
cxf-rt-core-2.6.0
cxf-rt-databinding-jaxb-2.6.0
cxf-rt-frontend-jaxws-2.6.0
cxf-rt-frontend-simple-2.6.0
cxf-rt-transports-http-2.6.0
cxf-rt-ws-addr-2.6.0
cxf-rt-ws-policy-2.6.0
도 3.1.1 스프링 AOP-2.5.6 스프링 콩-2.5.6, 스프링 컨텍스트 2.5.6 , 스프링 코어 2.5.6 교체하여 시험해 보았다. Didnt 도움.
메타 데이터 삭제 및 새 프로젝트 체크, 빌드 정리 등을 시도해 봤지만 아무것도 작동하지 않는 것 같습니다. 누군가가 나에게이 길을 보여줄 수 있었 을까? 이틀 동안 붙어있어.
구성 파일 (cxf.xml)의 내용을 입력 할 수 있습니까? –
스타터는 스프링 버전 믹싱을 중단합니다 ... 2.5.6 또는 3.1.1을 사용하지만 jar 파일은 섞어서 사용하지 마십시오 ... 또한 spring.jar에는 이미 spring - *. jars 파일이 모두 포함되어 있습니다 (더 이상 존재하지 않습니다) 봄 3 이후). –