You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a runnable jar (created by jruby-gradle plugin) when it gets executed it produces
$ java -jar my.jar
The signal USR1 is in use by the JVM and will not work correctly on this platform
Puma starting in single mode...
* Version 2.7.1, codename: Earl of Sandwich Partition
* Min threads: 32, max threads: 64
* Environment: development
* Loaded config/environment/default
* Loaded config/environment/development.rb
! Unable to load application
LoadError: load error: fast-rsa-engine -- java.lang.SecurityException: class "org.bouncycastle.jcajce.provider.asymmetric.rsa.DigestSignatureSpi"'s signer information does not match signer information of other classes in the same package
require at org/jruby/RubyKernel.java:1040
require at uri:classloader:/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:54
(root) at /Users/cmeier/projects/active/my.jar!/gems/keymaster-client-3.0.120/lib/keymaster-client.rb:1
require at org/jruby/RubyKernel.java:1040
require at uri:classloader:/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:128
require at uri:classloader:/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:121
(root) at uri:classloader:/lib/keymaster.rb:1
require at org/jruby/RubyKernel.java:1040
require at uri:classloader:/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:54
(root) at uri:classloader:/lib/keymaster.rb:1
require at org/jruby/RubyKernel.java:1040
require at uri:classloader:/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:54
(root) at uri:classloader:/lib/metron.rb:1
require at org/jruby/RubyKernel.java:1040
require at uri:classloader:/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:54
(root) at uri:classloader:/lib/metron.rb:56
instance_eval at org/jruby/RubyBasicObject.java:1574
(root) at uri:classloader:/config/boot.rb:1
(root) at uri:classloader:/config/boot.rb:16
eval at org/jruby/RubyKernel.java:1079
(root) at config.ru:1
new_from_string at config.ru:10
initialize at /Users/cmeier/projects/active/my.jar!/gems/rack-1.5.5/lib/rack/builder.rb:55
new_from_string at config.ru:0
new_from_string at /Users/cmeier/projects/active/my.jar!/gems/rack-1.5.5/lib/rack/builder.rb:49
parse_file at /Users/cmeier/projects/active/my.jar!/gems/rack-1.5.5/lib/rack/builder.rb:40
(root) at classpath:jar-bootstrap.rb:33
the jar-bootstrap.rb files (which gets executed by the java main):
which shows that the bouncy castle jars is loaded twice. any of these uncommented require from above will ensure that the bouncy castle jars are loaded only once, as they implicitly require jar-dependencies which ensures that those jars are loaded only once.
tried to reduce the application but did not succeed.
The text was updated successfully, but these errors were encountered:
so this seems as the issue you were afraid of since we avoided a hard dependency on jar-dependencies ?
... BC seems on the class-path twice - so if you feel like this falls all under there I have nothing against forcing a "hard" jar-dependencies gem dependency once again.
I have a runnable jar (created by jruby-gradle plugin) when it gets executed it produces
the jar-bootstrap.rb files (which gets executed by the java main):
uncommenting any single of the require will fix the problem.
following jars get loaded by jruby-classloader
which shows that the bouncy castle jars is loaded twice. any of these uncommented require from above will ensure that the bouncy castle jars are loaded only once, as they implicitly require jar-dependencies which ensures that those jars are loaded only once.
tried to reduce the application but did not succeed.
The text was updated successfully, but these errors were encountered: