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

Bug 323711

Summary: ArchiveFactoryImpl does not recognize "bunderesource" a JAR
Product: z_Archived Reporter: Shaun Smith <shaun.smith>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P2 CC: firedrago, hula.bula, sanjeeb.sahoo, tom.ware
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
URL: http://www.eclipse.org/forums/index.php?t=msg&goto=554770&S=76a25fede803522496be81994768eda5
Whiteboard: osgi
Bug Depends on:    
Bug Blocks: 323715    

Description Shaun Smith CLA 2010-08-26 10:20:02 EDT
The root cause seems to be that ArchiveFactoryImpl does not recoginize "bundleresource" as a jar protocol and so returns a URLArchive.  Searching for non-listed classes is done by calling getEntries() on the archive which in the case of URLArchive returns Collections.EMPTY_LIST.iterator() so no classes are examined.

CompositeClassLoader.getEntries() should also be examined to ensure it will return a composite Iterator that aggregates the results of getEntries() from the component ClassLoaders.
Comment 1 Shaun Smith CLA 2010-09-02 11:12:20 EDT
Original summary: "exclude-unlisted-classes=false does not work in OSGi".  Bug renamed to focus on root cause.
Comment 2 Tom Ware CLA 2010-11-03 15:00:34 EDT

*** This bug has been marked as a duplicate of bug 329381 ***
Comment 3 Clemens Schneider CLA 2011-02-26 15:44:39 EST
I still can reproduce the issue with EclipseLink 2.2.0.v20110202-r8913. This bug should be re-openend.
Comment 4 Shaun Smith CLA 2011-02-28 13:20:07 EST
The bug has been fixed in the context of Gemini JPA OSGi support, not EclipseLink OSGi.  EclipseLink's pre-OSGi Enterprise Spec JPA support is deprecated in 2.3 and we recommend you move to Gemini JPA for OSGi spec compliant support.
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:31:09 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink