Uploaded image for project: 'JBoss Enterprise SOA Platform'
  1. JBoss Enterprise SOA Platform
  2. SOA-3501

wsconsume.sh fails to generate client code when CXF runtime is configured

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 5.2.0.ER5
    • Fix Version/s: 5.2.0.ER6, 5.2.0 GA
    • Component/s: EAP
    • Labels:
      None
    • Release Notes Docs Status:
      Not Required

      Description

      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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jcoleman Julian Coleman
                  Reporter:
                  ldimaggio Len DiMaggio
                  Writer:
                  David Le Sage
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: