[ https://issues.apache.org/jira/browse/GERONIMO-5279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jarek Gawor resolved GERONIMO-5279. ----------------------------------- Assignee: Jarek Gawor Fix Version/s: 3.0 Resolution: Fixed Committed fixes for this problem in revision 941340. The gbean proxies did not quite work in OSGi environment. Each proxy required access to some cglib classes but not every bundle was importing the cglib packages. To fix this, when a proxy is created, a proxy classloader is constructed that can delegates the calls to the original classloader and a classloader that has access to the cglib classes. > search-plugins, install-library deploy command fails with NoClassDefFoundError > ------------------------------------------------------------------------------ > > Key: GERONIMO-5279 > URL: https://issues.apache.org/jira/browse/GERONIMO-5279 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: commands, core > Affects Versions: 3.0 > Reporter: Jarek Gawor > Assignee: Jarek Gawor > Fix For: 3.0 > > > Executing search-plugins, install-library deploy command fails with > NoClassDefFoundError. Looks like the gbean proxying code needs to be fixed. > Example: > bin/deploy -u system -p manager install-library > /home/gawor/.m2/repository/org/apache/felix/org.osgi.service.obr/1.0.2/org.osgi.service.obr-1.0.2.jar > {code} > java.lang.NoClassDefFoundError: [Lnet/sf/cglib/proxy/Callback; > at java.lang.Class.getDeclaredMethods0(Native Method) > at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) > at java.lang.Class.getDeclaredMethods(Class.java:1791) > at net.sf.cglib.core.ReflectUtils.addAllMethods(ReflectUtils.java:348) > at > net.sf.cglib.reflect.FastClassEmitter.<init>(FastClassEmitter.java:66) > at > net.sf.cglib.reflect.FastClass$Generator.generateClass(FastClass.java:72) > at > net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25) > at > net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216) > at net.sf.cglib.reflect.FastClass$Generator.create(FastClass.java:64) > at net.sf.cglib.reflect.FastClass.create(FastClass.java:46) > at net.sf.cglib.reflect.FastClass.create(FastClass.java:39) > at > org.apache.geronimo.kernel.basic.BasicProxyManager$ManagedProxyFactory.<init>(BasicProxyManager.java:204) > at > org.apache.geronimo.kernel.basic.BasicProxyManager.createProxyFactory(BasicProxyManager.java:78) > at > org.apache.geronimo.kernel.basic.BasicProxyManager.createProxy(BasicProxyManager.java:104) > at > org.apache.geronimo.system.jmx.KernelDelegate.getGBean(KernelDelegate.java:109) > at > org.apache.geronimo.deployment.plugin.jmx.ExtendedDeploymentManager.getImplementation(ExtendedDeploymentManager.java:66) > at > org.apache.geronimo.deployment.plugin.jmx.ExtendedDeploymentManager.getPluginInstaller(ExtendedDeploymentManager.java:162) > at > org.apache.geronimo.deployment.plugin.jmx.ExtendedDeploymentManager.installLibrary(ExtendedDeploymentManager.java:220) > at > org.apache.geronimo.deployment.plugin.jmx.RemoteDeploymentManager.installLibrary(RemoteDeploymentManager.java:201) > at > org.apache.geronimo.deployment.cli.CommandInstallLibrary.execute(CommandInstallLibrary.java:52) > at > org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java:173) > at > org.apache.geronimo.system.main.MainBridge.execute(MainBridge.java:64) > at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:109) > at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65) > at > org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:31) > Caused by: java.lang.ClassNotFoundException: net.sf.cglib.proxy.Callback > at > org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:814) > at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61) > at > org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1733) > at java.lang.ClassLoader.loadClass(ClassLoader.java:252) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.