1 Reply Latest reply on Jun 21, 2012 10:16 AM by Peter Johnson

    jboss web services

    anand pushparaj Newbie

      Hi All,

       

      I am migrating an (EJB & Web services) application from weblogic 8.1 to JBoss 5.1.

       

      The application uses a third party web service. So i make use of WSConsume for this purpose.

       

      During deployment i get the below stack

       

      I could not find a jar which has the SUNRIConsumerImpl.java importing com.sun.tools.xjc.api.ErrorListener. Could anyone help me on this.

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

      Error: Could not import. (use --verbose to see full traces)

      java.lang.NoClassDefFoundError: com/sun/tools/xjc/api/ErrorListener

       

      at org.jboss.ws.tools.jaxws.impl.SunRIConsumerImpl.consume(SunRIConsumerImpl.java:229

      at org.jboss.wsf.spi.tools.cmd.WSConsume.importServices(

      WSConsume.java:222)

      at org.jboss.wsf.spi.tools.cmd.WSConsume.main(

       

      WSConsume.java:80)

      Caused by:

       

      java.lang.ClassNotFoundException: com.sun.tools.xjc.api.ErrorListener

       

      at java.net.URLClassLoader$1.run(

      URLClassLoader.java:202)

       

      at java.security.AccessController.doPrivileged(

      Native Method)

      at java.net.URLClassLoader.findClass(

      URLClassLoader.java:190)

       

       

      at java.lang.ClassLoader.loadClass(

      ClassLoader.java:307)

      at sun.misc.Launcher$AppClassLoader.loadClass(

       

      Launcher.java:301

      at java.lang.ClassLoader.loadClass(

       

      ClassLoader.java:248)

      ... 3 more

       

       

      BUILD FAILED

      C:\Documents and Settings\pushpa\Desktop\june 6th\Server\build.xml:181: Could not invoke WSConsumeTask

       

       

       

        • 1. Re: jboss web services
          Peter Johnson Master

          The missing class is in the jaxb-xjc.jar file which is in botn the client and lib directories in AS 5.1.0. Not sure how your buiold.xml is set up, but I suspect it needs a jboss_home property to be set and you don't have it set correctly. Or it could be the "spaces in the path" issue:

           

          I strongly suggest that you don't do any work in a directory that has spaces in the path, some Java components have a har time dealing with spaces in paths. Move your stuff out of Documents and Settings. I do all of my work in a directory named c:\opt\jboss