Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-2284

Using WSConsume on JBOSS 4.2.3.GA and JDK 1.6.0_07 leads to java.lang.NoClassDefFoundError: com/sun/tools/ws/wscompile/WsimportTool

XMLWordPrintable

      I have all the required files in jboss-4.2.3.GA\lib\endorsed. The classpath also ensures that jboss libraries are before jdk1.6 lib file. However on access of wsconsume the error produced is;

      JBossWS-Native stack deployed
      Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/ws/wscompile/WsimportTool

      at org.jboss.ws.tools.jaxws.impl.SunRIConsumerFactoryImpl.createConsumer(SunRIConsumerFact
      oryImpl.java:36)
      at org.jboss.wsf.spi.tools.WSContractConsumer.newInstance(WSContractConsumer.java:73)
      at org.jboss.wsf.spi.tools.WSContractConsumer.newInstance(WSContractConsumer.java:56)
      at org.jboss.wsf.spi.tools.cmd.WSConsume.importServices(WSConsume.java:195)
      at org.jboss.wsf.spi.tools.cmd.WSConsume.main(WSConsume.java:81)
      Caused by: java.lang.ClassNotFoundException: com.sun.tools.ws.wscompile.WsimportTool
      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 java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      ... 5 more

      Is this a bug or something wrong that I am doing?

              Unassigned Unassigned
              hemantsatam Hemant Satam (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: