Issues with bouncy castle from within a war

what I can run fine from jruby rackup will not fly if ran from java i.e.
java -jar my_app.war

I have added jruby-openssl to my gemfile, I also grabbed the java jars
for bouncy castle and placed them in my lib folder since I believe those
are made available via the load path

this is happening on Mac OS X but again, it works fine via jruby, so
access is somehow prevented when packed. Any ideas ? thanks

I get the following stack below:

Nov 17, 2013 1:47:42 PM winstone.Logger logInternal
SEVERE: ERROR: initialization failed
org.jruby.rack.RackInitializationException: load error: jopenssl/load –
java.lang.NoClassDefFoundError: org/bouncycastle/asn1/DLSequence
from org/jruby/RubyKernel.java:1084:in require' from jar:file:/private/var/folders/11/tp1s234x3svdv_4m01n_lkt40000gn/T/warbler2254355935185306219webroot/src.war/WEB-INF/lib/jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:126:inrequire’
from
jar:file:/private/var/folders/11/tp1s234x3svdv_4m01n_lkt40000gn/T/warbler2254355935185306219webroot/src.war/WEB-INF/lib/jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:124:in
require' from jar:file:/private/var/folders/11/tp1s234x3svdv_4m01n_lkt40000gn/T/warbler2254355935185306219webroot/src.war/WEB-INF/lib/jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/shared/openssl.rb:1:in(root)’
from org/jruby/RubyKernel.java:1084:in require' from jar:file:/private/var/folders/11/tp1s234x3svdv_4m01n_lkt40000gn/T/warbler2254355935185306219webroot/src.war/WEB-INF/lib/jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:126:inrequire’
from
jar:file:/private/var/folders/11/tp1s234x3svdv_4m01n_lkt40000gn/T/warbler2254355935185306219webroot/src.war/WEB-INF/lib/jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:124:in
require' from jar:file:/private/var/folders/11/tp1s234x3svdv_4m01n_lkt40000gn/T/warbler2254355935185306219webroot/src.war/WEB-INF/lib/jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/2.0/net/https.rb:1:in(root)’
from org/jruby/RubyKernel.java:1084:in require' from jar:file:/private/var/folders/11/tp1s234x3svdv_4m01n_lkt40000gn/T/warbler2254355935185306219webroot/src.war/WEB-INF/lib/jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:126:inrequire’
from
jar:file:/private/var/folders/11/tp1s234x3svdv_4m01n_lkt40000gn/T/warbler2254355935185306219webroot/src.war/WEB-INF/lib/jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:124:in
require' from jar:file:/private/var/folders/11/tp1s234x3svdv_4m01n_lkt40000gn/T/warbler2254355935185306219webroot/src.war/WEB-INF/lib/jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/2.0/net/https.rb:22:in(root)’
from org/jruby/RubyKernel.java:1084:in require' from jar:file:/private/var/folders/11/tp1s234x3svdv_4m01n_lkt40000gn/T/warbler2254355935185306219webroot/src.war/WEB-INF/lib/jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:126:inrequire’
from
jar:file:/private/var/folders/11/tp1s234x3svdv_4m01n_lkt40000gn/T/warbler2254355935185306219webroot/src.war/WEB-INF/lib/jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:124:in
require' from /private/var/folders/11/tp1s234x3svdv_4m01n_lkt40000gn/T/warbler2254355935185306219webroot/src.war/WEB-INF/gems/gems/rest-client-1.6.7/lib/restclient.rb:1:in(root)’
from org/jruby/RubyKernel.java:1084:in require' from jar:file:/private/var/folders/11/tp1s234x3svdv_4m01n_lkt40000gn/T/warbler2254355935185306219webroot/src.war/WEB-INF/lib/jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:135:inrequire’
from
jar:file:/private/var/folders/11/tp1s234x3svdv_4m01n_lkt40000gn/T/warbler2254355935185306219webroot/src.war/WEB-INF/lib/jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:133:in
require' from jar:file:/private/var/folders/11/tp1s234x3svdv_4m01n_lkt40000gn/T/warbler2254355935185306219webroot/src.war/WEB-INF/lib/jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:124:inrequire’
from
/private/var/folders/11/tp1s234x3svdv_4m01n_lkt40000gn/T/warbler2254355935185306219webroot/src.war/WEB-INF/gems/gems/rest-client-1.6.7/lib/restclient.rb:6:in
(root)' from org/jruby/RubyKernel.java:1084:inrequire’
from
jar:file:/private/var/folders/11/tp1s234x3svdv_4m01n_lkt40000gn/T/warbler2254355935185306219webroot/src.war/WEB-INF/lib/jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55:in
require' from jar:file:/private/var/folders/11/tp1s234x3svdv_4m01n_lkt40000gn/T/warbler2254355935185306219webroot/src.war/WEB-INF/lib/jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53:inrequire’
from
/private/var/folders/11/tp1s234x3svdv_4m01n_lkt40000gn/T/warbler2254355935185306219webroot/src.war/WEB-INF/gems/gems/rest-client-1.6.7/lib/rest-client.rb:1:in
(root)' from org/jruby/RubyKernel.java:1084:inrequire’
from
jar:file:/private/var/folders/11/tp1s234x3svdv_4m01n_lkt40000gn/T/warbler2254355935185306219webroot/src.war/WEB-INF/lib/jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55:in
require' from jar:file:/private/var/folders/11/tp1s234x3svdv_4m01n_lkt40000gn/T/warbler2254355935185306219webroot/src.war/WEB-INF/lib/jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53:inrequire’
from
/private/var/folders/11/tp1s234x3svdv_4m01n_lkt40000gn/T/warbler2254355935185306219webroot/src.war/WEB-INF/gems/gems/rest-client-1.6.7/lib/rest-client.rb:2:in
(root)' from org/jruby/RubyKernel.java:1084:inrequire’
from
jar:file:/private/var/folders/11/tp1s234x3svdv_4m01n_lkt40000gn/T/warbler2254355935185306219webroot/src.war/WEB-INF/lib/jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55:in
require' from jar:file:/private/var/folders/11/tp1s234x3svdv_4m01n_lkt40000gn/T/warbler2254355935185306219webroot/src.war/WEB-INF/lib/jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53:inrequire’
from /private/var/folders/11/tp1s234x3

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs