xerces-j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesper Peterson (JIRA)" <xerces-j-...@xml.apache.org>
Subject [jira] [Created] (XERCESJ-1509) There is a dependency on an exception from an eclipse plugin which can be thrown during schema creation
Date Wed, 18 May 2011 05:24:47 GMT
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


Mime
View raw message