kklein
(Kevin Klein)
April 20, 2021, 8:06pm
1
I built a WAR file using the Maven command per the documentation:
mvn clean package -Pproduction
However when I run the app it fails to load due to 404 errors referencing VAADIN/static. (screenshot 1)
When I look at the WAR file, I can see “build” and “config” in the VAADIN folder, but no “static”. (screenshot 2)
What is going wrong?
kklein
(Kevin Klein)
April 21, 2021, 9:30pm
2
I see now that these static resources are included in the flow-X.jar files. The question is - why aren’t they being served up by the Vaadin Servlet?
I’m deploying under Java 11 and Tomcat 8.5 if that matters…
kklein
(Kevin Klein)
April 22, 2021, 6:49pm
3
Sorry for replying to my own posts, but just wanted to document the issue for posterity.
It turns out that the global Tomcat context.xml file contained this configuration:
This caused the JAR resource scan to be skipped.