1 Reply Latest reply on Jun 17, 2010 4:10 PM by Jean-Francois Morin

    Failed to load: org.jboss.ws.tools.jaxws.impl.JBossWSProviderFactoryImpl

    Todd Prickett Newbie

      All,

      I'm using JBoss 5.1, JBossWS 3.3 (native), Sun Java 1.6, Windows XP, and Maven 2.  Attempting to do a wsprovide in Maven I'm getting the error:

       

      [ERROR] BUILD ERROR

      [INFO] ------------------------------------------------------------------------

      [INFO] Error while running wsconsume

       

      Embedded error: Failed to load: org.jboss.ws.tools.jaxws.impl.JBossWSProviderFactoryImpl

      [INFO] ------------------------------------------------------------------------

      [INFO] Trace

      org.apache.maven.lifecycle.LifecycleExecutionException: Error while running wsconsume

              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:584)

              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:500)

              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:479)

              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:331)

              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:292)

              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)

              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)

              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)

              at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)

              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:453)

              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)

              ... 16 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)

              ... 18 more

      Caused by: java.lang.ClassNotFoundException: org.jboss.ws.tools.jaxws.impl.JBossWSProviderFactoryImpl

              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:307)

              at java.lang.ClassLoader.loadClass(ClassLoader.java:252)

              at org.jboss.wsf.spi.util.SecurityActions.loadClass(SecurityActions.java:123)

              at org.jboss.wsf.spi.util.ServiceLoader.loadDefault(ServiceLoader.java:231)

              ... 23 more

       

       

       

      My maven pom file contains the section:

       

      <build>

              <plugins>

                  <plugin>

                      <groupId>org.apache.maven.plugins</groupId>

                      <artifactId>maven-compiler-plugin</artifactId>

                      <version>2.0.2</version>

                      <configuration>

                          <source>1.6</source>

                          <target>1.6</target>

                          <compilerargument>

                              -Djava.endorsed.dirs=C:/jboss-5.1.0.GA/lib/endorsed

                          </compilerargument>

                      </configuration>

                  </plugin>

       

                  <plugin>

                    <groupId>org.jboss.ws.plugins</groupId>

                    <artifactId>maven-jaxws-tools-plugin</artifactId>

                    <version>1.0.0.GA</version>

                    <configuration>

                      <verbose>true</verbose>

                      <endpointClass>com.sperbolink.ws.MyWebService</endpointClass>

                      <generateWsdl>true</generateWsdl>

                      <verbose>true</verbose>

                      <outputDirectory>src/main/resources</outputDirectory>

                      <sourceDirectory>src/main/java</sourceDirectory>

                    </configuration>

                    <executions>

                      <execution>

                        <goals>

                          <goal>wsprovide</goal>

                        </goals>

                      </execution>

                    </executions>

                  </plugin>

      :

      :

      :

       

      Try as I might, I cannot find the JBossWSProviderFactoryImpl class.

       

      Can anyone help?

       

      TIA