Hide Forgot
project_key: SOA Around 14 JBossWS-CXF unit tests use class org.springframework.asm.ClassVisitor from spring-asm-jar. There has been a change recently that split the spring jar into several modules. The new modules are in client directory of SOA-P. It seems that JBossWS-CXF unit tests do not have this spring-asm.jar on the classpath: java.lang.NoClassDefFoundError: org/springframework/asm/ClassVisitor at org.springframework.context.support.AbstractRefreshableApplicationContext.customizeBeanFactory(AbstractRefreshableApplicationContext.java:218) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397) at org.apache.cxf.bus.spring.BusApplicationContext.<init>(BusApplicationContext.java:91) at org.apache.cxf.bus.spring.SpringBusFactory.createApplicationContext(SpringBusFactory.java:102) at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:93) at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:86) at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:64) at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:53) at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:90) at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:79) at org.apache.cxf.tools.common.toolspec.AbstractToolContainer.getBus(AbstractToolContainer.java:189) at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:158) at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:128) at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:271) at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103) at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113) at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86) at org.jboss.wsf.stack.cxf.tools.CXFConsumerImpl.consume(CXFConsumerImpl.java:232) at org.jboss.wsf.spi.tools.cmd.WSConsume.importServices(WSConsume.java:230) at org.jboss.wsf.spi.tools.cmd.WSConsume.main(WSConsume.java:81) Caused by: java.lang.ClassNotFoundException: org.springframework.asm.ClassVisitor at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 22 more
Sources are from here: https://brewweb.devel.redhat.com/buildinfo?buildID=181265 Alessio clarified to me that he already provided a patch for this to Fernando. Obviously it is not present in the above mentioned source code. Could you please provide valid SVN repository and tag for the sources? We need this to certify SOA-P 5.2 and give green light to release.
Link: Added: This issue incorporates SOA-3160
Link: Added: This issue depends JBPAPP-7009
Link: Removed: This issue depends JBPAPP-7009
Link: Removed: This issue incorporates SOA-3160
I've spent hours on reproducing the test environment that's on hudson, to finally find out that the problem is simply https://issues.jboss.org/browse/SOA-3319 as mentioned on IRC to Martin. You need to apply that patch.
IOW the failures due to spring CNFE are caused by the lack of the new spring jars in wsprovide.sh/wsrunclient.sh/... scripts. The jbossws testsuite is fine.
Link: Added: This issue is related to SOA-3319
Release Notes Docs Status: Added: Not Required Writer: Added: dlesage
This is still not fully fixed in ER5, waiting for ER6...
Patch for wsconsume.* and unit tests (addition to the patch from SOA-3319). Incorporated in buildId 184593.
Attachment: Added: jbossws-cxf-SOA-3446.patch
Link: Added: This issue relates to SOA-3511
Link: Added: This issue relates to SOA-3501
Resolved. New issues in SOA-3511.
Verified with ER6