4 Replies Latest reply on Mar 9, 2018 1:56 PM by indranilrc

    Error while running wsconume using maven

    indranilrc

      Hi,

       

      The topic of running wsconsume through maven is widely discussed and before posting this issue I had looked into quite a few of them but have not found a specific solution to the issue.

       

      I am using Red Hat Jboss developer studio Version: 10.4.0.GA with JBoss EAP 6.4.0.GA (AS 7.5.0.Final-redhat-21). From standalone server start up log I can see that JBoss Web Services - Stack CXF Server 4.3.4.Final-redhat-1 is being used.

       

      The objective is to run wsconsume (to generate client and service from a wsdl) from a maven project set up in JBoss IDE (eventually deploy the web service in EAP 6.4).

       

      Following repository is setup in Jboss IDE.

       

      https://repository.jboss.org/nexus/content/groups/public-jboss/

       

      However I get java.lang.ClassNotFoundException: org.jboss.ws.api.tools.WSContractConsumer exception while run the maven build. I have referenced the following articles :

       

      https://developer.jboss.org/wiki/JAXWSToolsMavenPluginSample

       

      https://docs.jboss.org/author/display/JBWS/wsconsume

       

      How to configure wsconsume maven plugin?

       

      Also, looked at Jax-ws tools documentation available within jbossws-cxf-4.3.2.Final distribution documentation.

       

      Here is copy of the project pom.xml:

       

      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
          <modelVersion>4.0.0</modelVersion>
          <groupId>org.jboss.tools</groupId>
          <artifactId>jboss-calculator-ws</artifactId>
          <version>0.0.1-SNAPSHOT</version>
          <packaging>war</packaging>
          <name>jboss-calculator-ws</name>
          <build>
              <sourceDirectory>${basedir}/src</sourceDirectory>
              <resources>
                  <resource>
                      <directory>${basedir}/src</directory>
                      <excludes>
                          <exclude>**/*.java</exclude>
                      </excludes>
                  </resource>
              </resources>
              <plugins>
                  <plugin>
                      <artifactId>maven-war-plugin</artifactId>
                      <version>${maven.war.plugin.version}</version>
                      <configuration>
                          <warSourceDirectory>${basedir}/WebContent</warSourceDirectory>
                          <failOnMissingWebXml>false</failOnMissingWebXml>
                      </configuration>
                  </plugin>
                  <plugin>
                      <artifactId>maven-compiler-plugin</artifactId>
                      <version>${version.compiler.plugin}</version>
                      <configuration>
                          <source>${maven.compiler.source}</source>
                          <target>${maven.compiler.target}</target>
                      </configuration>
                  </plugin>
                  <plugin>
                      <groupId>org.jboss.ws.plugins</groupId>
                      <artifactId>jaxws-tools-maven-plugin</artifactId>
                      <version>${jaxws.tools.maven.plugin.version}</version>
                      <configuration>
                          <wsdls>
                              <wsdl>${basedir}/calculator.wsdl</wsdl>
                          </wsdls>
                          <classpathElements>${basedir}/WebContent/WEB-INF/lib/commons-lang-2.6.jar</classpathElements>
                          <targetPackage>com.myapp.ws.generated</targetPackage>
                          <verbose>true</verbose>
                      </configuration>
                      <executions>
                          <execution>
                              <goals>
                                  <goal>wsconsume</goal>
                              </goals>
                          </execution>
                      </executions>
                  </plugin>
      
              </plugins>
              <finalName>jboss-calculator-ws</finalName>
          </build>
          <dependencies>
              <dependency>
                  <groupId>org.jboss.ws.cxf</groupId>
                  <artifactId>jbossws-cxf-client</artifactId>
                  <version>${org.jboss.ws.cxf.client.version}</version>
                  <scope>provided</scope>
              </dependency>
              <dependency>
                  <groupId>commons-lang</groupId>
                  <artifactId>commons-lang</artifactId>
                  <version>2.6</version>
              </dependency>
          </dependencies>
          <properties>
              <maven.compiler.target>1.8</maven.compiler.target>
              <maven.compiler.source>1.8</maven.compiler.source>
              <version.compiler.plugin>3.0</version.compiler.plugin>
              <jaxws.tools.maven.plugin.version>1.2.0.Final</jaxws.tools.maven.plugin.version>
              <org.jboss.ws.cxf.client.version>4.3.4.Final</org.jboss.ws.cxf.client.version>
              <maven.war.plugin.version>2.3</maven.war.plugin.version>
          </properties> 
      </project>
      

       

      NOTE: Commons lang dependency was added to avoid error ClassNotFoundException on StringUtils

       

      The relevant error trace is as below (full trace attached in the post)

       

      [INFO] --- jaxws-tools-maven-plugin:1.2.0.Final:wsconsume (default) @ jboss-calculator-ws ---

      [DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=0, ConflictMarker.markTime=0, ConflictMarker.nodeCount=37, ConflictIdSorter.graphTime=0, ConflictIdSorter.topsortTime=0, ConflictIdSorter.conflictIdCount=20, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=0, ConflictResolver.conflictItemCount=37, DefaultDependencyCollector.collectTime=80, DefaultDependencyCollector.transformTime=0}

      [DEBUG] org.jboss.ws.plugins:jaxws-tools-maven-plugin:jar:1.2.0.Final:

      [DEBUG]    org.jboss.ws:jbossws-common-tools:jar:1.2.1.Final:compile

      [DEBUG]       org.jboss.ws:jbossws-api:jar:1.0.3.Final:compile

      [DEBUG]       gnu.getopt:java-getopt:jar:1.0.13:compile

      [DEBUG]       log4j:log4j:jar:1.2.14:compile

      [DEBUG]    org.apache.maven:maven-project:jar:2.2.1:compile

      [DEBUG]       org.apache.maven:maven-settings:jar:2.2.1:compile

      [DEBUG]       org.apache.maven:maven-profile:jar:2.2.1:compile

      [DEBUG]       org.apache.maven:maven-model:jar:2.2.1:compile

      [DEBUG]       org.apache.maven:maven-artifact-manager:jar:2.2.1:compile

      [DEBUG]          org.apache.maven:maven-repository-metadata:jar:2.2.1:compile

      [DEBUG]          backport-util-concurrent:backport-util-concurrent:jar:3.1:compile

      [DEBUG]       org.apache.maven:maven-plugin-registry:jar:2.2.1:compile

      [DEBUG]       org.codehaus.plexus:plexus-interpolation:jar:1.11:compile

      [DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.5.15:compile

      [DEBUG]       org.apache.maven:maven-artifact:jar:2.2.1:compile

      [DEBUG]       org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile

      [DEBUG]          junit:junit:jar:3.8.1:compile

      [DEBUG]          classworlds:classworlds:jar:1.1-alpha-2:compile

      [DEBUG]    org.apache.maven:maven-plugin-api:jar:2.2.1:compile

      [DEBUG] Created new class realm plugin>org.jboss.ws.plugins:jaxws-tools-maven-plugin:1.2.0.Final

      [DEBUG] Importing foreign packages into class realm plugin>org.jboss.ws.plugins:jaxws-tools-maven-plugin:1.2.0.Final

      [DEBUG]   Imported:  < maven.api

      [DEBUG] Populating class realm plugin>org.jboss.ws.plugins:jaxws-tools-maven-plugin:1.2.0.Final

      [DEBUG]   Included: org.jboss.ws.plugins:jaxws-tools-maven-plugin:jar:1.2.0.Final

      [DEBUG]   Included: org.jboss.ws:jbossws-common-tools:jar:1.2.1.Final

      [DEBUG]   Included: org.jboss.ws:jbossws-api:jar:1.0.3.Final

      [DEBUG]   Included: gnu.getopt:java-getopt:jar:1.0.13

      [DEBUG]   Included: log4j:log4j:jar:1.2.14

      [DEBUG]   Included: backport-util-concurrent:backport-util-concurrent:jar:3.1

      [DEBUG]   Included: org.codehaus.plexus:plexus-interpolation:jar:1.11

      [DEBUG]   Included: org.codehaus.plexus:plexus-utils:jar:1.5.15

      [DEBUG]   Included: junit:junit:jar:3.8.1

      [DEBUG] Configuring mojo org.jboss.ws.plugins:jaxws-tools-maven-plugin:1.2.0.Final:wsconsume from plugin realm ClassRealm[plugin>org.jboss.ws.plugins:jaxws-tools-maven-plugin:1.2.0.Final, parent: sun.misc.Launcher$AppClassLoader@55f96302]

      [DEBUG] Configuring mojo 'org.jboss.ws.plugins:jaxws-tools-maven-plugin:1.2.0.Final:wsconsume' with basic configurator -->

      [DEBUG]   (f) additionalHeaders = false

      [DEBUG]   (f) classpathElements = [C:\Users\jdoe\jboss-workspace\jboss-calculator-ws/WebContent/WEB-INF/lib/commons-lang-2.6.jar]

      [DEBUG]   (f) extension = false

      [DEBUG]   (f) fork = false

      [DEBUG]   (f) outputDirectory = C:\Users\jdoe\jboss-workspace\jboss-calculator-ws\target\classes

      [DEBUG]   (f) pluginArtifacts = [org.jboss.ws.plugins:jaxws-tools-maven-plugin:maven-plugin:1.2.0.Final:, org.jboss.ws:jbossws-common-tools:jar:1.2.1.Final:compile, org.jboss.ws:jbossws-api:jar:1.0.3.Final:compile, gnu.getopt:java-getopt:jar:1.0.13:compile, log4j:log4j:jar:1.2.14:compile, org.apache.maven:maven-project:jar:2.2.1:compile, org.apache.maven:maven-settings:jar:2.2.1:compile, org.apache.maven:maven-profile:jar:2.2.1:compile, org.apache.maven:maven-model:jar:2.2.1:compile, org.apache.maven:maven-artifact-manager:jar:2.2.1:compile, org.apache.maven:maven-repository-metadata:jar:2.2.1:compile, backport-util-concurrent:backport-util-concurrent:jar:3.1:compile, org.apache.maven:maven-plugin-registry:jar:2.2.1:compile, org.codehaus.plexus:plexus-interpolation:jar:1.11:compile, org.codehaus.plexus:plexus-utils:jar:1.5.15:compile, org.apache.maven:maven-artifact:jar:2.2.1:compile, org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile, junit:junit:jar:3.8.1:compile, classworlds:classworlds:jar:1.1-alpha-2:compile, org.apache.maven:maven-plugin-api:jar:2.2.1:compile]

      [DEBUG]   (f) project = MavenProject: org.jboss.tools:jboss-calculator-ws:0.0.1-SNAPSHOT @ C:\Users\jdoe\jboss-workspace\jboss-calculator-ws\pom.xml

      [DEBUG]   (f) sourceDirectory = C:\Users\jdoe\jboss-workspace\jboss-calculator-ws\target\generated-sources\wsconsume

      [DEBUG]   (f) targetPackage = com.myapp.ws.generated

      [DEBUG]   (f) verbose = true

      [DEBUG]   (f) wsdls = [C:\Users\jdoe\jboss-workspace\jboss-calculator-ws/calculator.wsdl]

      [DEBUG] -- end configuration --

      [INFO] Classpath:

      [INFO]  C:\Users\jdoe\jboss-workspace\jboss-calculator-ws/WebContent/WEB-INF/lib/commons-lang-2.6.jar

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

      [INFO] BUILD FAILURE

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

      [INFO] Total time: 1.661 s

      [INFO] Finished at: 2018-03-06T17:52:42+05:30

      [INFO] Final Memory: 9M/155M

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

      [ERROR] Failed to execute goal org.jboss.ws.plugins:jaxws-tools-maven-plugin:1.2.0.Final:wsconsume (default) on project jboss-calculator-ws: Error while running wsconsume: org.jboss.ws.api.tools.WSContractConsumer -> [Help 1]

      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.jboss.ws.plugins:jaxws-tools-maven-plugin:1.2.0.Final:wsconsume (default) on project jboss-calculator-ws: Error while running wsconsume

          at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)

          at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)

          at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)

          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)

          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)

          at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)

          at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)

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

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

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

          at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)

          at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)

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

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:498)

          at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)

          at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)

          at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)

          at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

      Caused by: org.apache.maven.plugin.MojoExecutionException: Error while running wsconsume

          at org.jboss.ws.plugins.tools.AbstractWsConsumeMojo.execute(AbstractWsConsumeMojo.java:169)

          at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)

          at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)

          ... 20 more

      Caused by: java.lang.ClassNotFoundException: org.jboss.ws.api.tools.WSContractConsumer

          at java.net.URLClassLoader.findClass(URLClassLoader.java:381)

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

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

          at org.jboss.ws.plugins.tools.WSContractDelegate.runConsumerInProcess(WSContractDelegate.java:103)

          at org.jboss.ws.plugins.tools.WSContractDelegate.runConsumer(WSContractDelegate.java:96)

          at org.jboss.ws.plugins.tools.AbstractWsConsumeMojo.execute(AbstractWsConsumeMojo.java:161)

          ... 22 more

      [ERROR]

      [ERROR]

      [ERROR] For more information about the errors and possible solutions, please read the following articles:

      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

       

      What additional dependency should I add to get rid of the above error ? Are the versions of jaxws-tools-maven-plugin and org.jboss.ws.cxf.client  being used correct ?

       

      Appreciate any feedback and pointers in this respect.

        • 1. Re: Error while running wsconume using maven
          asoldano

          This

          <classpathElements>${basedir}/WebContent/WEB-INF/lib/commons-lang-2.6.jar</classpathElements>

          is the offending line, basically preventing the plugin from finding the jbossws-api component in the classpath.

          • 2. Re: Error while running wsconume using maven
            indranilrc

            Hi Alessio,

             

            I have tried removing the dependency on commons lang jar.However now I get a different error in maven console.

             

            [ERROR] Failed to execute goal org.jboss.ws.plugins:jaxws-tools-maven-plugin:1.2.0.Final:wsconsume (default) on project jboss-calculator-ws: Error while running wsconsume: InvocationTargetException: org/apache/cxf/common/logging/LogUtils: org.apache.cxf.common.logging.LogUtils -> [Help 1]

            org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.jboss.ws.plugins:jaxws-tools-maven-plugin:1.2.0.Final:wsconsume (default) on project jboss-calculator-ws: Error while running wsconsume

                at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)

                at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)

                at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)

                at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)

                at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)

                at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)

                at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)

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

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

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

                at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)

                at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)

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

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                at java.lang.reflect.Method.invoke(Method.java:498)

                at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)

                at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)

                at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)

                at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

            Caused by: org.apache.maven.plugin.MojoExecutionException: Error while running wsconsume

                at org.jboss.ws.plugins.tools.AbstractWsConsumeMojo.execute(AbstractWsConsumeMojo.java:169)

                at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)

                at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)

                ... 20 more

            Caused by: java.lang.reflect.InvocationTargetException

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                at java.lang.reflect.Method.invoke(Method.java:498)

                at org.jboss.ws.plugins.tools.WSContractDelegate.runConsumerInProcess(WSContractDelegate.java:107)

                at org.jboss.ws.plugins.tools.WSContractDelegate.runConsumer(WSContractDelegate.java:96)

                at org.jboss.ws.plugins.tools.AbstractWsConsumeMojo.execute(AbstractWsConsumeMojo.java:161)

                ... 22 more

            Caused by: java.lang.NoClassDefFoundError: org/apache/cxf/common/logging/LogUtils

                at org.apache.cxf.tools.wsdlto.core.PluginLoader.<clinit>(PluginLoader.java:56)

                at org.apache.cxf.tools.wsdlto.WSDLToJava.<init>(WSDLToJava.java:48)

                at org.jboss.wsf.stack.cxf.tools.CXFConsumerImpl.consume(CXFConsumerImpl.java:296)

                at org.jboss.ws.api.tools.WSContractConsumer.consume(WSContractConsumer.java:217)

                ... 29 more

            Caused by: java.lang.ClassNotFoundException: org.apache.cxf.common.logging.LogUtils

                at java.net.URLClassLoader.findClass(URLClassLoader.java:381)

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

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

                ... 33 more

            [ERROR]

            • 3. Re: Error while running wsconume using maven
              asoldano

              There's definitely something weird in your classpath. I tried your pom.xml with a wsdl of mine and below is the output.

               

              asoldano@kikyo ~/tmp/test-plugin $ mvn clean package

              Picked up JAVA_TOOL_OPTIONS: -Djavax.xml.accessExternalSchema=all

              [INFO] Scanning for projects...

              [INFO]                                                                        

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

              [INFO] Building jboss-calculator-ws 0.0.1-SNAPSHOT

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

              [INFO]

              [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ jboss-calculator-ws ---

              [INFO] Deleting /home/asoldano/tmp/test-plugin/target

              [INFO]

              [INFO] --- jaxws-tools-maven-plugin:1.2.0.Final:wsconsume (default) @ jboss-calculator-ws ---

              [INFO] Classpath:

              [INFO]  /home/asoldano/tmp/test-plugin/target/classes

              [INFO]  /home/asoldano/.m2/repository/org/jboss/ws/cxf/jbossws-cxf-client/4.3.4.Final/jbossws-cxf-client-4.3.4.Final.jar

              [INFO]  /home/asoldano/.m2/repository/org/jboss/ws/jbossws-api/1.0.2.Final/jbossws-api-1.0.2.Final.jar

              [INFO]  /home/asoldano/.m2/repository/org/jboss/ws/jbossws-common/2.3.1.Final/jbossws-common-2.3.1.Final.jar

              [INFO]  /home/asoldano/.m2/repository/jboss/jaxbintros/jboss-jaxb-intros/1.0.2.GA/jboss-jaxb-intros-1.0.2.GA.jar

              [INFO]  /home/asoldano/.m2/repository/commons-beanutils/commons-beanutils/1.8.0/commons-beanutils-1.8.0.jar

              [INFO]  /home/asoldano/.m2/repository/org/jboss/ws/jbossws-common-tools/1.2.0.Final/jbossws-common-tools-1.2.0.Final.jar

              [INFO]  /home/asoldano/.m2/repository/gnu/getopt/java-getopt/1.0.13/java-getopt-1.0.13.jar

              [INFO]  /home/asoldano/.m2/repository/org/jboss/ws/jbossws-spi/2.3.1.Final/jbossws-spi-2.3.1.Final.jar

              [INFO]  /home/asoldano/.m2/repository/org/jboss/ws/cxf/jbossws-cxf-factories/4.3.4.Final/jbossws-cxf-factories-4.3.4.Final.jar

              [INFO]  /home/asoldano/.m2/repository/org/jboss/ws/cxf/jbossws-cxf-transports-httpserver/4.3.4.Final/jbossws-cxf-transports-httpserver-4.3.4.Final.jar

              [INFO]  /home/asoldano/.m2/repository/org/jboss/ws/projects/jaxws-jboss-httpserver-httpspi/1.0.1.GA/jaxws-jboss-httpserver-httpspi-1.0.1.GA.jar

              [INFO]  /home/asoldano/.m2/repository/org/jboss/com/sun/httpserver/httpserver/1.0.0.Final/httpserver-1.0.0.Final.jar

              [INFO]  /home/asoldano/.m2/repository/org/jboss/ws/cxf/jbossws-cxf-transports-udp/4.3.4.Final/jbossws-cxf-transports-udp-4.3.4.Final.jar

              [INFO]  /home/asoldano/.m2/repository/org/apache/cxf/cxf-rt-bindings-soap/2.7.14/cxf-rt-bindings-soap-2.7.14.jar

              [INFO]  /home/asoldano/.m2/repository/org/apache/cxf/cxf-api/2.7.14/cxf-api-2.7.14.jar

              [INFO]  /home/asoldano/.m2/repository/org/apache/ws/xmlschema/xmlschema-core/2.1.0/xmlschema-core-2.1.0.jar

              [INFO]  /home/asoldano/.m2/repository/org/apache/cxf/cxf-rt-databinding-jaxb/2.7.14/cxf-rt-databinding-jaxb-2.7.14.jar

              [INFO]  /home/asoldano/.m2/repository/org/apache/cxf/cxf-rt-bindings-object/2.7.14/cxf-rt-bindings-object-2.7.14.jar

              [INFO]  /home/asoldano/.m2/repository/org/apache/cxf/cxf-rt-bindings-coloc/2.7.14/cxf-rt-bindings-coloc-2.7.14.jar

              [INFO]  /home/asoldano/.m2/repository/org/apache/cxf/cxf-rt-core/2.7.14/cxf-rt-core-2.7.14.jar

              [INFO]  /home/asoldano/.m2/repository/org/apache/cxf/cxf-rt-frontend-jaxws/2.7.14/cxf-rt-frontend-jaxws-2.7.14.jar

              [INFO]  /home/asoldano/.m2/repository/xml-resolver/xml-resolver/1.2/xml-resolver-1.2.jar

              [INFO]  /home/asoldano/.m2/repository/org/apache/cxf/cxf-rt-bindings-xml/2.7.14/cxf-rt-bindings-xml-2.7.14.jar

              [INFO]  /home/asoldano/.m2/repository/org/apache/cxf/cxf-rt-frontend-simple/2.7.14/cxf-rt-frontend-simple-2.7.14.jar

              [INFO]  /home/asoldano/.m2/repository/org/apache/cxf/cxf-rt-ws-addr/2.7.14/cxf-rt-ws-addr-2.7.14.jar

              [INFO]  /home/asoldano/.m2/repository/org/apache/cxf/cxf-rt-transports-http/2.7.14/cxf-rt-transports-http-2.7.14.jar

              [INFO]  /home/asoldano/.m2/repository/org/apache/cxf/cxf-rt-transports-jms/2.7.14/cxf-rt-transports-jms-2.7.14.jar

              [INFO]  /home/asoldano/.m2/repository/org/apache/cxf/cxf-rt-management/2.7.14/cxf-rt-management-2.7.14.jar

              [INFO]  /home/asoldano/.m2/repository/org/apache/cxf/cxf-rt-transports-local/2.7.14/cxf-rt-transports-local-2.7.14.jar

              [INFO]  /home/asoldano/.m2/repository/org/apache/cxf/cxf-rt-ws-mex/2.7.14/cxf-rt-ws-mex-2.7.14.jar

              [INFO]  /home/asoldano/.m2/repository/org/apache/cxf/cxf-rt-ws-rm/2.7.14/cxf-rt-ws-rm-2.7.14.jar

              [INFO]  /home/asoldano/.m2/repository/org/apache/cxf/cxf-rt-ws-policy/2.7.14/cxf-rt-ws-policy-2.7.14.jar

              [INFO]  /home/asoldano/.m2/repository/org/apache/neethi/neethi/3.0.3/neethi-3.0.3.jar

              [INFO]  /home/asoldano/.m2/repository/org/apache/cxf/cxf-rt-ws-security/2.7.14/cxf-rt-ws-security-2.7.14.jar

              [INFO]  /home/asoldano/.m2/repository/net/sf/ehcache/ehcache-core/2.5.1/ehcache-core-2.5.1.jar

              [INFO]  /home/asoldano/.m2/repository/org/apache/ws/security/wss4j/1.6.17/wss4j-1.6.17.jar

              [INFO]  /home/asoldano/.m2/repository/org/opensaml/opensaml/2.6.1/opensaml-2.6.1.jar

              [INFO]  /home/asoldano/.m2/repository/org/opensaml/openws/1.5.1/openws-1.5.1.jar

              [INFO]  /home/asoldano/.m2/repository/org/opensaml/xmltooling/1.4.1/xmltooling-1.4.1.jar

              [INFO]  /home/asoldano/.m2/repository/joda-time/joda-time/2.2/joda-time-2.2.jar

              [INFO]  /home/asoldano/.m2/repository/xalan/serializer/2.7.1/serializer-2.7.1.jar

              [INFO]  /home/asoldano/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar

              [INFO]  /home/asoldano/.m2/repository/org/apache/cxf/cxf-tools-java2ws/2.7.14/cxf-tools-java2ws-2.7.14.jar

              [INFO]  /home/asoldano/.m2/repository/org/apache/cxf/cxf-tools-common/2.7.14/cxf-tools-common-2.7.14.jar

              [INFO]  /home/asoldano/.m2/repository/wsdl4j/wsdl4j/1.6.3/wsdl4j-1.6.3.jar

              [INFO]  /home/asoldano/.m2/repository/org/apache/cxf/cxf-rt-databinding-aegis/2.7.14/cxf-rt-databinding-aegis-2.7.14.jar

              [INFO]  /home/asoldano/.m2/repository/org/apache/cxf/cxf-tools-wsdlto-core/2.7.14/cxf-tools-wsdlto-core-2.7.14.jar

              [INFO]  /home/asoldano/.m2/repository/org/apache/cxf/cxf-tools-validator/2.7.14/cxf-tools-validator-2.7.14.jar

              [INFO]  /home/asoldano/.m2/repository/org/apache/cxf/cxf-tools-wsdlto-databinding-jaxb/2.7.14/cxf-tools-wsdlto-databinding-jaxb-2.7.14.jar

              [INFO]  /home/asoldano/.m2/repository/org/apache/cxf/cxf-tools-wsdlto-frontend-jaxws/2.7.14/cxf-tools-wsdlto-frontend-jaxws-2.7.14.jar

              [INFO]  /home/asoldano/.m2/repository/org/apache/cxf/services/ws-discovery/cxf-services-ws-discovery-api/2.7.14/cxf-services-ws-discovery-api-2.7.14.jar

              [INFO]  /home/asoldano/.m2/repository/org/apache/cxf/xjcplugins/cxf-xjc-boolean/2.6.1/cxf-xjc-boolean-2.6.1.jar

              [INFO]  /home/asoldano/.m2/repository/org/apache/cxf/xjcplugins/cxf-xjc-dv/2.6.1/cxf-xjc-dv-2.6.1.jar

              [INFO]  /home/asoldano/.m2/repository/org/apache/cxf/xjcplugins/cxf-xjc-ts/2.6.1/cxf-xjc-ts-2.6.1.jar

              [INFO]  /home/asoldano/.m2/repository/org/apache/velocity/velocity/1.7/velocity-1.7.jar

              [INFO]  /home/asoldano/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar

              [INFO]  /home/asoldano/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar

              [INFO]  /home/asoldano/.m2/repository/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar

              [INFO]  /home/asoldano/.m2/repository/com/sun/xml/fastinfoset/FastInfoset/1.2.12/FastInfoset-1.2.12.jar

              [INFO]  /home/asoldano/.m2/repository/org/apache/santuario/xmlsec/1.5.7/xmlsec-1.5.7.jar

              [INFO]  /home/asoldano/.m2/repository/org/codehaus/woodstox/woodstox-core-asl/4.2.0/woodstox-core-asl-4.2.0.jar

              [INFO]  /home/asoldano/.m2/repository/org/codehaus/woodstox/stax2-api/3.1.1/stax2-api-3.1.1.jar

              [INFO]  /home/asoldano/.m2/repository/asm/asm/3.3.1/asm-3.3.1.jar

              [INFO]  /home/asoldano/.m2/repository/org/jboss/spec/javax/xml/rpc/jboss-jaxrpc-api_1.1_spec/1.0.1.Final/jboss-jaxrpc-api_1.1_spec-1.0.1.Final.jar

              [INFO]  /home/asoldano/.m2/repository/org/jboss/spec/javax/servlet/jboss-servlet-api_3.0_spec/1.0.1.Final/jboss-servlet-api_3.0_spec-1.0.1.Final.jar

              [INFO]  /home/asoldano/.m2/repository/javax/jws/jsr181-api/1.0-MR1/jsr181-api-1.0-MR1.jar

              [INFO]  /home/asoldano/.m2/repository/org/jboss/spec/javax/xml/bind/jboss-jaxb-api_2.2_spec/1.0.4.Final/jboss-jaxb-api_2.2_spec-1.0.4.Final.jar

              [INFO]  /home/asoldano/.m2/repository/org/jboss/spec/javax/xml/ws/jboss-jaxws-api_2.2_spec/2.0.2.Final/jboss-jaxws-api_2.2_spec-2.0.2.Final.jar

              [INFO]  /home/asoldano/.m2/repository/org/jboss/spec/javax/xml/soap/jboss-saaj-api_1.3_spec/1.0.3.Final/jboss-saaj-api_1.3_spec-1.0.3.Final.jar

              [INFO]  /home/asoldano/.m2/repository/com/sun/xml/bind/jaxb-impl/2.2.6/jaxb-impl-2.2.6.jar

              [INFO]  /home/asoldano/.m2/repository/com/sun/xml/bind/jaxb-xjc/2.2.6/jaxb-xjc-2.2.6.jar

              [INFO]  /home/asoldano/.m2/repository/log4j/log4j/1.2.16/log4j-1.2.16.jar

              [INFO]  /home/asoldano/.m2/repository/org/jboss/logging/jboss-logging/3.1.2.GA/jboss-logging-3.1.2.GA.jar

              log4j:WARN No appenders could be found for logger (org.apache.cxf.common.logging.LogUtils).

              log4j:WARN Please initialize the log4j system properly.

              log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

              Loading FrontEnd jaxws ...

              Loading DataBinding jaxb ...

              wsdl2java -exsh false -p com.myapp.ws.generated -d /home/asoldano/tmp/test-plugin/target/generated-sources/wsconsume -verbose -allowElementReferences file:/home/asoldano/tmp/test-plugin/calculator.wsdl

              wsdl2java - Apache CXF 2.7.14

               

              [INFO]

              [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ jboss-calculator-ws ---

              [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!

              [INFO] Copying 0 resource

              [INFO]

              [INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ jboss-calculator-ws ---

              [INFO] Changes detected - recompiling the module!

              [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!

              [INFO] Compiling 6 source files to /home/asoldano/tmp/test-plugin/target/classes

              [INFO]

              [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ jboss-calculator-ws ---

              [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!

              [INFO] skip non existing resourceDirectory /home/asoldano/tmp/test-plugin/src/test/resources

              [INFO]

              [INFO] --- maven-compiler-plugin:3.0:testCompile (default-testCompile) @ jboss-calculator-ws ---

              [INFO] No sources to compile

              [INFO]

              [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ jboss-calculator-ws ---

              [INFO] No tests to run.

              [INFO]

              [INFO] --- maven-war-plugin:2.3:war (default-war) @ jboss-calculator-ws ---

              [INFO] Packaging webapp

              [INFO] Assembling webapp [jboss-calculator-ws] in [/home/asoldano/tmp/test-plugin/target/jboss-calculator-ws]

              [INFO] Processing war project

              [INFO] Webapp assembled in [108 msecs]

              [INFO] Building war: /home/asoldano/tmp/test-plugin/target/jboss-calculator-ws.war

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

              [INFO] BUILD SUCCESS

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

              [INFO] Total time: 11.729 s

              [INFO] Finished at: 2018-03-07T14:23:26+01:00

              [INFO] Final Memory: 30M/282M

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

              • 4. Re: Error while running wsconume using maven
                indranilrc

                Any suggestions on how to debug this ? Please note that wsconsume seems to work from command line just fine. I had Apache CXF 3.2.2 configured within the IDE earlier as I was playing with web service client generation using the same, but even after removing it and restarting IDE I don't see any changes in the output.

                Jboss IDE Project classpath snapshot

                CXF Preference