1 Reply Latest reply on May 17, 2013 3:22 AM by jimmy001

    wsconsume - check path environment variable

    jimmy001 Apprentice

      Hello,

       

      I am trying to use "wsconsume" which comes with JBoss 7.1. I receive the following output:

       

      Loading FrontEnd jaxws ...
      Loading DataBinding jaxb ...
      wsdl2java -compile -exsh false -d D:\Java\dev\xxx\jboss-as-7.1.1.Final\bin
      \output -verbose -classdir D:\Java\dev\xxx_xxx\jboss-as-7.1.1.Final\bin\output
      -allowElementReferences http://localhost:8080/xxx1.2-SNAPSHOT/UserServi
      ce/UserService?wsdl
      wsdl2java - Apache CXF 2.4.6

      [ERROR] IOException during exec() of compiler "javac". Check your path environme
      nt variable.
      Failed to invoke WSDLToJava
      org.apache.cxf.tools.common.ToolException: Failed to compile generated code
              at org.apache.cxf.tools.common.ClassUtils.compile(ClassUtils.java:115)
              at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJav
      aContainer.java:265)
              at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaCon
      tainer.java:138)
              at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaCon
      tainer.java:286)
              at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.ja
      va:103)
              at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113)
              at org.jboss.wsf.stack.cxf.tools.CXFConsumerImpl.consume(CXFConsumerImpl
      .java:250)
              at org.jboss.ws.tools.cmd.WSConsume.importServices(WSConsume.java:279)
              at org.jboss.ws.tools.cmd.WSConsume.mainInternal(WSConsume.java:104)
              at org.jboss.ws.tools.cmd.WSConsume.main(WSConsume.java:92)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.lang.reflect.Method.invoke(Unknown Source)
              at org.jboss.modules.Module.run(Module.java:260)
              at org.jboss.modules.Main.main(Main.java:291)


       

      When using "wsconsume" from JBoss 5.1 it runs fine.

      I am using:

       

      java version "1.7.0_11"

      Java(TM) SE Runtime Environment (build 1.7.0_11-b21)

      Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)

       

       

      I have the impression it wants "wsdl2java" in the "path" variable, but I can't find it in the JBOSS_HOME\bin folder nor in JAVA_HOME\bin...

      What is necessary to make wsconsume to run?

       

      Thx in advance guys

       

      Jimmy