Bug 293614 - JPA 2.0 Cacheable Test Suite Need To Be Enabled For JPA2.0 Servers
Summary: JPA 2.0 Cacheable Test Suite Need To Be Enabled For JPA2.0 Servers
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: Kevin Yuan CLA
QA Contact:
URL:
Whiteboard:
Keywords: test
Depends on:
Blocks:
 
Reported: 2009-10-28 15:46 EDT by Kevin Yuan CLA
Modified: 2022-06-09 10:05 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Yuan CLA 2009-10-28 15:46:15 EDT
When add "shared-cache-mode" setting in persistence.xml in order to test cache usage, the deployment failed with the following exceptions:

 [wldeploy] weblogic.deployment.EnvironmentException: Error loading the persistence descriptor META-
INF/persistence.xml from the module eclipselink-cacheable-model_ejb.jar.  See the following stack tr
ace for nested errors: weblogic.descriptor.DescriptorException: VALIDATION PROBLEMS WERE FOUND
 [wldeploy]   C:\EclipseLink\wls10.3.1\wlserver_10.3\samples\domains\eclipselink\servers\myserver\tm
p\_WL_user\eclipselink-cacheable-model\xs42g4\eclipselink-cacheable-model_ejb.jar\META-INF\persisten
ce.xml:8:11:8:11: problem: cvc-complex-type.2.4a: Expected element 'properties@http://java.sun.com/x
ml/ns/persistence' instead of 'shared-cache-mode@http://java.sun.com/xml/ns/persistence' here in ele
ment persistence-unit@http://java.sun.com/xml/ns/persistence:<C:\EclipseLink\wls10.3.1\wlserver_10.3
\samples\domains\eclipselink\servers\myserver\tmp\_WL_user\eclipselink-cacheable-model\xs42g4\eclips
elink-cacheable-model_ejb.jar/META-INF/persistence.xml:8:11>
 [wldeploy]     at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactor
y.java:241)

Evevn add javax.persistence_2.0_preview.jar in the very beginning of the classpath, still got the same validation error, and not sure how did WLS got it's XSD to validate persistence.xml.

Based on discussion with Jame Sutherland, we should run this test suite on the server that support JPA2.0. So will defer the migration for this suite.
Comment 1 Kevin Yuan CLA 2010-04-16 16:23:45 EDT
Passed on Glassfish v3, which is only one supported JPA2.0 application server.

Code reviewed by Yiping Zhao
Checked in trunk, revision: 7008
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:05:31 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink