deploy into tomcat9 on server

My server has a www.myserver.com address. I created the application vaadin.war.
On the server running tomkat. I added vaadin.war. in webapps in tomcat webapps/vaadin.
When I trying to run in browser www.myserver.com/vaadin I get 404 error.

My main view:

@Route(value = "vaadin/main")
public class MainView extends VerticalLayout {
**//*//
}

and config:

public class ServletInitializer extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(DemoApplication.class);
    }

}
@SpringBootApplication(exclude = {
        DataSourceAutoConfiguration.class,
        DataSourceTransactionManagerAutoConfiguration.class,
})

public class DemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
		}

Hi Explo,

I might be wrong, but you are deploying in the context vaadin, and you have vaadin/main as the route, so the url should be www.myserver.com/vaadin/vaadin/main

I tried www.myserver.com/vaadin/vaadin/main not works :frowning: