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

jboss-jaxws-tools-plugin wsprovide goal reports linkage error on first example in web page

    XMLWordPrintable

Details

    • Compatibility/Configuration

    Description

      Pasting first example (from http://community.jboss.org/wiki/JBossWS-wsprovide) into pom.xml and dependency mentioned in wsconsume doc as shown below.

      I have gone through several iterations of this, error below is the last run. On this last run, I deleted my existing local repo, minimized my J2EE project includes by commenting out all and incrementally including them until the project builds, verified that each include was a version published by JBoss with the same GAV coordinates identified by the error and/or that exist in the jar manifest, or that are listed in http://repository.jboss.org/maven2/org/jboss/jbossas/jboss-as-component-matrix/5.1.0.GA/jboss-as-component-matrix-5.1.0.GA.pom, and including those that were not in my Nexus repo.

      This is a linkage error so I compared the jars pulled in and found the following differences
      activation
      plexus-utils
      ant
      ant-launcher

      I guess commons-logging and log4j related jars are a little suspect - didn't see if packages in jars were the same.

      I also noticed I am not using the same jbossws-native-client version you declare in the plugin pom.

      So, is this a versioning issue where your plugin conflicts with my version of maven?

      My pom excerpts

      </plugin>
      <!-- Generate a wsdl -->
      <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>

      <dependency>
      <groupId>org.jboss.ws.native</groupId>
      <artifactId>jbossws-native-client</artifactId>
      <version>3.1.2.GA</version>
      </dependency>

      <dependency>
      <groupId>apache-log4j</groupId>
      <artifactId>log4j</artifactId>
      <version>1.2.14</version>
      <scope>provided</scope>
      </dependency>
      <dependency>
      <groupId>javax.mail</groupId>
      <artifactId>mail</artifactId>
      <version>1.4</version>
      <scope>provided</scope>
      </dependency>
      <dependency>
      <groupId>jboss.web</groupId>
      <artifactId>servlet-api</artifactId>
      <version>2.1.3.GA</version>
      <scope>provided</scope>
      </dependency>
      <dependency>
      <groupId>org.jboss.ws</groupId>
      <artifactId>jbossws-spi</artifactId>
      <version>1.1.2.GA</version>
      <scope>provided</scope>
      </dependency>
      <dependency>
      <groupId>org.jboss.javaee</groupId>
      <artifactId>jboss-javaee</artifactId>
      <version>5.1.0.GA</version>
      <scope>provided</scope>
      </dependency>
      <dependency>
      <groupId>org.jboss.naming</groupId>
      <artifactId>jnpserver</artifactId>
      <version>5.0.3.GA</version>
      <scope>provided</scope>
      </dependency>
      <dependency>
      <groupId>org.jboss.remoting</groupId>
      <artifactId>jboss-remoting</artifactId>
      <version>2.5.1</version>
      <scope>provided</scope>
      </dependency>

      From mvn -e -X install, I see

      [DEBUG] Plugin dependencies for:

      org.jboss.ws.plugins:maven-jaxws-tools-plugin:1.0.0.GA

      are:

      org.jboss.ws:jbossws-spi:jar:1.3.0.Beta3:runtime
      org.apache.maven:maven-project:jar:2.0.4:runtime
      org.apache.maven:maven-plugin-api:jar:2.0.4:runtime
      org.jboss:jbossxb:jar:2.0.1.GA:runtime
      com.sun:tools:jar:1.5.0:system
      org.codehaus.plexus:plexus-utils:jar:1.1:runtime

      And then

      [DEBUG] The following artifacts were filtered out for plugin: org.jboss.ws.plugins:maven-jaxws-tools-plugin:1.0.0.GA because they're already in the core of Maven:

      org.apache.maven:maven-project:jar:2.0.4:runtime
      org.apache.maven:maven-plugin-api:jar:2.0.4:runtime

      These will use the artifact files already in the core ClassRealm instead, to allow them to be included in PluginDescriptor.getArtifacts().

      And here is the output from m2eclipse - the classpath is formatted more clearly

      [INFO] — maven-jaxws-tools-plugin:1.0.0.GA:wsprovide (default) @ oss-internalmonitoring-core —
      [INFO] Classpath:
      [INFO] /Users/starver/dev/workspace/savvis/oss-internalmonitoring/oss-internalmonitoring-core/target/classes
      [INFO] /Users/starver/.m2/repository/com/savvis/oss/sma/oss-internalmonitoring-api/2.0.5-SNAPSHOT/oss-internalmonitoring-api-2.0.5-SNAPSHOT.jar
      [INFO] /Users/starver/.m2/repository/org/jboss/ws/native/jbossws-native-client/3.1.2.GA/jbossws-native-client-3.1.2.GA.jar
      [INFO] /Users/starver/.m2/repository/org/jboss/ws/native/jbossws-native-jaxws-ext/3.1.2.GA/jbossws-native-jaxws-ext-3.1.2.GA.jar
      [INFO] /Users/starver/.m2/repository/org/jboss/ws/native/jbossws-native-jaxws/3.1.2.GA/jbossws-native-jaxws-3.1.2.GA.jar
      [INFO] /Users/starver/.m2/repository/org/jboss/ws/native/jbossws-native-saaj/3.1.2.GA/jbossws-native-saaj-3.1.2.GA.jar
      [INFO] /Users/starver/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar
      [INFO] /Users/starver/.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar
      [INFO] /Users/starver/.m2/repository/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar
      [INFO] /Users/starver/.m2/repository/org/jboss/ws/native/jbossws-native-jaxrpc/3.1.2.GA/jbossws-native-jaxrpc-3.1.2.GA.jar
      [INFO] /Users/starver/.m2/repository/org/jboss/ws/native/jbossws-native-core/3.1.2.GA/jbossws-native-core-3.1.2.GA.jar
      [INFO] /Users/starver/.m2/repository/org/jboss/ws/jbossws-common/1.1.0.GA/jbossws-common-1.1.0.GA.jar
      [INFO] /Users/starver/.m2/repository/org/apache/ant/ant/1.7.0/ant-1.7.0.jar
      [INFO] /Users/starver/.m2/repository/org/apache/ant/ant-launcher/1.7.0/ant-launcher-1.7.0.jar
      [INFO] /Users/starver/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar
      [INFO] /Users/starver/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.6/jaxb-impl-2.1.6.jar
      [INFO] /Users/starver/.m2/repository/com/sun/xml/bind/jaxb-xjc/2.1.6/jaxb-xjc-2.1.6.jar
      [INFO] /Users/starver/.m2/repository/com/sun/xml/fastinfoset/FastInfoset/1.2.2/FastInfoset-1.2.2.jar
      [INFO] /Users/starver/.m2/repository/com/sun/xml/ws/jaxws-rt/2.1.3/jaxws-rt-2.1.3.jar
      [INFO] /Users/starver/.m2/repository/com/sun/xml/stream/buffer/streambuffer/0.7/streambuffer-0.7.jar
      [INFO] /Users/starver/.m2/repository/org/jvnet/staxex/stax-ex/1.2/stax-ex-1.2.jar
      [INFO] /Users/starver/.m2/repository/com/sun/org/apache/xml/internal/resolver/20050927/resolver-20050927.jar
      [INFO] /Users/starver/.m2/repository/org/jvnet/mimepull/1.1/mimepull-1.1.jar
      [INFO] /Users/starver/.m2/repository/com/sun/xml/ws/jaxws-tools/2.1.3/jaxws-tools-2.1.3.jar
      [INFO] /Users/starver/.m2/repository/org/codehaus/jettison/jettison/1.0-RC2/jettison-1.0-RC2.jar
      [INFO] /Users/starver/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar
      [INFO] /Users/starver/.m2/repository/jboss/jaxbintros/jboss-jaxb-intros/1.0.0.GA/jboss-jaxb-intros-1.0.0.GA.jar
      [INFO] /Users/starver/.m2/repository/wscommons-policy/policy/1.0/policy-1.0.jar
      [INFO] /Users/starver/.m2/repository/org/codehaus/woodstox/wstx-lgpl/3.2.6/wstx-lgpl-3.2.6.jar
      [INFO] /Users/starver/.m2/repository/wsdl4j/wsdl4j/1.6.1/wsdl4j-1.6.1.jar
      [INFO] /Users/starver/.m2/repository/org/apache/xmlsec/1.4.2/xmlsec-1.4.2.jar
      [INFO] /Users/starver/.m2/repository/javassist/javassist/3.6.0.GA/javassist-3.6.0.GA.jar
      [INFO] /Users/starver/.m2/repository/org/jboss/logging/jboss-logging-log4j/2.0.5.GA/jboss-logging-log4j-2.0.5.GA.jar
      [INFO] /Users/starver/.m2/repository/org/jboss/logging/jboss-logging-spi/2.0.5.GA/jboss-logging-spi-2.0.5.GA.jar
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 1.065s
      [INFO] Finished at: Fri Jun 11 15:31:39 CDT 2010
      [INFO] Final Memory: 4M/81M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.jboss.ws.plugins:maven-jaxws-tools-plugin:1.0.0.GA:wsprovide (default) on project oss-internalmonitoring-core: Execution default of goal org.jboss.ws.plugins:maven-jaxws-tools-plugin:1.0.0.GA:wsprovide failed: An API incompatibility was encountered while executing org.jboss.ws.plugins:maven-jaxws-tools-plugin:1.0.0.GA:wsprovide: java.lang.AbstractMethodError: org.jboss.wsf.spi.tools.WSContractProvider.setExtension(Z)V
      -----------------------------------------------------
      realm = plugin>org.jboss.ws.plugins:maven-jaxws-tools-plugin:1.0.0.GA
      strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
      urls[0] = file:/Users/starver/.m2/repository/org/jboss/ws/plugins/maven-jaxws-tools-plugin/1.0.0.GA/maven-jaxws-tools-plugin-1.0.0.GA.jar
      urls[1] = file:/Users/starver/.m2/repository/org/jboss/ws/jbossws-spi/1.3.0.Beta3/jbossws-spi-1.3.0.Beta3.jar
      urls[2] = file:/Users/starver/.m2/repository/org/apache/ant/ant/1.7.1/ant-1.7.1.jar
      urls[3] = file:/Users/starver/.m2/repository/org/apache/ant/ant-launcher/1.7.1/ant-launcher-1.7.1.jar
      urls[4] = file:/Users/starver/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar
      urls[5] = file:/Users/starver/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar
      urls[6] = file:/Users/starver/.m2/repository/gnu-getopt/getopt/1.0.13/getopt-1.0.13.jar
      urls[7] = file:/Users/starver/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
      urls[8] = file:/Users/starver/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
      urls[9] = file:/Users/starver/.m2/repository/org/jboss/jbossxb/2.0.1.GA/jbossxb-2.0.1.GA.jar
      urls[10] = file:/Users/starver/.m2/repository/org/jboss/logging/jboss-logging-spi/2.0.5.GA/jboss-logging-spi-2.0.5.GA.jar
      urls[11] = file:/Users/starver/.m2/repository/org/jboss/jboss-common-core/2.2.9.GA/jboss-common-core-2.2.9.GA.jar
      urls[12] = file:/Users/starver/.m2/repository/org/jboss/jboss-reflect/2.0.2.GA/jboss-reflect-2.0.2.GA.jar
      urls[13] = file:/Users/starver/.m2/repository/apache-xerces/xml-apis/2.9.1/xml-apis-2.9.1.jar
      urls[14] = file:/Users/starver/.m2/repository/apache-xerces/xercesImpl/2.9.1/xercesImpl-2.9.1.jar
      urls[15] = file:/Users/starver/.m2/repository/wutka-dtdparser/dtdparser121/1.2.1/dtdparser121-1.2.1.jar
      urls[16] = file:/Users/starver/.m2/repository/javax/activation/activation/1.1.1/activation-1.1.1.jar
      urls[17] = file:/Users/starver/.m2/repository/sun-jaxb/jaxb-api/2.1.9/jaxb-api-2.1.9.jar
      urls[18] = file:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/../Classes/classes.jar
      Number of foreign imports: 4
      import: Entry[import org.codehaus.plexus.util.xml.pull.XmlSerializer from realm ClassRealm[plexus.core, parent: null]]
      import: Entry[import org.codehaus.plexus.util.xml.pull.XmlPullParserException from realm ClassRealm[plexus.core, parent: null]]
      import: Entry[import org.codehaus.plexus.util.xml.pull.XmlPullParser from realm ClassRealm[plexus.core, parent: null]]
      import: Entry[import org.codehaus.plexus.util.xml.Xpp3Dom from realm ClassRealm[plexus.core, parent: null]]
      Number of parent imports: 20
      import: Entry[import org.codehaus.plexus.personality from realm null]
      import: Entry[import org.codehaus.plexus.logging from realm null]
      import: Entry[import org.codehaus.plexus.lifecycle from realm null]
      import: Entry[import org.codehaus.plexus.context from realm null]
      import: Entry[import org.codehaus.plexus.container from realm null]
      import: Entry[import org.codehaus.plexus.configuration from realm null]
      import: Entry[import org.codehaus.plexus.component from realm null]
      import: Entry[import org.codehaus.plexus.classworlds from realm null]
      import: Entry[import org.codehaus.plexus.PlexusContainerException from realm null]
      import: Entry[import org.codehaus.plexus.PlexusContainer from realm null]
      import: Entry[import org.codehaus.plexus.PlexusConstants from realm null]
      import: Entry[import org.codehaus.plexus.MutablePlexusContainer from realm null]
      import: Entry[import org.codehaus.plexus.DuplicateChildContainerException from realm null]
      import: Entry[import org.codehaus.plexus.DefaultPlexusContainer from realm null]
      import: Entry[import org.codehaus.plexus.DefaultContainerConfiguration from realm null]
      import: Entry[import org.codehaus.plexus.DefaultComponentRegistry from realm null]
      import: Entry[import org.codehaus.plexus.ContainerConfiguration from realm null]
      import: Entry[import org.codehaus.plexus.ComponentRegistry from realm null]
      import: Entry[import org.codehaus.classworlds from realm null]
      import: Entry[import org.apache.maven from realm null]

      realm = plexus.core
      strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
      urls[0] = file:/Applications/eclipse%203.5/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/commons-cli-1.2.jar
      urls[1] = file:/Applications/eclipse%203.5/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/commons-logging-api-1.1.jar
      urls[2] = file:/Applications/eclipse%203.5/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/google-collections-1.0.jar
      urls[3] = file:/Applications/eclipse%203.5/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/jetty-client-7.0.0.v20091005.jar
      urls[4] = file:/Applications/eclipse%203.5/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/jetty-http-7.0.0.v20091005.jar
      urls[5] = file:/Applications/eclipse%203.5/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/jetty-io-7.0.0.v20091005.jar
      urls[6] = file:/Applications/eclipse%203.5/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/jetty-util-7.0.0.v20091005.jar
      urls[7] = file:/Applications/eclipse%203.5/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/log4j-1.2.12.jar
      urls[8] = file:/Applications/eclipse%203.5/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/maven-artifact-3.0-SNAPSHOT.jar
      urls[9] = file:/Applications/eclipse%203.5/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/maven-compat-3.0-SNAPSHOT.jar
      urls[10] = file:/Applications/eclipse%203.5/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/maven-core-3.0-SNAPSHOT.jar
      urls[11] = file:/Applications/eclipse%203.5/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/maven-embedder-3.0-SNAPSHOT.jar
      urls[12] = file:/Applications/eclipse%203.5/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/maven-model-3.0-SNAPSHOT.jar
      urls[13] = file:/Applications/eclipse%203.5/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/maven-model-builder-3.0-SNAPSHOT.jar
      urls[14] = file:/Applications/eclipse%203.5/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/maven-plugin-api-3.0-SNAPSHOT.jar
      urls[15] = file:/Applications/eclipse%203.5/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/maven-settings-3.0-SNAPSHOT.jar
      urls[16] = file:/Applications/eclipse%203.5/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/plexus-build-api-0.0.6.jar
      urls[17] = file:/Applications/eclipse%203.5/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/plexus-cipher-1.4.jar
      urls[18] = file:/Applications/eclipse%203.5/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/plexus-component-annotations-1.5.3.jar
      urls[19] = file:/Applications/eclipse%203.5/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/plexus-container-default-1.5.3.jar
      urls[20] = file:/Applications/eclipse%203.5/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/plexus-interpolation-1.11.jar
      urls[21] = file:/Applications/eclipse%203.5/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/plexus-sec-dispatcher-1.3.jar
      urls[22] = file:/Applications/eclipse%203.5/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/plexus-utils-2.0.1.jar
      urls[23] = file:/Applications/eclipse%203.5/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/wagon-file-1.0-beta-6.jar
      urls[24] = file:/Applications/eclipse%203.5/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/wagon-http-jetty-client-1.0-SNAPSHOT.jar
      urls[25] = file:/Applications/eclipse%203.5/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/wagon-provider-api-1.0-beta-6.jar
      urls[26] = file:/Applications/eclipse%203.5/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/xbean-reflect-3.4.jar
      Number of foreign imports: 0

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: