Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-5123

Update to newer Spring 4 error

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7.4, 2.7.5
    • 3.0
    • Bus
    • None
    • Windows 7

    • Unknown

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            davis.dun Davis Gordon Dun
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: