Мы используем Vaadin7 в более крупном приложении OSGI (karaf 4) и объявляем VaadinServlet с помощью схемы:
<?xml version="1.0" encoding="UTF-8"?>
<blueprint default-activation="eager" xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
<!-- Vaadin servlet serving static Vaadin resources -->
<service interface="javax.servlet.Servlet">
<service-properties>
<entry key="servlet-name" value="Vaadin Resources" />
<entry key="alias" value="/VAADIN-ui" />
<entry key="contextId" value="app-vaadin" />
</service-properties>
<bean class="com.vaadin.server.VaadinServlet" />
</service>
By default Vaadin runs in debug mode and has a setting of ProductionMode which needs to set to true. This can done as a context-param but the application does not use a web.xml file. I've tried to set it as property of the bean but it is not recognised.