cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Karlsen <davidkarl...@gmail.com>
Subject java.lang.ClassNotFoundException: org.w3c.dom.ElementTraversal during wsdl2java generation - any clues?
Date Thu, 18 Aug 2011 14:07:25 GMT
With 2.4.2 and the maven plugin doing wsdl2java I get:

*15:57:55*  message : Failed to execute goal
org.apache.cxf:cxf-codegen-plugin:2.4.2:wsdl2java (generate-sources)
on project pays-web-ws-pays: org/w3c/dom/ElementTraversal*15:57:55*
cause : org/w3c/dom/ElementTraversal*15:57:55*  Stack trace :
*15:57:55*  org.apache.maven.lifecycle.LifecycleExecutionException:
Failed to execute goal
org.apache.cxf:cxf-codegen-plugin:2.4.2:wsdl2java (generate-sources)
on project pays-web-ws-pays: org/w3c/dom/ElementTraversal*15:57:55*
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)*15:57:55*
 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)*15:57:55*
 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)*15:57:55*
 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)*15:57:55*
 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)*15:57:55*
 	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)*15:57:55*
 	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)*15:57:55*
 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)*15:57:55*
 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)*15:57:55*
 	at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)*15:57:55*
 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)*15:57:55*  	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)*15:57:55*
 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)*15:57:55*
 	at java.lang.reflect.Method.invoke(Method.java:597)*15:57:55*  	at
org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)*15:57:55*
 	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)*15:57:55*
 	at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158)*15:57:55*
 	at hudson.maven.Maven3Builder.call(Maven3Builder.java:121)*15:57:55*
 	at hudson.maven.Maven3Builder.call(Maven3Builder.java:73)*15:57:55*
	at hudson.remoting.UserRequest.perform(UserRequest.java:118)*15:57:55*
 	at hudson.remoting.UserRequest.perform(UserRequest.java:48)*15:57:55*
 	at hudson.remoting.Request$2.run(Request.java:287)*15:57:55*  	at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)*15:57:55*
 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)*15:57:55*
 	at java.util.concurrent.FutureTask.run(FutureTask.java:138)*15:57:55*
 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)*15:57:55*
 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)*15:57:55*
 	at java.lang.Thread.run(Thread.java:662)*15:57:55*  Caused by:
org.apache.maven.plugin.MojoExecutionException:
org/w3c/dom/ElementTraversal*15:57:55*  	at
org.apache.cxf.maven_plugin.WSDL2JavaMojo.callWsdl2Java(WSDL2JavaMojo.java:613)*15:57:55*
 	at org.apache.cxf.maven_plugin.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:436)*15:57:55*
 	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)*15:57:55*
 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)*15:57:55*
 	... 27 more*15:57:55*  Caused by: java.lang.NoClassDefFoundError:
org/w3c/dom/ElementTraversal*15:57:55*  	at
java.lang.ClassLoader.defineClass1(Native Method)*15:57:55*  	at
java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)*15:57:55*
	at java.lang.ClassLoader.defineClass(ClassLoader.java:615)*15:57:55*
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)*15:57:55*
 	at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)*15:57:55*
 	at java.net.URLClassLoader.access$000(URLClassLoader.java:58)*15:57:55*
 	at java.net.URLClassLoader$1.run(URLClassLoader.java:197)*15:57:55*
	at java.security.AccessController.doPrivileged(Native
Method)*15:57:55*  	at
java.net.URLClassLoader.findClass(URLClassLoader.java:190)*15:57:55*
	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(ClassRealm.java:386)*15:57:55*
 	at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42)*15:57:55*
 	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)*15:57:55*
 	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)*15:57:55*
 	at org.apache.xerces.parsers.AbstractDOMParser.startDocument(Unknown
Source)*15:57:55*  	at
org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown
Source)*15:57:55*  	at
org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown
Source)*15:57:55*  	at
org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing(Unknown
Source)*15:57:55*  	at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)*15:57:55*  	at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)*15:57:55*  	at
org.apache.xerces.parsers.XMLParser.parse(Unknown Source)*15:57:55*
	at org.apache.xerces.parsers.DOMParser.parse(Unknown
Source)*15:57:55*  	at
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown
Source)*15:57:55*  	at
javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124)*15:57:55*
 	at org.apache.cxf.tools.common.dom.ExtendedDocumentBuilder.parse(ExtendedDocumentBuilder.java:95)*15:57:55*
 	at org.apache.cxf.tools.common.toolspec.ToolSpec.<init>(ToolSpec.java:71)*15:57:55*
 	at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:86)*15:57:55*
 	at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113)*15:57:55*
 	at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86)*15:57:55*
 	at org.apache.cxf.maven_plugin.WSDL2JavaMojo.callWsdl2Java(WSDL2JavaMojo.java:610)*15:57:55*
 	... 30 more*15:57:55*  Caused by: java.lang.ClassNotFoundException:
org.w3c.dom.ElementTraversal*15:57:55*  	at
org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)*15:57:55*
 	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)*15:57:55*
 	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)*15:57:55*
 	... 59 more


Running on latest sun 1.6 jdk.
Any clues?

--
David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message