Community
Participate
Working Groups
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.
Passed on Glassfish v3, which is only one supported JPA2.0 application server. Code reviewed by Yiping Zhao Checked in trunk, revision: 7008
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink