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

Wrong error message reported on wsprovide plugin exceptions

XMLWordPrintable

    • Compatibility/Configuration

      Adding the first wsprovide maven example from http://community.jboss.org/wiki/JBossWS-wsprovide :

      <plugin>
      <groupId>org.jboss.ws.plugins</groupId>
      <artifactId>maven-jaxws-tools-plugin</artifactId>
      <version>1.0.0.GA</version>
      <configuration>
      <verbose>true</verbose>
      <endpointClass>org.jboss.test.ws.plugins.tools.wsprovide.TestEndpoint</endpointClass>
      <generateWsdl>true</generateWsdl>
      </configuration>
      <executions>
      <execution>
      <goals>
      <goal>wsprovide</goal>
      </goals>
      </execution>
      </executions>
      </plugin>

      yields

      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Error while running wsconsume

      Embedded error: Failed to load: org.jboss.ws.tools.jaxws.impl.JBossWSProviderFactoryImpl
      [INFO] ------------------------------------------------------------------------
      [DEBUG] Trace
      org.apache.maven.lifecycle.LifecycleExecutionException: Error while running wsconsume
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
      at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      Caused by: org.apache.maven.plugin.MojoExecutionException: Error while running wsconsume
      at org.jboss.ws.plugins.tools.AbstractWsProvideMojo.execute(AbstractWsProvideMojo.java:100)
      at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
      ... 17 more
      Caused by: java.lang.IllegalStateException: Failed to load: org.jboss.ws.tools.jaxws.impl.JBossWSProviderFactoryImpl
      at org.jboss.wsf.spi.util.ServiceLoader.loadDefault(ServiceLoader.java:236)
      at org.jboss.wsf.spi.util.ServiceLoader.loadFromSystemProperty(ServiceLoader.java:169)
      at org.jboss.wsf.spi.util.ServiceLoader.loadService(ServiceLoader.java:77)
      at org.jboss.wsf.spi.tools.WSContractProvider.newInstance(WSContractProvider.java:86)
      at org.jboss.wsf.spi.tools.WSContractProvider.newInstance(WSContractProvider.java:70)
      at org.jboss.ws.plugins.tools.AbstractWsProvideMojo.execute(AbstractWsProvideMojo.java:93)
      ... 19 more
      Caused by: java.lang.ClassNotFoundException: org.jboss.ws.tools.jaxws.impl.JBossWSProviderFactoryImpl
      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 java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      at org.jboss.wsf.spi.util.SecurityActions.loadClass(SecurityActions.java:123)
      at org.jboss.wsf.spi.util.ServiceLoader.loadDefault(ServiceLoader.java:231)
      ... 24 more

      Note the error is in wsconsume but the goal is wsprovide.

      About the JBossWSProviderFactoryImpl missing - I still haven't successfully run the plugin. I have been scouring doc and google and have tried everything I can think of. I even added all the files from wsprovide.sh classpath additions and the above is the result.

            rhn-support-asoldano Alessio Soldano
            starver_jira Steve Tarver (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: