Widgetset gets not found (perhaps ServletMappings?)


somehow I don’t see what the error is … In my application I have a custom widgetset and theme, both are located unter VAADIN/widgetsets respectively VAADIN/themes in the root of my WAR-File.

The Vaadin-Servlet is mapped like this:

public class WebContextInitializer implements WebApplicationInitializer {

public void onStartup(javax.servlet.ServletContext servletContext)
        throws ServletException {
    final AnnotationConfigWebApplicationContext context = 
            new AnnotationConfigWebApplicationContext();
    // scan *.config-package
    servletContext.addListener(new ContextLoaderListener(context));

private void registerServlet(ServletContext servletContext) {
    ServletRegistration.Dynamic dispatcher = servletContext.addServlet(
            "vaadin", SpringVaadinServlet.class);

// dispatcher.addMapping(“/VAADIN/*”);

[/code]The UI is annotated like this

public class MyUI extends UI {

private String text;

protected void init(VaadinRequest vaadinRequest) {
    // left out

[/code]When opening the application in the Browser both ./VAADIN/themes/my-theme/styles.css and ./VAADIN/widgetsets/de.tobiasdemuth.vaadin.MyWidgetset/de.tobiasdemuth.vaadin.MyWidgetset-noCache.js are requested but return a 404. What am I missing here?

kind regards

Ok, Tomcat just uses the files under src not those under target.