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

Update to newer Spring 4 error

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.4, 2.7.5
    • Fix Version/s: 3.0
    • Component/s: Bus
    • Labels:
      None
    • Environment:

      Windows 7

    • Estimated Complexity:
      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

            • Assignee:
              Unassigned
              Reporter:
              davis.dun Davis Gordon Dun

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment