3 Replies Latest reply on Jun 19, 2006 6:43 AM by Simone Taliercio

    Missing quotes on wstools.sh

    Ivan Neto Newbie

      I think there are two missing quotes at the end of these lines in wstools.sh:

      WSTOOLS_CLASSPATH="$WSTOOLS_CLASSPATH:$JBOSS_HOME/client/jbossall-client.jar"
      WSTOOLS_CLASSPATH="$WSTOOLS_CLASSPATH:$JBOSS_HOME/client/jbossretro-rt.jar
      WSTOOLS_CLASSPATH="$WSTOOLS_CLASSPATH:$JBOSS_HOME/client/jboss-backport-concurrent.jar
      WSTOOLS_CLASSPATH="$WSTOOLS_CLASSPATH:$JBOSS_HOME/client/jbossws14-client.jar"

      When we're not using the ejb3 profile of the installer (using for example the .zip distribution), this causes:

      ./wstools.sh -config wstools-config.xml
      Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/lang/ClassRedirects
      at org.jboss.ws.tools.WSDLToJava.getLocationForJavaGeneration(WSDLToJava.java:490)
      at org.jboss.ws.tools.WSDLToJava.generateJavaSourceForException(WSDLToJava.java:504)
      at org.jboss.ws.tools.WSDLToJava.appendMethods(WSDLToJava.java:307)
      at org.jboss.ws.tools.WSDLToJava.createSEIFile(WSDLToJava.java:333)
      at org.jboss.ws.tools.WSDLToJava.createSEI(WSDLToJava.java:355)
      at org.jboss.ws.tools.WSDLToJava.generateSEI(WSDLToJava.java:174)
      at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(ToolsHelper.java:326)
      at org.jboss.ws.tools.WSTools.process(WSTools.java:132)
      at org.jboss.ws.tools.WSTools.generate(WSTools.java:119)
      at org.jboss.ws.tools.WSTools.main(WSTools.java:61)

      This affects version 4.0.4. I looked at this version of wstools.sh:

      http://fisheye.jboss.com/viewrep/~raw,r=214/JBossWS/trunk/src/main/etc/wstools.sh

      I thought this doesn't worth a jira issue.

      Regards,
      Ivan Neto

        • 2. Re: Missing quotes on wstools.sh
          Kevin Stunger Newbie

          Thanks for finding that!!!! I was getting very frustrated with wstools.sh

          • 3. Re: Missing quotes on wstools.sh
            Simone Taliercio Newbie

            Is it possible there is also error in wscompile.bat ?

            I'm finding problems with classpath :_(

            I want use wstools.bat to generate artifacts client from a wsdl.
            When I start with

            wstools -config wstools-config.xml


            I obtain following exception:
            log4j:WARN No appenders could be found for logger (org.jboss.ws.tools.WSTools).
            log4j:WARN Please initialize the log4j system properly.
            Exception in thread "main" java.lang.NoClassDefFoundError: javax/activation/DataHandler
             at org.jboss.ws.jaxrpc.LiteralTypeMapping.<init>(LiteralTypeMapping.java:64)
             at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(ToolsHelper.java:290)
             at org.jboss.ws.tools.WSTools.process(WSTools.java:138)
             at org.jboss.ws.tools.WSTools.generate(WSTools.java:120)
             at org.jboss.ws.tools.WSTools.main(WSTools.java:61)


            It doesn't work also if I try -classpath option. :(

            Heeeeeeeelp!