Most of the time if I ran into trouble with xml (jkd1.4 or jkd5), I was able to 
fix it with adding a new xalan and/or xerces jar to the lib/endorsed folder of 
java.

Visit the faq of xalan[1] for more details

 

- Robert

 

[1] http://xml.apache.org/xalan-j/faq.html

 
> Date: Tue, 14 Sep 2010 10:05:11 -0400
> From: [email protected]
> To: [email protected]
> Subject: [mojo-user] Problem with xmlbeans plugin
> 
> I've having troubles compiling a project which uses xmlbeans plugin to
> generate sources from xsd. Does anyone have any idea what might be
> happening here?
> 
> The project works successfully on Ubuntu 10.4 using Maven 2.2.1 Java 1.5
> 
> However on CentOS 5 using Maven 2.2.1 Java 1.6 I get the following
> error when I run with 'maven -e generate-sources'
> 
> [INFO] XmlBeans compile failed:
> xml ErrorLoading schema file
> /var/lib/hudson/jobs/cbscore/workspace/cbscore/src/main/xsd/MergedBankSvcSchema.xsd
> 
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: XmlBeans compile 
> failed:
> xml ErrorLoading schema file
> /var/lib/hudson/jobs/cbscore/workspace/cbscore/src/main/xsd/MergedBankSvcSchema.xsd
> 
> at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
> at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> 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 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.codehaus.mojo.xmlbeans.XmlBeansException: XmlBeans
> compile failed:
> xml ErrorLoading schema file
> /var/lib/hudson/jobs/cbscore/workspace/cbscore/src/main/xsd/MergedBankSvcSchema.xsd
> 
> at 
> org.codehaus.mojo.xmlbeans.AbstractXmlBeansPlugin.execute(AbstractXmlBeansPlugin.java:292)
> at 
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> ... 17 more
> 
> 
> -- 
> Greg Akins
> 
> http://insomnia-consulting.org
> http://www.pghcodingdojo.org
> http://pittjug.dev.java.net
> http://twitter.com/akinsgre
> http://www.linkedin.com/in/akinsgre
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> 
> http://xircles.codehaus.org/manage_email
> 
> 
                                          

Reply via email to