Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uberjar : merged ressource not foundable #18168

Closed
dufoli opened this issue Jun 25, 2021 · 1 comment
Closed

uberjar : merged ressource not foundable #18168

dufoli opened this issue Jun 25, 2021 · 1 comment
Labels
env/windows Impacts Windows machines kind/bug Something isn't working

Comments

@dufoli
Copy link
Contributor

dufoli commented Jun 25, 2021

Describe the bug

On quarkus CXF extension, we have an issue because CXF is compound of few library and they contain resource with the same name. So we need to merge them.

solution was to use the quarkus in build time to merge resource and produce a unique one.
We have done so in PR by generating GeneratedResourceBuildItem:
quarkiverse/quarkus-cxf#218

and quarkus code PR add generated ressource to uberjar in priority to regular one:
#17199

Thanks to that, now it build with uberjar but on runtime, resource are not found.
cf comment:
quarkiverse/quarkus-cxf#238 (comment)

remark: this problem happend too in native mode because it use uberjar.
#8860
oracle/graal#2387

related bug :
quarkiverse/quarkus-cxf#194
quarkiverse/quarkus-cxf#238

Expected behavior

generated resource is found on runtime in uberjar mode.

Actual behavior

generated resource is not found on runtime in uberjar mode.

To Reproduce

Link to a small reproducer : https://github.com/marcelbraghini/integrations

Steps to reproduce the behavior:

  1. ./mvnw package
  2. java -jar target/integrations-0.1.0-SNAPSHOT-runner.jar.
  3. curl --location --request GET 'localhost:8080/v1/endereco/89805350'

Environment (please complete the following information):

Output of uname -a or ver

report by users on
mac os x, Windows 10,...

Output of java -version

openjdk version "11.0.10" 2021-01-19 OpenJDK Runtime Environment GraalVM CE 21.0.0.2 (build 11.0.10+8-jvmci-21.0-b06) OpenJDK 64-Bit Server VM

GraalVM version (if different from Java)

GraalVM CE 21.0.0.2 (build 11.0.10+8-jvmci-21.0-b06, mixed mode, sharing)

Quarkus version or git rev

1.13.7 Final

Build tool (ie. output of mvnw --version or gradlew --version)

Additional context

@dufoli
Copy link
Contributor Author

dufoli commented Jun 25, 2021

we have seen that UberJarMergedResourceBuildItem can handle that

#5677
we wait the result if ok we close this ticket .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
env/windows Impacts Windows machines kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant