3 Replies Latest reply on Jan 24, 2011 2:24 PM by Mauricio Hernandez

    problem with wsconsume

    Gaurish Manerkar Newbie

      C:\Documents and Settings\A\Desktop\java project\jboss-4.2.1.GA\bin>wsconsume -
      k -o C:\clistubs http://127.0.0.1:8080/NewHAws/Ws?wsdl
      JBossWS-Metro stack deployed
      Exception in thread "main" java.lang.IllegalStateException: Failed to load: org.
      jboss.ws.tools.jaxws.impl.SunRIConsumerFactoryImpl
      at org.jboss.wsf.spi.util.ServiceLoader.loadDefault(ServiceLoader.java:2
      05)
      at org.jboss.wsf.spi.util.ServiceLoader.loadFromSystemProperty(ServiceLo
      ader.java:138)
      at org.jboss.wsf.spi.util.ServiceLoader.loadService(ServiceLoader.java:6
      8)
      at org.jboss.wsf.spi.tools.WSContractConsumer.newInstance(WSContractCons
      umer.java:72)
      at org.jboss.wsf.spi.tools.WSContractConsumer.newInstance(WSContractCons
      umer.java:56)
      at org.jboss.wsf.spi.tools.cmd.WSConsume.importServices(WSConsume.java:1
      95)
      at org.jboss.wsf.spi.tools.cmd.WSConsume.main(WSConsume.java:81)
      Caused by: java.lang.ClassNotFoundException: org.jboss.ws.tools.jaxws.impl.SunRI
      ConsumerFactoryImpl
      at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      at org.jboss.wsf.spi.util.ServiceLoader.loadDefault(ServiceLoader.java:2
      00)
      ... 6 more

      C:\Documents and Settings\A\Desktop\java project\jboss-4.2.1.GA\bin>


      i am workign with jboss4.2.1GA and jbossws-3.0.1-native-2.0.4.GA...

      but i m getting this problem while running wsconsume......can anyone please help me out..????
      its really very urgent.....would appreciate ur help.

        • 1. Re: problem with wsconsume
          Richard Opalka Master

          Hi,

          your problem will be that you have installed jboss into directory which contains spaces in its name. It usually causes a lot of problems. Please install jboss into directory that has no spaces in its name.

          • 2. Re: problem with wsconsume
            Diego Lopez Leon Newbie

            I'm having the same problem with jboss-4.2.2.GA + jbossws-cxf-3.0.2.GA and my path doesn't contain any space.

            diego@localhost:~/bin/jboss-4.2.2.GA/client$ ../bin/wsconsume.sh -k -p ar.com.selenca.ws.client -o /home/diego/dev/java/examples-workspace/jbossws-client-example/src/main/java/ http://127.0.0.1:8080/jbossws-server-example-1.0-SNAPSHOT/ProfileMgmtBean?wsdl
            /home/diego/bin/jboss-4.2.2.GA/client
            Exception in thread "main" java.lang.IllegalStateException: Failed to load: org.jboss.ws.tools.jaxws.impl.SunRIConsumerFactoryImpl
            ...
            Caused by: java.lang.ClassNotFoundException: org.jboss.ws.tools.jaxws.impl.SunRIConsumerFactoryImpl
            ...
            

            looking at wsconsume.sh it loads into the classpath some libraries that doesn't exist in the 'client' folder from the AS. It looks for
            jaxws-tools.jar
            jaxws-rt.jar
            streambuffer.jar
            stax-ex.jar

            and I've had to rename jbossws-metro-client.jar to jbossws-metro-client.jar in that script.
            Should those libraries be in the jbossws-cxf distribution?

            • 3. problem with wsconsume
              Mauricio Hernandez Newbie

              Yo lo solucioné corrigiendo seteando correctamente la variable que indica donde está el jboss, a saber, set JBOSS_HOME=C:\servers\jboss-eap-5.0\jboss-as

              Luego de esto se invoca al wsConsume