vaadin / flow

Vaadin Flow is a Java framework binding Vaadin web components to Java. This is part of Vaadin 10+.
Apache License 2.0
609 stars 167 forks source link

Cannot load resources from jar files in classpath Jetty 12.0.13 Vaadin 24.4.11 #19960

Closed cliviu closed 1 week ago

cliviu commented 1 week ago

Description of the bug / feature

I want to start an embedded Jetty Server. I have some Vaadin resources packed in a jar file. When starting the Jetty/Vaadin Application with the resources in "classes" folder, it works, otherwise when I pack the resources in jar library they cannot be found.

Minimal reproducible example

Artur- commented 1 week ago

Please add the minimal reproducible example so we don't have to guess what is wrong

mcollovati commented 1 week ago

You may want to take a look at @mvysny's VaadinBoot project to see if your embedded Jetty configuration is missing something https://github.com/mvysny/vaadin-boot/blob/30a2f14180b46a5d097a4dec675c91f446b878f5/vaadin-boot/src/main/java/com/github/mvysny/vaadinboot/common/JettyWebServer.java#L120

cliviu commented 1 week ago

You may want to take a look at @mvysny's VaadinBoot project to see if your embedded Jetty configuration is missing something https://github.com/mvysny/vaadin-boot/blob/30a2f14180b46a5d097a4dec675c91f446b878f5/vaadin-boot/src/main/java/com/github/mvysny/vaadinboot/common/JettyWebServer.java#L120

Thanks, it helped. I will close the issue.