How to install Vaadin7 in OSGi

Hello guys,

I am trying to upgrade our Vaadin 6.7.8 to Vaadin 7.1 but I am little bit lost. I downloaded https://vaadin.com/download and https://vaadin.com/directory#addon/lunifera-osgi-bridge but I did not found any instructions how to install it to OSGi. I tried to put the JAR files to deploy folder but I am missing a lot of maven dependencies and it causes errors in Felix’ libraries. I usually get something like this:


ERROR: Bundle com.vaadin.server [243]
 Error starting file:/home/jamal/Prace/myfile-0.2-SNAPSHOT/deploy/vaadin-server-7.1.0.jar 
(org.osgi.framework.BundleException: Unresolved constraint in bundle com.vaadin.server [243]
: 
Unable to resolve 243.0: missing requirement [243.0]
 osgi.wiring.package; 
(&(osgi.wiring.package=org.json)(version>=0.0.20080701)))
org.osgi.framework.BundleException: Unresolved constraint in bundle com.vaadin.server [243]
: 
Unable to resolve 243.0: missing requirement [243.0]
 osgi.wiring.package;
 (&(osgi.wiring.package=org.json)(version>=0.0.20080701))
        at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3826)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1868)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191)
        at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)
        at java.lang.Thread.run(Thread.java:662)

Thanks for any help

-Br, Roman

Json is in vaadin-shared-deps.jar

Thanks for answer, but it was only sample of the stacktrace. I need to install vaadin 7.1.0 to my Apache Karaf(Felix) which is running OSGi. In previous version I installed vaadin like this
install -s mvn:com.vaadin/vaadin/6.7.8
but with the new version there is 7 libraries and when I put them to deploy folder I will get a lot of errors about missing dependencies. I don’t seek the way how to solve dependencies, but
how to correctly install install vaadin to OSGi

In karaf 2.3.1 I have such features installed : config, eventadmin, http, jetty, scr, webconsole.
In karaf/deploy vaadin-7.1 libraries: -themes,-shared,-shared-deps,-server,-client-compiled, jsoup-1.6.3 and
com.springsource.javax.servlet-2.4.0.jar. It works for me.

Thanks for the list of needed files. It really helped me.

Hello roman janulek!

I am also struggling with the same problem of running Vaadin 7 in Karaf
If you have solved this problem could you provide source code please?
It would save me really!

Or anybody who solved this problem
I would really appreciate your help!