Details
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