Uploaded image for project: 'Xerces2-J'
  1. Xerces2-J
  2. XERCESJ-1509

There is a dependency on an exception from an eclipse plugin which can be thrown during schema creation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 2.11.0
    • None
    • None
    • Fedora 11, JDK 1.6.0_23

    Description

      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)

      Attachments

        Activity

          People

            Unassigned Unassigned
            jesperp Jesper Peterson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: