Note that there are some explanatory texts on larger screens.

plurals
  1. POVaadin-based web app is not accessible (404) in Apache Felix
    text
    copied!<p>UPDATE: SOLVED. I had to use a utility bundle to auto-load Vaadin apps in OSGI. See <a href="http://dev.vaadin.com/wiki/Arvue/OSGi" rel="nofollow">http://dev.vaadin.com/wiki/Arvue/OSGi</a> The bundles I used: org.vaadin.osgi, org.vaadin.osgi.staticres</p> <p>===</p> <p>I created a sample Vaadin project, built it with Maven + BND to as an OSGI bundle.</p> <p>started Apache Felix with my "webui-1.0.jar" bundle along with its dependent "vaadin-6.6.6.jar". I can access localhost:8080, but localhost:8080/webui shows "Problem accessing /webui. Reason: NOT_FOUND".</p> <p>"webui-1.0.jar" contains:</p> <pre><code>com -- java classes META-INF/MANIFEST.MF VAADIN -- empty now, but will contain Vaadin widgetsets and other resources WEB-INF/web.xml </code></pre> <p>my web.xml:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"&gt; &lt;display-name&gt;webui&lt;/display-name&gt; &lt;context-param&gt; &lt;description&gt; Vaadin production mode&lt;/description&gt; &lt;param-name&gt;productionMode&lt;/param-name&gt; &lt;param-value&gt;false&lt;/param-value&gt; &lt;/context-param&gt; &lt;servlet&gt; &lt;servlet-name&gt;Vaadin1 Application&lt;/servlet-name&gt; &lt;servlet-class&gt;com.vaadin.terminal.gwt.server.ApplicationServlet&lt;/servlet-class&gt; &lt;init-param&gt; &lt;description&gt; Vaadin application class to start&lt;/description&gt; &lt;param-name&gt;application&lt;/param-name&gt; &lt;param-value&gt;com.mywebtest.MyVaadinApplication&lt;/param-value&gt; &lt;/init-param&gt; &lt;init-param&gt; &lt;description&gt; Application widgetset&lt;/description&gt; &lt;param-name&gt;widgetset&lt;/param-name&gt; &lt;param-value&gt;com.mywebtest.widgetset.Vaadin1Widgetset&lt;/param-value&gt; &lt;/init-param&gt; &lt;/servlet&gt; &lt;servlet-mapping&gt; &lt;servlet-name&gt;Vaadin1 Application&lt;/servlet-name&gt; &lt;url-pattern&gt;/*&lt;/url-pattern&gt; &lt;/servlet-mapping&gt; &lt;welcome-file-list&gt; &lt;welcome-file&gt;index.html&lt;/welcome-file&gt; &lt;welcome-file&gt;index.htm&lt;/welcome-file&gt; &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt; &lt;welcome-file&gt;default.html&lt;/welcome-file&gt; &lt;welcome-file&gt;default.htm&lt;/welcome-file&gt; &lt;welcome-file&gt;default.jsp&lt;/welcome-file&gt; &lt;/welcome-file-list&gt; &lt;/web-app&gt; </code></pre> <p>my MANIFEST.MF file generated by Maven + BND:</p> <pre><code>Manifest-Version: 1 Bnd-LastModified: 1315684875698 Build-Jdk: 1.6.0_26 Built-By: ask Bundle-ManifestVersion: 2 Bundle-Name: webui Bundle-SymbolicName: webui Bundle-Version: 1.0.0 Class-Path: Created-By: Apache Maven Bundle Plugin Export-Package: com.mywebtest;uses:="com.vaadin,com.vaadin.ui";version=" 1.0.0" Import-Package: com.vaadin,com.vaadin.ui Tool: Bnd-1.43.0 </code></pre> <p>Running bundles:</p> <pre><code>g! lb START LEVEL 1 ID|State |Level|Name 0|Active | 0|System Bundle (3.2.2) 1|Active | 1|Apache Felix Bundle Repository (1.6.6) 2|Active | 1|Apache Felix Configuration Admin Service (1.2.8) 3|Active | 1|Apache Felix Dependency Manager (3.0.0) 4|Active | 1|Apache Felix Gogo Command (0.8.0) 5|Active | 1|Apache Felix Gogo Runtime (0.8.0) 6|Active | 1|Apache Felix Gogo Shell (0.8.0) 7|Active | 1|Apache Felix Http Api (2.2.0) 8|Active | 1|Apache Felix Http Jetty (2.2.0) 9|Active | 1|Apache Felix Metatype Service (1.0.4) 10|Active | 1|Apache Felix Declarative Services (1.6.0) 11|Active | 1|Apache Felix Web Management Console (3.1.8) 12|Active | 1|Vaadin (6.6.6) 13|Active | 1|webui (1.0.0) </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload