[go: nahoru, domu]

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

Netty version is not determined when using a fat jar #182

Closed
tobiasschaefer opened this issue Jan 26, 2021 · 0 comments
Closed

Netty version is not determined when using a fat jar #182

tobiasschaefer opened this issue Jan 26, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@tobiasschaefer
Copy link
Collaborator
tobiasschaefer commented Jan 26, 2021

Running
./gradlew clean build && java -jar micronaut-camunda-bpm-example/build/libs/micronaut-camunda-bpm-example-0.0.1-SNAPSHOT-all.jar will not determine the Netty Version but logs
WARN i.n.m.c.b.f.MnTelemetryRegistry - Unable to identify the application server for the telemetry data!

Notes

  • it works when started in IntelliJ
  • it doesn't work in the fat jar created by the shadow plugin
  • Version.identify() only returns {netty-codec-http2=netty-codec-http2-4.1.58.Final.10b03e6}

This also fails for docker which uses the fat-jar:

  1. Save micronaut-camunda-bpm-example/Dockerfile:
FROM openjdk:14-alpine
COPY build/libs/micronaut-camunda-bpm-example-*-all.jar app.jar
EXPOSE 8080
CMD ["java", "-Dcom.sun.management.jmxremote", "-Xmx128m", "-jar", "app.jar"]
  1. execute
cd micronaut-camunda-bpm-example
docker build --tag myapp .
docker run myapp
@tobiasschaefer tobiasschaefer added the bug Something isn't working label Jan 26, 2021
@tobiasschaefer tobiasschaefer changed the title Netty version is not determined for Netty when using a fat jar Netty version is not determined when using a fat jar Jan 26, 2021
@TitusLabs TitusLabs self-assigned this Jan 27, 2021
tobiasschaefer added a commit to tobiasschaefer/micronaut-camunda-bpm that referenced this issue Jan 27, 2021
tobiasschaefer added a commit to tobiasschaefer/micronaut-camunda-bpm that referenced this issue Jan 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants