How to ship Vaadin SpringBoot based app as war

I need to ship my Vaadin app as war. Production would run it on Tomcat as a webapp.

  1. I downloaded a fresh vaadin 24.1 sample project with Vaadin Starter.
  2. changed jar to war in pom.xml
  3. generated war file with mvn clean package -dProduction
  4. copied war file to Tomcat’s webapp directory

Nothing is working, I read this catalina.out:
“27-Sep-2023 13:30:44.459 INFO [http-nio-8080-exec-9] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
27-Sep-2023 13:30:44.510 SEVERE [http-nio-8080-exec-9] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
27-Sep-2023 13:30:44.510 SEVERE [http-nio-8080-exec-9] org.apache.catalina.core.StandardContext.startInternal Context [/simpleapp-1.0-SNAPSHOT] startup failed due to previous errors”

what am I missing?

Did you follow the steps to create a WAR file for Spring Boot application?

https://docs.spring.io/spring-boot/docs/current/reference/html/howto.html#howto.traditional-deployment.war

yes. And it works with a simple Spring Boot sample app generated with Spring initr.
But it still not working with Vaadan 24.1 app.
Any other tip?

Ensure the correct Tomcat Version (10.1) and ensure you are really building a production mode or show us more logs.