Hi,
Can someone help with java example, how to start framework embedded with tomcat 9?
After example bellow, I got an error message. It’s looks like servlet is registered but routes not:
Could not navigate to ‘’
Reason: Couldn’t find route for ‘’
Available routes:
This detailed message is only shown when running in development mode.
Tomcat tomcat = new Tomcat();
tomcat.setPort(8080);
Context context = tomcat.addContext("", (new File(".")).getAbsolutePath());
tomcat.addServlet("", "", new VaadinServlet());
context.addServletMappingDecoded("/*", "");
tomcat.getConnector();
tomcat.start();
tomcat.getServer().await();
Thanks,
Dmitry