Community
Participate
Working Groups
The tests started failing from 7152 revision with following error message during deployment, the last good revision is 7142. From the changes made between 7142 and 7152, it seems that the changes made by Guy on May 4th as fix of 309373 could be suspicious. The error message in deployment is: [exec] com.sun.enterprise.admin.cli.CommandException: remote failure: Exception while preparing the app : org.glassfish.deployment.common.DeploymentException: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.1.0.qualifier): org.eclipse.persistence.exceptions.EntityManagerSetupException [exec] Exception Description: Predeployment of PersistenceUnit [JPAADVProperties] failed. [exec] Internal Exception: [exec] Exception Description: Several [13] SessionLoaderExceptions were thrown: [exec] *** [exec] Exception [EclipseLink-9006] (Eclipse Persistence Services - 2.1.0.qualifier): org.eclipse.persistence.exceptions.SessionLoaderException [exec] Exception Description: A parsing warning was thrown while parsing the XML file. It occurs at line 2 and column 159 in the XML document. [exec] Internal Exception: org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'file://xsd/eclipse_persistence_sessions_1_0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. [exec] *** [exec] org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'sessions'. [exec] *** [exec] Exception [EclipseLink-9006] (Eclipse Persistence Services - 2.1.0.qualifier): org.eclipse.persistence.exceptions.SessionLoaderException [exec] Exception Description: A parsing warning was thrown while parsing the XML file. It occurs at line 2 and column 159 in the XML document. [exec] Internal Exception: org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'file://xsd/eclipse_persistence_sessions_1_0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. [exec] *** [exec] Exception [EclipseLink-9006] (Eclipse Persistence Services - 2.1.0.qualifier): org.eclipse.persistence.exceptions.SessionLoaderException [exec] Exception Description: A parsing warning was thrown while parsing the XML file. It occurs at line 3 and column 39 in the XML document. [exec] Internal Exception: org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'file://xsd/eclipse_persistence_sessions_1_0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. [exec] *** [exec] Exception [EclipseLink-9006] (Eclipse Persistence Services - 2.1.0.qualifier): org.eclipse.persistence.exceptions.SessionLoaderException [exec] Exception Description: A parsing warning was thrown while parsing the XML file. It occurs at line 3 and column 39 in the XML document. [exec] Internal Exception: org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'file://xsd/eclipse_persistence_sessions_1_0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. [exec] *** [exec] org.xml.sax.SAXParseException: cvc-elt.4.2: Cannot resolve 'server-session' to a type definition for element 'session'. [exec] *** [exec] Exception [EclipseLink-9006] (Eclipse Persistence Services - 2.1.0.qualifier): org.eclipse.persistence.exceptions.SessionLoaderException [exec] Exception Description: A parsing warning was thrown while parsing the XML file. It occurs at line 4 and column 13 in the XML document. [exec] Internal Exception: org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'file://xsd/eclipse_persistence_sessions_1_0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. Note: it's strange that same tests passed on GlassFish V2.
actually it's not related to Guy's changes, it's related to Kevin's changes made in GlassFish.xml as revision 7151 on May 4th.
Glassfish V3 can only EclipseLink bundle jars instead of eclipselink.jar. The issue is the bundle jar (org.eclipse.persistence.core.jar) missed the xsd export in "Export-Package" part, so all xsd couldn't be loaded during xml validation. Fixed this by adding xsd export in \\trunk\foundation\org.eclipse.persistence.core\org.eclipse.persistence.core.bnd file. Change reviewed by Eric Gwin, and tested on Glassfish-v3. Checked in trunk, revision #: 7211
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink