Bug 312285 - all tests in jpa jpaadvancedproperties model failed on GlassFish V3 only in trunk
Summary: all tests in jpa jpaadvancedproperties model failed on GlassFish V3 only in t...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords: test
Depends on:
Blocks:
 
Reported: 2010-05-10 11:51 EDT by Yiping Zhao CLA
Modified: 2022-06-09 10:22 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yiping Zhao CLA 2010-05-10 11:51:50 EDT
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.
Comment 1 Yiping Zhao CLA 2010-05-10 15:54:05 EDT
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.
Comment 2 Kevin Yuan CLA 2010-05-12 14:47:47 EDT
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
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:22:10 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink