cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sanjay Gautam (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-2293) cxf-codegen-plugin fails with 'Mojo Execution Failed'
Date Thu, 23 Jul 2015 20:12:04 GMT

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

Sanjay Gautam commented on CXF-2293:
------------------------------------

Sorry for adding more details.  I had following eclipse 

Version: Kepler Service Release 2
Build id: 20140224-0627

cxf-code-gen version 3.1.1 

The main issue which I figured out was that if you run the eclipse in Java 1.6  regardless
of what ever JDK project inside the eclipse is using you will get this error
but if you force the eclipse to run in JDK 1.7 or above forcing to start using jdk1.7 path
by -vm argument ..then the error will go away . 

I hope this option also helps people .

thanks
Sanjay Gautam 



> 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 was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message