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

Apps generate exception when running from assembly JAR #31

Open
carlosedp opened this issue Mar 13, 2023 · 1 comment
Open

Apps generate exception when running from assembly JAR #31

carlosedp opened this issue Mar 13, 2023 · 1 comment
Labels
build-tools-support help wanted Extra attention is needed

Comments

@carlosedp
Copy link
Contributor

I'm trying to generate assembly JARs for some applications(to run in a Docker container for example) and when run they generate exceptions.

Sample:
https://gist.github.com/carlosedp/8af4ec212bd987335c47933bee4c8db0

❯ scala-cli package -f zio-temporal.scala -o ziotemporal.jar --assembly

Wrote /Users/cdepaula/repos/scala-playground/zio/ziotemporal.jar, run it with
  ./ziotemporal.jar

❯ ll ziotemporal.jar
.rwxr-xr-x 57Mi cdepaula 13 Mar 09:28 ziotemporal.jar*

Error:

https://pastebin.com/TTEEJq49

On another application from https://github.com/carlosedp/zio-temporal-hello, I generate the Assembly and it returns:

https://pastebin.com/qdiKhkaB

Both run fine when I use the build tool run, like scala-cli zio-temporal.scala for the GIST and ./mill run worker.run.

@vitaliihonta
Copy link
Owner

Carlos or I will respond later. It may be caused by assembly misconfiguration. GRPC uses META-INF files to pick-up backend implementation in runtime. Those files (or classes specified inside them) may be accidentally dropped from the fat jar

@vitaliihonta vitaliihonta added the help wanted Extra attention is needed label Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-tools-support help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants