Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 341152

Summary: From XML cache interceptor and query redirector metadata don't support package specification
Product: z_Archived Reporter: Guy Pelletier <guy.pelletier>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: eclipselink.orm-inbox
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed changes
none
Proposed changes none

Description Guy Pelletier CLA 2011-03-28 14:51:56 EDT
The following XML specification:

<package>my.package</package>
...
<cache-interceptor class="CacheAuditor"/>

would result in the the following exception:

Internal Exception: Exception [EclipseLink-7198] (Eclipse Persistence Services - 2.3.0.qualifier): org.eclipse.persistence.exceptions.ValidationException
Exception Description: Class: [CacheAuditor] was not found while converting from class names to classes.
Internal Exception: java.lang.ClassNotFoundException: CacheAuditor
	at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:368)

Same holds true for default query redirectors metadata.

Workaround is to specify the fully qualified class name.
Comment 1 Guy Pelletier CLA 2011-03-28 14:59:05 EDT
Created attachment 192034 [details]
Proposed changes
Comment 2 Guy Pelletier CLA 2011-03-28 15:20:32 EDT
Created attachment 192037 [details]
Proposed changes
Comment 3 Guy Pelletier CLA 2011-04-04 08:53:23 EDT
Changes have been submitted.

Verified by: Andrei Ilitchev

Test: N/A. Metadata processing error. With fix in place, exception goes away and all tests pass (full regression test suite and extended jpa test suite).
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:14:01 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:19:03 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink