Downloading a static resource does not work

162 Views Asked by At

I have a vaadin project with Spring integration. The project has a single static resource (pdf file) that should be served from the web application, via vaadin's Anchor element.

According to https://vaadin.com/docs/v20/flow/advanced/loading-resources#static-resources the pdf document is placed in src/main/resources/META-INF/resources/documentation.pdf.

When starting the web application directly in my IDE (IntelliJ) the download work as expected. However, running the web application from the maven-generated jar, the download request simply returns "Could not navigate to 'documentation.pdf'". There is no INFO, WARN, ... log entry in the application's log. The documentation.pdf is located in META-INF/resources/documentation.pdf.

vaadin version: 20.0.3 firefox version: 89.0.2

What can I do?

0

There are 0 best solutions below