9 Replies Latest reply on Mar 26, 2006 9:15 AM by Bill Burke

    persistence.xml

    Udo Krass Newbie

      Hi,

      i use the latest CVS Jboss-Release (5.0 alpha).
      When I deploy my app then i get following exception:

      Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'persistence-unit'.
       at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
       at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
       at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
       at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
       at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
       at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
       at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)

      The XML-file is validated wrong.
      I think this is a bug, because if i compare my persistence.xml-file with the one in the specs then my persistence.xml file is right.
      My App is deployed properly in the stable 4.X AS!
      Am i right?