I like to upgrade a vaadin OSGI application from 7.3.9 to 7.4.0.beta2. It seems that the OSGI header of com.vaadin.server is not correct.
It does not import the package
elemental.json
in the MANIFEST, but classes of this package are used:
Caused by: java.lang.NoClassDefFoundError: elemental/json/JsonException
at com.vaadin.server.VaadinServlet.createServletService(VaadinServlet.java:301)
at com.vaadin.server.VaadinServlet.init(VaadinServlet.java:209)
at com.desoft.portal.Servlet.init(Servlet.java:30)
at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:532)
at org.eclipse.jetty.servlet.ServletHolder.doStart(ServletHolder.java:344)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:791)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doStart(HttpServiceContext.java:222)
Here ist the output of the header of com.vaadin.server (Apache Karaf). The package is not imported:
v[font=courier new]
aadin-server (314)
Manifest-Version = 1.0
Implementation-URL = http://vaadin.com
Ant-Version = Apache Ant 1.8.4
Implementation-Version = 7.4.0.beta2
Implementation-Vendor = Vaadin Ltd
Created-By = 1.6.0_45-b06 (Sun Microsystems Inc.)
Bundle-Vendor = Vaadin Ltd
Bundle-RequiredExecutionEnvironment = JavaSE-1.6
Bundle-Name = vaadin-server
Bundle-SymbolicName = com.vaadin.server
Bundle-Version = 7.4.0.beta2
Bundle-ManifestVersion = 2
Import-Package =
javax.servlet;version=2.4.0,
javax.servlet.http;version=2.4.0,
javax.validation;resolution:=optional;version=1.0.0.GA,
org.jsoup;version=1.6.3,
org.jsoup.parser;version=1.6.3,
org.jsoup.nodes;version=1.6.3,
org.jsoup.helper;version=1.6.3,
org.jsoup.safety;version=1.6.3,
org.json;version=0.0.20080701
Export-Package =
VAADIN;version=7.4.0.beta2,
com.google;version=7.4.0.beta2,
com.google.gwt;version=7.4.0.beta2,
com.google.gwt.codegen;version=7.4.0.beta2,
[/font]