Using Vaadin 8 and OSGi

Hi,

since the latest Vaadin release seems to support OSGi, I’ve tried to launch a simple application following the instructions from here: https://vaadin.com/docs/-/part/framework/advanced/advanced-osgi.html
Right now, I have created a standard Vaadin 8 Project, converted it to a Plug-In Project so I get the Manifest File and tried starting it on Jetty. Since this is my first web application project I don’t know if I’m missing something in my project or the way I tried just doesn’t work. My UI Class is the standard MyUI that gets generated if you create an standard Vaadin 8 project and the servlet class looks exactly like the one in the link above. If I try to run the application I get the following alerts:

!ENTRY org.eclipse.equinox.ds 1 0 2017-06-13 13:43:35.870
!MESSAGE Could not bind a reference of component com.vaadin.osgi.resources.impl.VaadinResourceTrackerComponent. The reference is: Reference[name = Theme, interface = com.vaadin.osgi.resources.OsgiVaadinTheme, policy = dynamic, cardinality = 0…n, target = null, bind = bindTheme, unbind = unbindTheme]

!ENTRY org.eclipse.equinox.ds 1 0 2017-06-13 13:43:35.872
!MESSAGE Could not bind a reference of component com.vaadin.osgi.resources.impl.VaadinResourceTrackerComponent. The reference is: Reference[name = Widgetset, interface = com.vaadin.osgi.resources.OsgiVaadinWidgetset, policy = dynamic, cardinality = 0…n, target = null, bind = bindWidgetset, unbind = unbindWidgetset]

When I try to open the application in my browser using the port I specified I get the following error :
HTTP ERROR: 404

Problem accessing /. Reason: ProxyServlet: /Powered by Jetty:// 9.3.9.v20160517

Does my problem consist because it couldnt bind those references or is it a mistake in my project setup?
If you need any extra info I will happily provide it.

I hope someone here can help me out since google doesn’t seem to help.

Thanks in advance,

Tobias

Sorry for the late reply - I hope this is still of use for anyone reading this thread.

For Karaf, there is an example at
https://github.com/elmot/vaadin-karaf
that might be helpful. I would recommend upgrading to Vaadin 8.1.0.rc2 or latest available version if more recent.

In addition to the documentation on vaadin.com, there is some additional documentation still under review at
https://github.com/vaadin/framework/pull/9489/files
.