Failure invoking bundle.loadClass(String clazz) in version M06 and higher [message #722390] |
Mon, 05 September 2011 15:50 |
Carlos Salinas Messages: 32 Registered: March 2011 Location: Avd. de la Argentina 132,... |
Member |
|
|
Hello community,
I have developed a custom servlet inside a Fragment Bundle and when i execute the following command:
return (Class<? extends Application>) bundle.loadClass(className);
or the following snippet to retrieve a Spring bean (when i want to get the same object but through the ApplicationContext registered as service by Spring DM):
final Application application = (Application) springContext.getBean(beanParam);
And exception is triggered :
.....
org.eclipse.virgo.kernel.osgi.framework.ExtendedClassNotFoundException: com.vaadin.osgi.spring.MyVaadinApplication in KernelBundleClassLoader: [bundle=com.vaadin.osgi.spring_0.0.1.SNAPSHOT]
org.eclipse.virgo.kernel.userregion.internal.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:138)
.....
I thing the source of the problem is the invoking of the loadClass method from the Bundle Interface from the OSGi framework. I only reproduce this failure in versions equal or higher than M06. In lower version all is correct and the servlet works.
Thank you.
[Updated on: Mon, 05 September 2011 15:51] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01792 seconds