Hello,
I have some problems with the tecnologies in the title.
Here are the steps I did to reproduce the problem:
OS: Windows 10 Pro Build 19044
Java 17.0.4.1
I download a fresh Tomcat 10.1.0 installation, unzip it and verify it works by going into bin folder and then “.\catalina.bat run”. If I go to localhost:8080 it works.
Then I go to https://start.vaadin.com/app, leave everything as it is and change only Vaadin version 24. Then I download and extract the .zip with this new project (my-app).
If I open the my-app folder and do a “.\mvnw”, Vaadin works. In the pom.xml I see
Then I follow this tutorial https://vaadin.com/blog/packaging-and-deploying-spring-boot-applications-as-war-files and change the packaging in my pom.xml from jar to war (no other changes); after that, a “.\mvnw package” and I have my beautiful .war file named “myapp-1.0-SNAPSHOT.war”; I rename it “myapp.war”.
Then, while Tomcat is running, I copy the .war file to webapps folder in Tomcat. Stack trace attached.
What did I do wrong? Any help is appreciated. If you need me to do any more test (like changing Tomcat or Vaadin version), I’m here
I installed Tomcat 10.0.27 instead of 10.1.0;
I checked my Application.java class: it’s already declared as public class Application extends SpringBootServletInitializer implements AppShellConfigurator {
I did .\mvnw clean package -Pproduction to get my war, then renamed to myapp.war;