Problems with custom URL pattern setting

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

Dear,

As to my probelm above, I did further investigation, and found out that, if I un-jar the vaadin-client-compiled.jar file and copy the VAADIN directory content directly to webApp, the custom url can work fine. However, If I put vaadin-client-compiled.jar to WEB-INF/lib instead of un-jar it, the same error occur. I have no clues. I was assigned to evaluate the possibility to revise our JSP/JAVA applications to VAADIN, and need to sort it out to complete the evaluation. Plesae kindly advise.

Many thanks,
Joey