Hello,
Great news, I have turn a simple exemple of dynamic bundles in Virgo.
I had follow this tutorial (
https://vaadin.com/wiki/-/wiki/Main/
Creating%20a%20Modular%20Vaadin%20Application%20with%20OSGi) and
making some modification. I will write a tutorial how to do this.
I test this exemple by a simple component like Label , it run
successfully but when i try with a component like VerticalSplitPanel ,
I have this Error in Virgo (ClassNotFoundException)
-----
com.vaadin.event.ListenerMethod$MethodException
Cause: java.lang.NoClassDefFoundError: com/vaadin/ui/
VerticalSplitPanel
at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:
507)
at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:161)
at com.vaadin.ui.AbstractComponent.fireEvent(AbstractComponent.java:
1154)
at com.vaadin.ui.Button.fireClick(Button.java:371)
at com.vaadin.ui.Button.changeVariables(Button.java:193)
at
com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariables(AbstractCommunicationManager.java:
1094)
at
com.vaadin.terminal.gwt.server.AbstractCommunicationManager.doHandleUidlRequest(AbstractCommunicationManager.java:
590)
at
com.vaadin.terminal.gwt.server.CommunicationManager.handleUidlRequest(CommunicationManager.java:
266)
at
com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:
478)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
102)
at
org.eclipse.virgo.web.tomcat.ApplicationNameTrackingValve.invoke(ApplicationNameTrackingValve.java:
29)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
555)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
298)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
857)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
489)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NoClassDefFoundError: com/vaadin/ui/
VerticalSplitPanel
at com.yyy(xxx.java:50)
at com.yyy.vaadin.module.Module1$1.buttonClick(Module1.java:77)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:
487)
... 23 more
Caused by:
org.eclipse.virgo.kernel.osgi.framework.ExtendedClassNotFoundException:
com.vaadin.ui.VerticalSplitPanel in KernelBundleClassLoader:
[bundle=com.yyy.xxx-module_1.0.0]
at
org.eclipse.virgo.kernel.userregion.internal.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:
139)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 30 more
Caused by: java.lang.ClassNotFoundException:
com.vaadin.ui.VerticalSplitPanel
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:
460)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:
422)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:
410)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:
107)
at
org.eclipse.virgo.kernel.userregion.internal.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:
135)
... 31 more
-----
I understant that Virgo can't load this class but in my template.mf i
import bundle vaadin with version 6.6.4 but i have the same error.
I don't know how i can solve the problem.
Any suggestion ?