Skip to main content

maven build error wsimport caused a linkage error

2 replies [Last post]
bowhntr33
Offline
Joined: 2009-03-09

Here is the output. Please help determine on what I'm missing? Thanks!!

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building ppa-gui
[INFO]
[INFO] Id: com.acxiom.dnb.ppa:ppa-gui:war:1.0
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [jaxws:wsimport]
[INFO] Processing: http://localhost:8080/ppa-web_service/ConnectionDAO?wsdl
[INFO] jaxws:wsimport args: [-s, C:\Documents and Settings\sbrann\My Documents\workspace\ppa-gui\src\main\java, -d, C:\Documents and Settings\sbrann\My Documents\workspace\ppa-gui\target\classes, -p, com.acxiom.dnb.ppa.ws.dao, http://localhost:8080/ppa-web_service/ConnectionDAO?wsdl]
[ERROR] org.codehaus.mojo.jaxws.MainWsImportMojo#execute() caused a linkage error (java.lang.NoClassDefFoundError). Check the realms:

NOTE:
Plugin realm is: /plugins/org.codehaus.mojo:jaxws-maven-plugin:1.10@48/thread:main
Container realm is: plexus.core

Realm ID: /plugins/org.codehaus.mojo:jaxws-maven-plugin:1.10@48/thread:main
urls[0] = file:/C:/Documents%20and%20Settings/sbrann/.m2/repository/org/codehaus/mojo/jaxws-maven-plugin/1.10/jaxws-maven-plugin-1.10.jar
urls[1] = file:/C:/Documents%20and%20Settings/sbrann/.m2/repository/com/sun/xml/ws/jaxws-tools/2.1.3/jaxws-tools-2.1.3.jar
urls[2] = file:/C:/Documents%20and%20Settings/sbrann/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
urls[3] = file:/C:/Documents%20and%20Settings/sbrann/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar

Realm ID: plexus.core
urls[0] = file:/C:/eclipse3.4/eclipse/configuration/org.eclipse.osgi/bundles/636/1/.cp/org.maven.ide.eclipse.cliresolver.jar
urls[1] = file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/aspectjrt-1.5.3.jar
urls[2] = file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/commons-cli-1.0.jar
urls[3] = file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/doxia-sink-api-1.0-alpha-9.jar
urls[4] = file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/jsch-0.1.27.jar
urls[5] = file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/jtidy-4aug2000r7-dev.jar
urls[6] = file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/maven-artifact-3.0-SNAPSHOT.jar
urls[7] = file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/maven-core-2.1-SNAPSHOT.jar
urls[8] = file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/maven-embedder-2.1-SNAPSHOT.jar
urls[9] = file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/maven-lifecycle-2.1-SNAPSHOT.jar
urls[10] = file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/maven-model-2.1-SNAPSHOT.jar
urls[11] = file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/maven-plugin-api-2.1-SNAPSHOT.jar
urls[12] = file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/maven-profile-2.1-SNAPSHOT.jar
urls[13] = file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/maven-project-2.1-SNAPSHOT.jar
urls[14] = file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/maven-reporting-api-2.1-SNAPSHOT.jar
urls[15] = file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/maven-toolchain-2.1-SNAPSHOT.jar
urls[16] = file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/maven-workspace-2.1-SNAPSHOT.jar
urls[17] = file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/plexus-container-default-1.0-alpha-44.jar
urls[18] = file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/plexus-interactivity-api-1.0-alpha-6.jar
urls[19] = file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/plexus-interpolation-1.0-SNAPSHOT.jar
urls[20] = file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/plexus-utils-1.5.1.jar
urls[21] = file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/wagon-file-1.0-beta-2.jar
urls[22] = file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/wagon-http-lightweight-1.0-beta-2.jar
urls[23] = file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/wagon-http-shared-1.0-beta-2.jar
urls[24] = file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/wagon-provider-api-1.0-beta-2.jar
urls[25] = file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/wagon-ssh-1.0-beta-2.jar
urls[26] = file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/wagon-ssh-common-1.0-beta-2.jar
urls[27] = file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/wagon-ssh-external-1.0-beta-2.jar

java.lang.NoClassDefFoundError: com/sun/tools/xjc/api/util/ToolsJarNotFoundException
at org.codehaus.mojo.jaxws.WsImportMojo.wsImport(WsImportMojo.java:273)
at org.codehaus.mojo.jaxws.WsImportMojo.processWsdlViaUrls(WsImportMojo.java:260)
at org.codehaus.mojo.jaxws.WsImportMojo.execute(WsImportMojo.java:189)
at org.codehaus.mojo.jaxws.MainWsImportMojo.execute(MainWsImportMojo.java:15)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:579)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:498)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject(DefaultLifecycleExecutor.java:265)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:191)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149)
at org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223)
at org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:304)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)
at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedder.java:904)
at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(MavenEmbedder.java:304)
at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:63)
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:585)
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:408)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:351)
at org.codehaus.classworlds.Launcher.main(Launcher.java:31)
---------------------------------------------------
constituent[0]: file:/C:/eclipse3.4/eclipse/configuration/org.eclipse.osgi/bundles/636/1/.cp/org.maven.ide.eclipse.cliresolver.jar
constituent[1]: file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/aspectjrt-1.5.3.jar
constituent[2]: file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/commons-cli-1.0.jar
constituent[3]: file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/doxia-sink-api-1.0-alpha-9.jar
constituent[4]: file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/jsch-0.1.27.jar
constituent[5]: file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/jtidy-4aug2000r7-dev.jar
constituent[6]: file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/maven-artifact-3.0-SNAPSHOT.jar
constituent[7]: file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/maven-core-2.1-SNAPSHOT.jar
constituent[8]: file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/maven-embedder-2.1-SNAPSHOT.jar
constituent[9]: file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/maven-lifecycle-2.1-SNAPSHOT.jar
constituent[10]: file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/maven-model-2.1-SNAPSHOT.jar
constituent[11]: file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/maven-plugin-api-2.1-SNAPSHOT.jar
constituent[12]: file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/maven-profile-2.1-SNAPSHOT.jar
constituent[13]: file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/maven-project-2.1-SNAPSHOT.jar
constituent[14]: file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/maven-reporting-api-2.1-SNAPSHOT.jar
constituent[15]: file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/maven-toolchain-2.1-SNAPSHOT.jar
constituent[16]: file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/maven-workspace-2.1-SNAPSHOT.jar
constituent[17]: file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/plexus-container-default-1.0-alpha-44.jar
constituent[18]: file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/plexus-interactivity-api-1.0-alpha-6.jar
constituent[19]: file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/plexus-interpolation-1.0-SNAPSHOT.jar
constituent[20]: file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/plexus-utils-1.5.1.jar
constituent[21]: file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/wagon-file-1.0-beta-2.jar
constituent[22]: file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/wagon-http-lightweight-1.0-beta-2.jar
constituent[23]: file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/wagon-http-shared-1.0-beta-2.jar
constituent[24]: file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/wagon-provider-api-1.0-beta-2.jar
constituent[25]: file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/wagon-ssh-1.0-beta-2.jar
constituent[26]: file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/wagon-ssh-common-1.0-beta-2.jar
constituent[27]: file:/C:/eclipse3.4/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/wagon-ssh-external-1.0-beta-2.jar
---------------------------------------------------
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/xjc/api/util/ToolsJarNotFoundException
at org.codehaus.mojo.jaxws.WsImportMojo.wsImport(WsImportMojo.java:273)
at org.codehaus.mojo.jaxws.WsImportMojo.processWsdlViaUrls(WsImportMojo.java:260)
at org.codehaus.mojo.jaxws.WsImportMojo.execute(WsImportMojo.java:189)
at org.codehaus.mojo.jaxws.MainWsImportMojo.execute(MainWsImportMojo.java:15)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:579)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:498)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject(DefaultLifecycleExecutor.java:265)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:191)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149)
at org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223)
at org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:304)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)
at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedder.java:904)
at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(MavenEmbedder.java:304)
at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:63)
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:585)
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:408)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:351)
at org.codehaus.classworlds.Launcher.main(Launcher.java:31)

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
pdeville
Offline
Joined: 2005-09-06

I have the same problem. If you found a solution I will be interssted.

However With glassfish I have a workarround that constists in running $GLASSFISH_HOME/bin/wsimport manually to generate the class file.

sushyad
Offline
Joined: 2006-11-09

I resolved a similar error by adding this right after the executions closing tag in my pom.xml:


javax.xml
webservices-api
1.4


com.sun.xml.bind
jaxb-xjc
2.1.12


com.sun.xml.ws
jaxws-rt
2.1.4
test