Bug 781019 (SOA-3501)

Summary: wsconsume.sh fails to generate client code when CXF runtime is configured
Product: [JBoss] JBoss Enterprise SOA Platform 5 Reporter: Len DiMaggio <ldimaggi>
Component: EAPAssignee: Julian Coleman <jcoleman>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: urgent Docs Contact:
Priority: urgent    
Version: 5.2.0.ER5CC: akostadinov
Target Milestone: ---   
Target Release: 5.2.0 GA, 5.2.0.ER6   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-3501
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Version: 4.1.1.CR1 Build id: v20111014-2105-H1067-CR1 Build date: 20111014-2105 SOA-P 5.2.0.ER5
Last Closed: 2011-11-02 13:52:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
DynamicSample.zip none

Description Len DiMaggio 2011-10-18 18:29:38 UTC
project_key: SOA

I was able to create a web service with JBDS 4.1.1.CR1 and SOA-P 5.2.0.ER5 - creating the client fails in the JBDS 4.1.1 UI with no error. The wizard appears to be running - but it returns with no client created and no error written to the .log or screen.

Creating the client with wsconsume fails with this exception:

sh ./wsconsume.sh /home/ldimaggi/workspace_JBDS_411_CR1_Oct18/DynamicSample/wsdl/HelloWorldService.wsdl
Oct 18, 2011 1:26:21 PM org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
INFO: Replaced default databinding jaxb
Oct 18, 2011 1:26:22 PM org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
INFO: Replaced default frontend jaxws
Loading FrontEnd jaxws ...
Loading DataBinding jaxb ...
wsdl2java -compile -verbose -classdir /jboss/local/52_ER5/jboss-soa-p-5/jboss-as/bin/output file:/home/ldimaggi/workspace_JBDS_411_CR1_Oct18/DynamicSample/wsdl/HelloWorldService.wsdl
wsdl2java - Apache CXF 2.2.12-patch-02

log4j:WARN No appenders could be found for logger (org.apache.cxf.bus.spring.BusApplicationContext).
log4j:WARN Please initialize the log4j system properly.
Failed to invoke WSDLToJava
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:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
... 22 more

Comment 1 Len DiMaggio 2011-10-18 18:30:26 UTC
Link: Added: This issue is related to JBIDE-9831


Comment 2 Len DiMaggio 2011-10-18 18:30:27 UTC
Link: Added: This issue is related to JBDS-1891


Comment 3 Len DiMaggio 2011-10-18 18:30:46 UTC
Attachment: Added: DynamicSample.zip


Comment 4 Len DiMaggio 2011-10-18 18:34:35 UTC
Link: Added: This issue depends JBPAPP-7409


Comment 5 Len DiMaggio 2011-10-24 15:17:40 UTC
Link: Added: This issue is related to SOA-3446


Comment 6 Len DiMaggio 2011-10-24 15:19:02 UTC
Link: Added: This issue depends JBDS-1891


Comment 7 Len DiMaggio 2011-10-24 15:20:04 UTC
Link: Removed: This issue is related to JBDS-1891 


Comment 8 Julian Coleman 2011-10-25 13:40:30 UTC
This is resolved with the fixes for SOA-3446 and DOA-3511.

Comment 9 Julian Coleman 2011-10-25 13:40:30 UTC
Release Notes Docs Status: Added: Not Required


Comment 10 David Le Sage 2011-10-27 04:59:39 UTC
Writer: Added: dlesage


Comment 11 Len DiMaggio 2011-11-02 13:52:33 UTC
Verified in ER6

Comment 12 Aleksandar Kostadinov 2011-11-02 15:03:56 UTC
My test jobs now complete fine on linux and windows.