vaadin + Osgi + Virgo

269 views
Skip to first unread message

ben sassi arbi

unread,
Sep 7, 2011, 5:30:05 AM9/7/11
to Vaadin OSGi Collaboration
Hello,
Is it possible to develop osgi applications (dynamic moduls) with
vaadin and run its in Virgo server ?
Also, is any official change in Vaadin JAR about numbers packages
like : /VAADIN/themes/runo/icons/16,32,64 because it case problèms
when i depoy it in virgo ?

Thanks for help

Neil Bartlett

unread,
Sep 7, 2011, 5:39:32 AM9/7/11
to vaadi...@googlegroups.com
Hello Ben,

Virgo is based on Equinox, and I have personally run Vaadin on Equinox
many times. So although I haven't tried running on Virgo, I would be
very surprised if it didn't work.

If you are experiencing a problem then you need to describe it in full.

Cheers,
Neil

ben sassi arbi

unread,
Sep 7, 2011, 6:02:11 AM9/7/11
to Vaadin OSGi Collaboration
Hello Neil,

The current problem with Virgo is, that you cannot deploy PDE based
Plugin-Project directly. You would have to pack them into real OSGi-
Bundles and deploy them to Virgo.

but i have any idea about that.
Cheers,
Arbi

On Sep 7, 10:39 am, Neil Bartlett <njbartl...@gmail.com> wrote:
> Hello Ben,
>
> Virgo is based on Equinox, and I have personally run Vaadin on Equinox
> many times. So although I haven't tried running on Virgo, I would be
> very surprised if it didn't work.
>
> If you are experiencing a problem then you need to describe it in full.
>
> Cheers,
> Neil
>

Neil Bartlett

unread,
Sep 7, 2011, 6:13:22 AM9/7/11
to vaadi...@googlegroups.com
Sorry but this sounds like a problem you should ask about on the Virgo
mailing list.

However as a hint, you can build PDE projects as real bundles by
clicking File menu -> Export -> "Deployable plugins and fragments".

Regards,
Neil

ben sassi arbi

unread,
Sep 7, 2011, 7:24:39 AM9/7/11
to Vaadin OSGi Collaboration
I tried to export all project in this demo :
com.siemens.ct.osgi.vaadin.pm and deply there with no error in pickup
of virgo but when i test it in browser with the same URL in Equinox
exemple (http://localhost:8080/com.siemens.ct.osgi.vaadin.pm.main) I
have 404 not found.

Regards,
Arbi

ben sassi arbi

unread,
Oct 18, 2011, 4:29:18 AM10/18/11
to Vaadin OSGi Collaboration
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 ?

Chris Brind

unread,
Oct 18, 2011, 5:06:37 AM10/18/11
to vaadi...@googlegroups.com
Hi,

That's not exactly a ClassNotFoundException, it's a
NoClassDefFoundException, which means the class can be found but the
definition cannot be realised because some other class it depends on
cannot be found. See if you can work out what that class is (by
looking at sources perhaps) and make sure it's available at runtime.

Good luck

Cheers
Chris

Sent from the future using a wormhole and iPhone 6.2

David Kacetl

unread,
Apr 9, 2014, 2:25:45 PM4/9/14
to vaadi...@googlegroups.com
I did some experiments with Kai Tödter's example on Eclipse Virgo. Finally, i had to do some modifications and then it works.

See here:
http://dkacetl.blogspot.cz/2014/04/vaadin-modular-application-on-eclispe.html

Maybe it helps you.
Reply all
Reply to author
Forward
0 new messages