You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2015/12/15 22:12:46 UTC
[jira] [Resolved] (CXF-5123) Update to newer Spring 4 error
[ https://issues.apache.org/jira/browse/CXF-5123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp resolved CXF-5123.
------------------------------
Resolution: Fixed
Fix Version/s: 3.0.0
CXF 2.x still supports Spring 2.5.x and thus calls the older methods. Support for spring 4 (and thus dropping support for spring 2.x) started in CXF 3.
> Update to newer Spring 4 error
> ------------------------------
>
> Key: CXF-5123
> URL: https://issues.apache.org/jira/browse/CXF-5123
> Project: CXF
> Issue Type: Improvement
> Components: Bus
> Affects Versions: 2.7.4, 2.7.5
> Environment: Windows 7
> Reporter: Davis Gordon Dun
> Fix For: 3.0.0
>
>
> Error after change cxf to use the new Spring 4:
> Caused by: java.lang.NoSuchMethodError: org.springframework.beans.factory.support.BeanDefinitionBuilder.addConstructorArg(Ljava/lang/Object;)Lorg/springframework/beans/factory/support/BeanDefinitionBuilder;
> at org.apache.cxf.configuration.spring.AbstractBeanDefinitionParser.mapElementToJaxbBean(AbstractBeanDefinitionParser.java:418)
> The class org.apache.cxf.configuration.spring.AbstractBeanDefinitionParser
> at line 418 try to call jaxbbean.addConstructorArg(writer.toString());
> but in the new version of Spring this method signature was changed to public BeanDefinitionBuilder addConstructorArgValue(Object value)
> What can i do to resolve this?
> 1) Using aspectJ to intercept and delegate to a custom method which return a BeanDefinitionBuilder child with a addConstructorArg method?
> 2) Change the source code and recompile the cxf?
> 3) wait for the bug fix version?
> Thanks for all,
> Davis
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)