Hi,
I use official spring addon for Spring Vaadin integration. Here is the code:
[code]
@Theme(“valo”)
@SpringUI
public class App extends UI {
@Override
protected void init(VaadinRequest vaadinRequest) {
}
public static void main(String[] args) throws Exception {
AnnotationConfigWebApplicationContext webApplicationContext = new AnnotationConfigWebApplicationContext();
webApplicationContext.register(AppConfig.class);
Server webServer = new Server(8080);
ServletContextHandler servletContextHandler = new ServletContextHandler(webServer, "/", true, true);
servletContextHandler.addServlet(new ServletHolder(new SpringVaadinServlet()), "/");
//servletContextHandler.addServlet(new ServletHolder(new VaadinServlet()), "/*");
servletContextHandler.setInitParameter("UI", "App");
servletContextHandler.addEventListener(new ContextLoaderListener(webApplicationContext));
webServer.start();
webServer.join();
}
}
[/code]But after the start of the application I get:
Problem accessing /.
Reason:Request was not handled by any registered handler.
Powered by Jetty:// 9.3.7.v20160115
VaadinServlet is working properly.