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 19:57:04 GMT

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

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

I know this defect is closed but if someone come back with the same issue on assumption that
if we use the latest version of xercess it might not give the issue. so I thought for the
benfit of the community . when I used latest version like 2.11.0 for that version of xerces
it was giving me error and hence looks like that it only work well with the version provided
by Mike

Thanks for the help I was able to solve it using 
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.9.1</version>
</dependency>



> 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