You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Jesper Peterson (JIRA)" <xe...@xml.apache.org> on 2011/05/18 07:24:47 UTC
[jira] [Created] (XERCESJ-1509) There is a dependency on an
exception from an eclipse plugin which can be thrown during schema creation
There is a dependency on an exception from an eclipse plugin which can be thrown during schema creation
-------------------------------------------------------------------------------------------------------
Key: XERCESJ-1509
URL: https://issues.apache.org/jira/browse/XERCESJ-1509
Project: Xerces2-J
Issue Type: Bug
Components: JAXP (javax.xml.validation)
Affects Versions: 2.11.0
Environment: Fedora 11, JDK 1.6.0_23
Reporter: Jesper Peterson
During schema creation the exception below occurred. I would say the dependency on eclipse is not intuitive.
The same scenario works fine with xerces 2.10.0
newSchema was called via:
SchemaFactory sf = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
sf.setResourceResolver(new ClasspathSchemaResolver());
schema = sf.newSchema(new StreamSource(SysConfigObjectFactory.class.getResourceAsStream("/resources/xsd/system-config.xsd")));
java.lang.NoClassDefFoundError: org/eclipse/wst/xml/xpath2/processor/XPathParserException
at org.apache.xerces.impl.xs.traversers.XSDHandler.createTraversers(Unknown Source)
at org.apache.xerces.impl.xs.traversers.XSDHandler.prepareForTraverse(Unknown Source)
at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source)
at org.apache.xerces.jaxp.validation.BaseSchemaFactory.newSchema(Unknown Source)
at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:594)
at com.utiba.delirium.admin.sysconfig.model.custom.SysConfigObjectFactory.getSchema(SysConfigObjectFactory.java:290)
at com.utiba.delirium.admin.sysconfig.model.custom.SysConfigObjectFactory.toXML(SysConfigObjectFactory.java:203)
at com.utiba.delirium.admin.coreconfig.ConfigurationInstaller.doConfigSnapshot(ConfigurationInstaller.java:304)
at com.utiba.delirium.admin.coreconfig.ConfigurationInstaller.configureSystem(ConfigurationInstaller.java:137)
at com.utiba.delirium.admin.coreconfig.ConfigurationInstaller.init(ConfigurationInstaller.java:103)
at com.utiba.delirium.Start.initPackages(Start.java:105)
at com.utiba.ga.misc.Start.<init>(Start.java:92)
at com.utiba.delirium.Start.<init>(Start.java:37)
at com.utiba.delirium.Start.main(Start.java:28)
Caused by: java.lang.ClassNotFoundException: org.eclipse.wst.xml.xpath2.processor.XPathParserException
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:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org
[jira] [Resolved] (XERCESJ-1509) There is a dependency on an
exception from an eclipse plugin which can be thrown during schema creation
Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XERCESJ-1509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Glavassevich resolved XERCESJ-1509.
-------------------------------------------
Resolution: Not A Problem
Please use the j-users@xerces.apache.org mailing list to ask for help in troubleshooting a problem. JIRA is for actual bug reports.
There are two distributions of Xerces 2.11.0, the stable one and a beta including XML Schema 1.1 support. You have downloaded the latter which has a dependency on Eclipse Psychopath. The jar you need is included in the same bundle as xercesImpl.jar and is documented.
> There is a dependency on an exception from an eclipse plugin which can be thrown during schema creation
> -------------------------------------------------------------------------------------------------------
>
> Key: XERCESJ-1509
> URL: https://issues.apache.org/jira/browse/XERCESJ-1509
> Project: Xerces2-J
> Issue Type: Bug
> Components: JAXP (javax.xml.validation)
> Affects Versions: 2.11.0
> Environment: Fedora 11, JDK 1.6.0_23
> Reporter: Jesper Peterson
>
> During schema creation the exception below occurred. I would say the dependency on eclipse is not intuitive.
> The same scenario works fine with xerces 2.10.0
> newSchema was called via:
> SchemaFactory sf = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
> sf.setResourceResolver(new ClasspathSchemaResolver());
> schema = sf.newSchema(new StreamSource(SysConfigObjectFactory.class.getResourceAsStream("/resources/xsd/system-config.xsd")));
>
> java.lang.NoClassDefFoundError: org/eclipse/wst/xml/xpath2/processor/XPathParserException
> at org.apache.xerces.impl.xs.traversers.XSDHandler.createTraversers(Unknown Source)
> at org.apache.xerces.impl.xs.traversers.XSDHandler.prepareForTraverse(Unknown Source)
> at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source)
> at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source)
> at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source)
> at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source)
> at org.apache.xerces.jaxp.validation.BaseSchemaFactory.newSchema(Unknown Source)
> at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:594)
> at com.utiba.delirium.admin.sysconfig.model.custom.SysConfigObjectFactory.getSchema(SysConfigObjectFactory.java:290)
> at com.utiba.delirium.admin.sysconfig.model.custom.SysConfigObjectFactory.toXML(SysConfigObjectFactory.java:203)
> at com.utiba.delirium.admin.coreconfig.ConfigurationInstaller.doConfigSnapshot(ConfigurationInstaller.java:304)
> at com.utiba.delirium.admin.coreconfig.ConfigurationInstaller.configureSystem(ConfigurationInstaller.java:137)
> at com.utiba.delirium.admin.coreconfig.ConfigurationInstaller.init(ConfigurationInstaller.java:103)
> at com.utiba.delirium.Start.initPackages(Start.java:105)
> at com.utiba.ga.misc.Start.<init>(Start.java:92)
> at com.utiba.delirium.Start.<init>(Start.java:37)
> at com.utiba.delirium.Start.main(Start.java:28)
> Caused by: java.lang.ClassNotFoundException: org.eclipse.wst.xml.xpath2.processor.XPathParserException
> 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:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org