Static client not found in production mode

Dear forum members,

I am developing a Vaadin application in Jetty embedded with Vaadin, of course.

Everything is fine in Visual Studio Code when I am developing the code but in production mode the web gui can’t start.

I am using Gradle to pack all the jars and stuff in a Rpm to deploy the app on Centos 7.

When I start the application no error are reported on the logs but when I try to access the web interface, chrome complains that a file is missing from the server and it receive a 404:

http://myserver.it:8080/VAADIN/static/client/client-C001A087E3ACCAA1E16BBD9F71FBD6EA.cache.js

I have looked inside the directory where all the jars are copied and the file is inside a jar called flow-client-2.3.4.jar:

 META-INF/MANIFEST.MF
 META-INF/
 META-INF/resources/
 META-INF/resources/frontend/
 META-INF/resources/VAADIN/
 META-INF/resources/VAADIN/static/
 META-INF/resources/VAADIN/static/client/
 OSGI-INF/
 com/
 com/vaadin/
 com/vaadin/flow/
 com/vaadin/flow/client/
 com/vaadin/flow/client/osgi/
 META-INF/maven/
 META-INF/maven/com.vaadin/
 META-INF/maven/com.vaadin/flow-client/
 META-INF/resources/frontend/VaadinDevmodeGizmo.js
 META-INF/resources/VAADIN/static/client/clear.cache.gif
 META-INF/resources/VAADIN/static/client/compile.properties
 META-INF/resources/VAADIN/static/client/client-C001A087E3ACCAA1E16BBD9F71FBD6EA.cache.js.br
 META-INF/maven/com.vaadin/flow-client/pom.properties
 META-INF/resources/VAADIN/static/client/client-C001A087E3ACCAA1E16BBD9F71FBD6EA.cache.js
 com/vaadin/flow/client/osgi/OsgiClientResources.class
 com/vaadin/flow/client/osgi/OSGiClientStaticResource.class
 OSGI-INF/com.vaadin.flow.client.osgi.OSGiClientStaticResource.xml
 OSGI-INF/com.vaadin.flow.client.osgi.OsgiClientResources.xml
 META-INF/maven/com.vaadin/flow-client/pom.xml
 META-INF/resources/VAADIN/static/client/client-C001A087E3ACCAA1E16BBD9F71FBD6EA.cache.js.gz

Why the client js is not served ?
Could someone point me in the right direction to solve my issue ?

Regards,
Stefano Bossi

I have added a sample application here: https://github.com/foxpluto/testvaadin/tree/master

I have opened a ticket here too: https://github.com/vaadin/vaadin-gradle-plugin/issues/102

Regards,
S.