You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Mike Dalrymple (JIRA)" <ji...@apache.org> on 2010/02/03 23:33:28 UTC

[jira] Commented: (CXF-2293) cxf-codegen-plugin fails with 'Mojo Execution Failed'

    [ https://issues.apache.org/jira/browse/CXF-2293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12829301#action_12829301 ] 

Mike Dalrymple commented on CXF-2293:
-------------------------------------

I've been able to reproduce this problem consistently using the Amazon CXF project found here: http://code.google.com/p/amazon-cxf/source/checkout

The stack trace is pretty much identical the one listed above so I'll refrain from duplicating it.  My environment details are:

eclipse.buildId=M20090917-0800
java.version=1.6.0_14
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os linux -ws gtk -arch x86 -product org.eclipse.epp.package.jee.product

This is running under Eclipse 3.5.1.  Please let me know if there's any additional information that would help with debugging.

> cxf-codegen-plugin fails with 'Mojo Execution Failed'
> -----------------------------------------------------
>
>                 Key: CXF-2293
>                 URL: https://issues.apache.org/jira/browse/CXF-2293
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>         Environment: Windows XP / Eclipse 3.4.2 / m2eclipse 0.9.9
>            Reporter: Roger Cracel
>             Fix For: Invalid
>
>
> I can't seem to create a new project using maven for the wsdl first osgi archetype.
> Steps to reproduce the problem:
> in Eclipse, use m2eclipse pluging to create a new project using the servicemix-osgi-cxf-wsdl-first-archetype.
> Watch the console for the error message :
> org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'org.apache.cxf:cxf-codegen-plugin:2.2.0.0-fuse:wsdl2java': Mojo execution failed.
> This appears to be a classpath resolution problem, since the stack trace seems to indicate org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl cannot be found.
> The exception stack trace:
> org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'org.apache.cxf:cxf-codegen-plugin:2.2.0.0-fuse:wsdl2java': Mojo execution failed.
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:505)
> 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.maven.ide.eclipse.jdt.internal.JavaProjectConfigurator$1.execute(JavaProjectConfigurator.java:313)
> at org.maven.ide.eclipse.internal.project.MavenProjectManagerImpl.execute(MavenProjectManagerImpl.java:986)
> at org.maven.ide.eclipse.project.MavenProjectManager.execute(MavenProjectManager.java:160)
> at org.maven.ide.eclipse.jdt.internal.JavaProjectConfigurator.generateSourceEntries(JavaProjectConfigurator.java:307)
> at org.maven.ide.eclipse.jdt.internal.JavaProjectConfigurator.collectSourceEntries(JavaProjectConfigurator.java:366)
> at org.maven.ide.eclipse.jdt.internal.JavaProjectConfigurator.updateSourceFolders(JavaProjectConfigurator.java:112)
> at org.maven.ide.eclipse.jdt.internal.JavaProjectConfigurator.configure(JavaProjectConfigurator.java:99)
> at org.maven.ide.eclipse.internal.project.DefaultLifecycleMapping.configure(DefaultLifecycleMapping.java:60)
> at org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:347)
> at org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:327)
> at org.maven.ide.eclipse.actions.UpdateSourcesAction$1.runInWorkspace(UpdateSourcesAction.java:82)
> at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> Caused by: org.apache.maven.plugin.PluginExecutionException: Mojo execution failed.
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:601)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:498)
> ... 22 more
> Caused by: org.apache.maven.plugin.MojoExecutionException: javax.xml.datatype.DatatypeConfigurationException: Provider org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl not found
> at org.apache.cxf.maven_plugin.WSDL2JavaMojo.processWsdl(WSDL2JavaMojo.java:363)
> at org.apache.cxf.maven_plugin.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:257)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:579)
> ... 23 more
> Caused by: java.lang.Error: javax.xml.datatype.DatatypeConfigurationException: Provider org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl not found
> at com.sun.xml.bind.DatatypeConverterImpl.<clinit>(DatatypeConverterImpl.java:785)
> at com.sun.xml.bind.v2.runtime.JAXBContextImpl$3.run(JAXBContextImpl.java:266)
> at com.sun.xml.bind.v2.runtime.JAXBContextImpl$3.run(JAXBContextImpl.java:265)
> at java.security.AccessController.doPrivileged(Native Method)
> at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:264)
> at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
> at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:117)
> at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:188)
> 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 javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:128)
> at javax.xml.bind.ContextFinder.find(ContextFinder.java:277)
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244)
> at org.apache.cxf.tools.wsdlto.core.PluginLoader.init(PluginLoader.java:82)
> at org.apache.cxf.tools.wsdlto.core.PluginLoader.<init>(PluginLoader.java:72)
> at org.apache.cxf.tools.wsdlto.core.PluginLoader.getInstance(PluginLoader.java:121)
> at org.apache.cxf.tools.wsdlto.WSDLToJava.<init>(WSDLToJava.java:45)
> at org.apache.cxf.maven_plugin.WSDL2JavaMojo.processWsdl(WSDL2JavaMojo.java:360)
> ... 25 more
> Caused by: javax.xml.datatype.DatatypeConfigurationException: Provider org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl not found
> at javax.xml.datatype.DatatypeFactory.newInstance(DatatypeFactory.java:137)
> at com.sun.xml.bind.DatatypeConverterImpl.<clinit>(DatatypeConverterImpl.java:783)
> ... 46 more
> Caused by: java.lang.ClassNotFoundException: org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl
> 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 javax.xml.datatype.FactoryFinder.getProviderClass(FactoryFinder.java:115)
> at javax.xml.datatype.FactoryFinder.newInstance(FactoryFinder.java:146)
> at javax.xml.datatype.FactoryFinder.findJarServiceProvider(FactoryFinder.java:298)
> at javax.xml.datatype.FactoryFinder.find(FactoryFinder.java:223)
> at javax.xml.datatype.DatatypeFactory.newInstance(DatatypeFactory.java:131)
> ... 47 more
> Environment:
> Eclipse Platform Version: 3.4.2
> Build id: M20090211-1700

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.