aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Balazs Zsoldos (JIRA)" <>
Subject [jira] [Created] (ARIES-704) BundleToClassLoaderAdapter does not implement loadClass(String, boolean)
Date Wed, 06 Jul 2011 13:49:16 GMT
BundleToClassLoaderAdapter does not implement loadClass(String, boolean)

                 Key: ARIES-704
             Project: Aries
          Issue Type: Bug
          Components: Util
         Environment: Glassfish 3.1, aries-eclipselink-adapter, JDK 1.6.0_26
            Reporter: Balazs Zsoldos

When there is a loadClass(String) to a classloader it simply calls loadClass(String, boolean).
The second function checks if a class is available in the parent classloader by checking loadClass(String,
boolean). If BundleToClassLoader adapter is used for a ClassLoader as the parent, the loadClass(String)
will never be called.

Here is a sample stacktrace ( line numbers from JDK 1.6.0_26):

at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(
	at org.apache.felix.framework.ModuleImpl.access$400(
	at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(
	at java.lang.ClassLoader.loadClass(
	at org.apache.aries.jpa.eclipselink.adapter.Activator$PersistenceUnitProxyWithTargetServer$1.findClass(
	at java.lang.ClassLoader.loadClass(
	at java.lang.ClassLoader.loadClass(
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(
	at org.eclipse.persistence.descriptors.ClassDescriptor.convertClassNamesToClasses(

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message