Dear,
Here is my test program:
public class MyVaadinApplication extends UI {
@Override public void init( VaadinRequest request ) {
VerticalLayout layout = new VerticalLayout();
setContent( layout );
layout.addComponent( new Label( “Hello, world!” ) );
}
@WebServlet ( urlPatterns = “/*”, name = “MyUIServlet”, asyncSupported = true )
@VaadinServletConfiguration ( ui = MyVaadinApplication.class, productionMode = false )
public static class MyUIServlet extends VaadinServlet { }
}
My problem is when the urlPatterns set to “/" or "/VAADIN/”, the program went fine. However, when I change the pattern to any other custom setting, say “/myui/*”, an error showed up saying: “Failed to load the widgetset: ./VAADIN/widgetsets/com.vaadin.DefaultWidgetSet/com.vaadin.DefaultWidgetSet.nocache.js?1498101068301”. I have no idea why I can’t use custom pattern setting. Please kindly advise.
Many thanks,
Joey