Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341152 - From XML cache interceptor and query redirector metadata don't support package specification
Summary: From XML cache interceptor and query redirector metadata don't support packag...
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-28 14:51 EDT by Guy Pelletier CLA
Modified: 2022-06-09 10:19 EDT (History)
1 user (show)

See Also:


Attachments
Proposed changes (25.54 KB, patch)
2011-03-28 14:59 EDT, Guy Pelletier CLA
no flags Details | Diff
Proposed changes (26.55 KB, patch)
2011-03-28 15:20 EDT, Guy Pelletier CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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