CXF 2.6.x uses Spring 3.0.7.RELEASE:
http://svn.apache.org/viewvc/cxf/branches/2.6.x-fixes/parent/pom.xml?revision=1445290&view=markup#l145
If you could upgrade the Spring you are using that would probably fix
your problem.
Your subject line is saying you're using CXF 2.6.1 but your statement
below is saying 2.6.6--which is it? The problem you're reporting came
up before but was fixed in CXF 2.6.2:
http://cxf.547215.n5.nabble.com/CXF-2-6-1-supported-Spring-versions-td5712317.html
( https://issues.apache.org/jira/browse/CXF-4470); so maybe upgrading to
CXF 2.6.6 (if you're at 2.6.1) will also fix the problem for you. That
said, Spring 2.5.6 is over 4 years old and it would probably be best to
run CXF with the version of Spring that it has been tested on.
Glen
On 02/17/2013 08:41 AM, stagirus wrote:
Did anybody test the CXF client (both simple and jaxws)? I am using CXF 2.6.6
and Spring 2.5.6. CXF Server is working fine but not CXF client. I get the
following error. The same Spring configuration worked fine with CXF 2.1.
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'myclient': Initialization of bean failed; nested exception is
java.lang.reflect.MalformedParameterizedTypeException:
java.lang.reflect.MalformedParameterizedTypeException
at
sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.validateConstructorArguments(Unknown
Source)
at
sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.<init>(Unknown
Source)
at
sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.make(Unknown
Source)
at
sun.reflect.generics.factory.CoreReflectionFactory.makeParameterizedType(Unknown
Source)
at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Unknown
Source)
at sun.reflect.generics.tree.ClassTypeSignature.accept(Unknown Source)
at
sun.reflect.generics.repository.ClassRepository.getSuperInterfaces(Unknown
Source)
at java.lang.Class.getGenericInterfaces(Unknown Source)
at
org.springframework.core.GenericTypeResolver.getTypeVariableMap(GenericTypeResolver.java:151)
at
org.springframework.core.GenericTypeResolver.resolveReturnType(GenericTypeResolver.java:99)
at
org.springframework.beans.GenericTypeAwarePropertyDescriptor.getPropertyType(GenericTypeAwarePropertyDescriptor.java:88)
at
org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)
at
org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:386)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1289)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1250)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(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.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
--
View this message in context:
http://cxf.547215.n5.nabble.com/CXF-2-6-1-supported-Spring-versions-tp5712317p5723284.html
Sent from the cxf-user mailing list archive at Nabble.com.