Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 323711 - ArchiveFactoryImpl does not recognize "bunderesource" a JAR
Summary: ArchiveFactoryImpl does not recognize "bunderesource" a JAR
Status: CLOSED DUPLICATE of bug 329381
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 normal with 3 votes (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL: http://www.eclipse.org/forums/index.p...
Whiteboard: osgi
Keywords:
Depends on:
Blocks: 323715
  Show dependency tree
 
Reported: 2010-08-26 10:20 EDT by Shaun Smith CLA
Modified: 2022-06-09 10:31 EDT (History)
4 users (show)

See Also:


Attachments

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