I have create a new maven project with vaadin-archetype-application version 7.1.9
I have run the commands mvn vaadin:compile jetty:run
Everithing works accessing http://localhost:8080/teste/
I want to acess using the url http://localhost:8080/teste/app
I have change
From
@Theme(“mytheme”)
@SuppressWarnings(“serial”)
public class MyVaadinUI extends UI
{
@WebServlet(value = “/*” ,asyncSupported = true)
@VaadinServletConfiguration(productionMode = false, ui = MyVaadinUI.class, widgetset = “foo.AppWidgetSet”)
public static class Servlet extends VaadinServlet {
}
…
To
@WebServlet(value = “/app/*” ,asyncSupported = true)
@VaadinServletConfiguration(productionMode = false, ui = MyVaadinUI.class, widgetset = “foo.AppWidgetSet”)
public static class Servlet extends VaadinServlet {
}
trying to access the URL
http://localhost:8080/teste/app
shows the error
HTTP ERROR 404
Problem accessing /teste/app. Reason:Not FoundPowered by Jetty://
I already try
@WebServlet( value ={“/app/", "/VAADIN/”} ,asyncSupported = true)
@WebServlet( urlPatterns = {“/app/", "/VAADIN/”}, ,asyncSupported = true)
nonthing worked
What am I do wrong?
I have try folowing these posts
https://vaadin.com/forum#!/thread/390813
https://vaadin.com/old-forum/-/message_boards/view_message/4038379
https://vaadin.com/forum#!/thread/1965338
https://vaadin.com/forum#!/thread/136600
https://vaadin.com/forum#!/thread/2043315
and others in stackoverflow website
any ideia?