6 Replies Latest reply on Jul 19, 2010 6:41 AM by Thomas Kriechbaum

    Failed to create schema loader?

    Laird Nelson Apprentice

      JBoss 6 M3.

       

      I deploy an .ear file with a META-INF/application.xml that adheres to the version 6 schema.

       

      JBoss pukes all over the place with a stack like this.  Basically it cannot parse what looks to my eyes like a valid schema.

       

      Any ideas?

       

      Best,

      Laird

       

      Caused by: org.jboss.xb.binding.JBossXBException:  Failed to parse source: Failed to parse schema for nsURI=http://java.sun.com/xml/ns/javaee, baseURI=null,  schemaLocation=http://java.sun.com/xml/ns/javaee/application_6.xsd

              at  org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
              at  org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:183)
              at  org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:161)
              at  org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:162)
              ... 26 more
      Caused by:  org.jboss.xb.binding.JBossXBRuntimeException: Failed to parse schema for  nsURI=http://java.sun.com/xml/ns/javaee, baseURI=null,  schemaLocation=http://java.sun.com/xml/ns/javaee/application_6.xsd

              at  org.jboss.xb.binding.resolver.AbstractMutableSchemaResolver.resolve(AbstractMutableSchemaResolver.java:347)
              at  org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:279)
              at  org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:401)

              at  com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
              at  com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.startElement(XIncludeHandler.java:908)
              at  com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400)

              at  com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:626)

              at  com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3095)

              at  com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:922)

              at  com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
              at  com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
              at  com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)

              at  com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
              at  com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
              at  com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
              at  com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
              at  com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
              at  org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:199)
              ... 29 more
      Caused by: java.lang.IllegalStateException: Failed to  create schema loader: java.lang.ClassNotFoundException  org.apache.xerces.dom.DOMXSImplementationSourceImpl

              at  org.jboss.xb.binding.Util$2.run(Util.java:530)
              at  java.security.AccessController.doPrivileged(Native Method)
              at  org.jboss.xb.binding.Util.getXSImplementation(Util.java:501)
              at  org.jboss.xb.binding.Util.loadSchema(Util.java:381)
              at  org.jboss.xb.binding.sunday.unmarshalling.XsdBinder.bind(XsdBinder.java:177)
              at  org.jboss.xb.binding.sunday.unmarshalling.XsdBinder.bind(XsdBinder.java:148)
              at  org.jboss.xb.binding.resolver.AbstractMutableSchemaResolver.resolve(AbstractMutableSchemaResolver.java:339)
              ... 46 more