Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 2 weeks ago
Vaadin Spring integration
Hi,
I use official spring addon for Spring Vaadin integration. Here is the 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();
}
}
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.
Last updated on
You cannot reply to this thread.