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

java.lang.module.ResolutionException #5988

Closed
aonemd opened this issue Dec 2, 2019 · 2 comments
Closed

java.lang.module.ResolutionException #5988

aonemd opened this issue Dec 2, 2019 · 2 comments

Comments

@aonemd
Copy link

@aonemd aonemd commented Dec 2, 2019

Environment

  • jruby-9.2.9.0 installed via ruby-install

  • Arch Linux with kernel 5.3.13

  • Application/framework version (e.g. Rails, Sinatra)

$ java -version

openjdk version "10.0.2" 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13)
OpenJDK 64-Bit Server VM (build 10.0.2+13, mixed mode)
  • Environment variables
export JAVA_HOME='/usr/lib/jvm/java-10-openjdk'
export JAVA_OPTS='-XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee'

Expected Behavior

$ jruby -v

# should print the version number

Actual Behavior

$ jruby -v

Error occurred during initialization of boot layer
java.lang.module.ResolutionException: Module org.jruby.dist contains package javax.annotation, module java.xml.ws.annotation exports package javax.annotation to org.jruby.dist
@headius
Copy link
Member

@headius headius commented Dec 3, 2019

I don't think we need anything from that package at runtime, so I'll make sure it's not being included in the jar.

@headius headius closed this as completed in 7d5a591 Dec 3, 2019
@headius
Copy link
Member

@headius headius commented Dec 3, 2019

Should be fixed on master. I've filtered out the javax.annotation artifact from all shaded jars.

@enebo enebo added this to the JRuby 9.2.10.0 milestone Feb 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants