CXF 2.x will likely not work with Spring 4. 3.0 is the first version that will have been tested with Spring 4.
For 2.x, we *KNOW* the JMS transport will not work at all with Spring 4. To support some of the configurations and brokers that are out there, the JMS transport does rely on some classes in Spring that have been removed in Spring 4. Thus, JMS will definitely not work. For 3.0, we’re dropping support for those configurations. Other parts of CXF *MAY* work, but it’s certainly untested. I know parts of CXF were using some methods in Spring that were marked deprecated to allow CXF to work with older versions of Spring. If spring removed some of them, then those parts may not work with spring 4. Again, CXF 3 is the first version we’re really looking at trying to support Spring 4. For your case, if you add an asm version 3 or 4 jar, it may start working. But again, I’m not really sure. Dan On Jan 17, 2014, at 9:54 AM, Bruce Bateman <[email protected]> wrote: > Is there any reason why CXF shouldn't work with Spring 4? I am tring to > upgrade some of the 3rd party jars in our project but I am getting the > following exception with the combination of CXF 2.7.8 and Spring 4.0.0: > > java.lang.RuntimeException: No ASM ClassWriterFound > at > org.apache.cxf.common.util.ASMHelper.createClassWriter(ASMHelper.java:269) > at > org.apache.cxf.jaxws.WrapperClassGenerator.createWrapperClass(WrapperClassGenerator.java:151) > at > org.apache.cxf.jaxws.WrapperClassGenerator.generate(WrapperClassGenerator.java:122) > at > org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.generatedWrapperBeanClass(JaxWsServiceFactoryBean.java:683) > at > org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.getExtraClass(JaxWsServiceFactoryBean.java:653) > at > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:484) > at > org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:704) > at > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:550) > at > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:265) > at > org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:215) > at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:450) > at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:327) > at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:322) > at javax.xml.ws.Service.getPort(Service.java:188) > at > dinmar.oacis.common.workflow.ws.ProcessServiceProxyFactory.getWSProcessServiceProxy(ProcessServiceProxyFactory.java:55) > at > dinmar.oacis.common.workflow.ws.ProcessServiceProxyFactory.getWSProcessServiceProxy(ProcessServiceProxyFactory.java:30) > at dinmar.oacis.applet.core.oaJApp.initCcow(oaJApp.java:813) > at dinmar.oacis.applet.core.oaJApp.init(oaJApp.java:201) > at > dinmar.oacis.applet.core.oaJApplet$Initializer.doInBackground(oaJApplet.java:1139) > at > dinmar.oacis.applet.core.oaJApplet$Initializer.doInBackground(oaJApplet.java:1) > at javax.swing.SwingWorker$1.call(SwingWorker.java:296) > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) > at java.util.concurrent.FutureTask.run(FutureTask.java:166) > at javax.swing.SwingWorker.run(SwingWorker.java:335) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:722) > > I have checked the ASMHelper source. It's looking for one of 4 four possible > ClassWriters, one being org.springframework.asm.ClassWriter. This Spring > class is in my classpath. > > > > -- > View this message in context: > http://cxf.547215.n5.nabble.com/CXF-2-7-8-with-Spring-4-tp5738696.html > Sent from the cxf-user mailing list archive at Nabble.com. -- Daniel Kulp [email protected] - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com
