You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Davis Gordon Dun (JIRA)" <ji...@apache.org> on 2013/07/12 19:01:53 UTC

[jira] [Created] (CXF-5123) Update to newer Spring 4 error

Davis Gordon Dun created CXF-5123:
-------------------------------------

             Summary: 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.5, 2.7.4
         Environment: Windows 7
            Reporter: Davis Gordon Dun


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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira