ejb multi pom APP with Touchkit

I followed the instructions on https://vaadin.com/wiki/-/wiki/Main/Creating%20JEE6%20Vaadin%20Applications to build a simple VAADIn app deployed as an ear. Now I’m failing to do the same for a Touchkit application. The app works but it seems as if the mobile theme is not applied.

The code is:


@WebServlet(urlPatterns = "/VAADIN/*")
public class VaadinAppServlet extends AbstractApplicationServlet {

	private static final long serialVersionUID = 1L;

	@Override
    protected Class<? extends Application> getApplicationClass() throws ClassNotFoundException {
        return MyVaadinApplication.class;
    }

    @Override
    protected Application getNewApplication(HttpServletRequest request) throws ServletException {
        try {
            InitialContext ic = new InitialContext();
            return (Application) ic.lookup("java:module/MyVaadinApplication");
        } catch (NamingException e) {
            throw new ServletException("Could not access application", e);
        }
    }
}

@Stateful
public class MyVaadinApplication extends TouchKitApplication
{
    
    @Override
    public void onBrowserDetailsReady() {
        Button button = new Button("Click Me");
        button.addListener(new Button.ClickListener() {
            public void buttonClick(ClickEvent event) {
                event.getButton().getWindow().addComponent(new Label("Thank you for clicking"));
            }
        });
        getMainWindow().addComponent(button);
    }

    
}

After changing the servlet to


@WebServlet(urlPatterns = "/VAADIN/*", initParams={
		@WebInitParam(name = "application", value="MyVaadinApplication"),
		@WebInitParam(name = "widgetset", value="ui.gwt.AppWidgetSet")
})
public class VaadinAppServlet extends TouchKitApplicationServlet {

Regards
Roger