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

JRuby 1.7.2 with authlogic 3.x fails to boot (OpenSSL) #541

Closed
youngbrioche opened this issue Feb 19, 2013 · 10 comments
Closed

JRuby 1.7.2 with authlogic 3.x fails to boot (OpenSSL) #541

youngbrioche opened this issue Feb 19, 2013 · 10 comments

Comments

@youngbrioche
Copy link
Contributor

@youngbrioche youngbrioche commented Feb 19, 2013

When upgrading from JRuby 1.6.8 to 1.7.2 my application fails to boot within Tomcat 6 on Windows. Looks like this is somehow related to the bundled jruby-openssl in JRuby 1.7.*

The resulting line 1 in authlogic-3.2.0/lib/authlogic/crypto_providers/aes256.rb just does a plain

require "openssl"

Tomcat log output:

Feb 19, 2013 11:15:36 AM org.apache.catalina.core.ApplicationContext log
INFO: INFO: added application to pool, size now = 2
Feb 19, 2013 11:17:14 AM org.apache.catalina.core.ApplicationContext log
INFO: INFO: pool was empty - getting new application instance
Feb 19, 2013 11:17:28 AM org.apache.catalina.core.ApplicationContext log
SEVERE: ERROR: application error
org.jruby.rack.RackInitializationException: load error: openssl -- java.lang.NoClassDefFoundError: org/bouncycastle/asn1/DERBoolean
    from org/jruby/RubyKernel.java:1027:in `require'
    from C:/Program Files/Apache Software Foundation/Tomcat 6.0/temp/0-umt/WEB-INF/gems/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require'
    from C:/Program Files/Apache Software Foundation/Tomcat 6.0/temp/0-umt/WEB-INF/gems/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:236:in `load_dependency'
    from C:/Program Files/Apache Software Foundation/Tomcat 6.0/temp/0-umt/WEB-INF/gems/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require'
    from C:/Program Files/Apache Software Foundation/Tomcat 6.0/temp/0-umt/WEB-INF/gems/gems/authlogic-3.2.0/lib/authlogic/crypto_providers/aes256.rb:1:in `(root)'
    from org/jruby/RubyKernel.java:1027:in `require'
    from C:/Program Files/Apache Software Foundation/Tomcat 6.0/temp/0-umt/WEB-INF/gems/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:1:in `(root)'
    from C:/Program Files/Apache Software Foundation/Tomcat 6.0/temp/0-umt/WEB-INF/gems/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require'
    from C:/Program Files/Apache Software Foundation/Tomcat 6.0/temp/0-umt/WEB-INF/gems/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:236:in `load_dependency'
    from C:/Program Files/Apache Software Foundation/Tomcat 6.0/temp/0-umt/WEB-INF/gems/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require'
    from org/jruby/RubyArray.java:1613:in `each'
    from C:/Program Files/Apache Software Foundation/Tomcat 6.0/temp/0-umt/WEB-INF/gems/gems/authlogic-3.2.0/lib/authlogic.rb:60:in `(root)'
    from org/jruby/RubyKernel.java:1027:in `require'
    from C:/Program Files/Apache Software Foundation/Tomcat 6.0/temp/0-umt/WEB-INF/gems/gems/authlogic-3.2.0/lib/authlogic.rb:5:in `(root)'
    from C:/Program Files/Apache Software Foundation/Tomcat 6.0/temp/0-umt/WEB-INF/gems/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:1:in `(root)'
    from C:/Program Files/Apache Software Foundation/Tomcat 6.0/temp/0-umt/WEB-INF/gems/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require'
    from C:/Program Files/Apache Software Foundation/Tomcat 6.0/temp/0-umt/WEB-INF/gems/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:236:in `load_dependency'
    from org/jruby/RubyKernel.java:1027:in `require'
    from C:/Program Files/Apache Software Foundation/Tomcat 6.0/temp/0-umt/WEB-INF/gems/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require'
    from C:/Program Files/Apache Software Foundation/Tomcat 6.0/temp/0-umt/WEB-INF/gems/gems/iqvoc-4.0.7/lib/../config/engine.rb:6:in `(root)'
    from org/jruby/RubyKernel.java:1027:in `require'
    from C:/Program Files/Apache Software Foundation/Tomcat 6.0/temp/0-umt/WEB-INF/gems/gems/iqvoc-4.0.7/lib/iqvoc.rb:1:in `(root)'
    from org/jruby/RubyArray.java:1613:in `each'
    from C:/Program Files/Apache Software Foundation/Tomcat 6.0/temp/0-umt/WEB-INF/gems/gems/iqvoc-4.0.7/lib/iqvoc.rb:27:in `Iqvoc'
    from org/jruby/RubyArray.java:1613:in `each'
    from C:/Program Files/Apache Software Foundation/Tomcat 6.0/temp/0-umt/WEB-INF/gems/gems/iqvoc-4.0.7/lib/iqvoc.rb:25:in `(root)'
    from C:/Program Files/Apache Software Foundation/Tomcat 6.0/temp/0-umt/WEB-INF/gems/gems/bundler-1.2.3/lib/bundler/runtime.rb:1:in `(root)'
    from C:/Program Files/Apache Software Foundation/Tomcat 6.0/temp/0-umt/WEB-INF/gems/gems/bundler-1.2.3/lib/bundler/runtime.rb:68:in `require'
    from org/jruby/RubyKernel.java:1027:in `require'
    from C:/Program Files/Apache Software Foundation/Tomcat 6.0/temp/0-umt/WEB-INF/gems/gems/bundler-1.2.3/lib/bundler/runtime.rb:66:in `require'
    from org/jruby/RubyKernel.java:1027:in `require'
    from C:/Program Files/Apache Software Foundation/Tomcat 6.0/temp/0-umt/WEB-INF/gems/gems/bundler-1.2.3/lib/bundler/runtime.rb:55:in `require'
    from C:/Program Files/Apache Software Foundation/Tomcat 6.0/temp/0-umt/WEB-INF/gems/gems/bundler-1.2.3/lib/bundler.rb:128:in `require'
    from C:/Program Files/Apache Software Foundation/Tomcat 6.0/temp/0-umt/WEB-INF/config/application.rb:12:in `(root)'

    at org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:231)
    at org.jruby.rack.DefaultRackApplicationFactory.getApplication(DefaultRackApplicationFactory.java:58)
    at org.jruby.rack.PoolingRackApplicationFactory.createApplication(PoolingRackApplicationFactory.java:323)
    at org.jruby.rack.PoolingRackApplicationFactory.getApplication(PoolingRackApplicationFactory.java:171)
    at org.jruby.rack.DefaultRackDispatcher.getApplication(DefaultRackDispatcher.java:27)
    at org.jruby.rack.AbstractRackDispatcher.process(AbstractRackDispatcher.java:32)
    at org.jruby.rack.AbstractFilter.doFilter(AbstractFilter.java:66)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
    at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
    at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
    at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)
    at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
    at java.lang.Thread.run(Thread.java:662)
@youngbrioche
Copy link
Contributor Author

@youngbrioche youngbrioche commented Feb 19, 2013

I just tried JRuby 1.7.0 and 1.7.1 - both boot up flawlessly.

@BanzaiMan
Copy link
Member

@BanzaiMan BanzaiMan commented Mar 15, 2013

Could you check the jruby-openssl version? 0.8.4 might have been problematic; 0.8.5 should be a lot better.

@timhayman
Copy link

@timhayman timhayman commented Mar 20, 2013

I see the same error using JRuby 1.7.3 without using the jruby-openssl gem. I thought openssl was now included and the gem was unncessary with 1.7.3. And indeed, it works fine without the gem when running rails app from the command line. However, the warbled rails app running in tomcat causes the above error.

If I add the jruby-openssl (0.8.6) gem to the rails app gemfile then it works in tomcat (7.0) (and from command line) but I get many warnings like this (in tomcat):

.../WEB-INF/gems/gems/jruby-openssl-0.8.6/lib/shared/jruby-openssl.rb:16 warning: already initialized constant NO_PADDING

or this (from command line):

.../jruby-1.7.3/lib/ruby/gems/shared/gems/jruby-openssl-0.8.6/lib/shared/jruby-openssl.rb:16 warning: already initialized constant NO_PADDING

It seems that openssl in jruby 1.7.3 doesn't load properly when running in tomcat, but the jruby-openssl works both places, however, it duplicates code in jruby.

Could it be that the loading of the bouncy castle jar doesn't work when the stdlib is in a jar (jruby-stdlib.jar) itself? I notice bouncy-castle-java.rb uses Dir and File to locate bc* jars and I'm not sure how that works inside a jar.

@BanzaiMan
Copy link
Member

@BanzaiMan BanzaiMan commented Mar 27, 2013

Could you test the master? If you can't (or don't want to) build from the source, you can use http://ci.jruby.org/snapshots/master/

Thank you.

@youngbrioche
Copy link
Contributor Author

@youngbrioche youngbrioche commented Mar 27, 2013

I just tried it with

gem 'jruby-jars', '1.7.4.dev'

after installing the snapshot gem manually.

Still getting the same exception though :(

@rebelwarrior
Copy link

@rebelwarrior rebelwarrior commented Sep 25, 2013

Having the same problem on windows tomcat w/ Jruby 1.7.4 and a rails 4 application. Any solutions??

@wrightling
Copy link

@wrightling wrightling commented Oct 13, 2013

Same problem here, running on windows jboss w/Jruby 1.7.5 and a rails 4.0.0 application. Here's my rather small app, for reference. Watchman.

For that matter, I get exactly the same problem if I do nothing more than this:

rails new testapp -T
cd testapp
warble
# copy testapp.war to the deployment dir of JBOSS and wait for it to deploy
# visit <whateverurl>/testapp

For great justice, here is the top portion of the stack trace that shows up:

org.jruby.exceptions.RaiseException: (LoadError) load error: openssl -- java.lang.NoClassDefFoundError: org/bouncycastle/asn1/DERBoolean
    at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1082)
    at RUBY.(root)(f:/applications/commerce/tmp/jboss/tmp/vfs/temped13f787f8ebea1d/HW.war-1045ccb9ae94d57d/WEB-INF/gems/gems/activesupport-4.0.0/lib/active_support/key_generator.rb:2)
    at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1082)
    at RUBY.(root)(f:/applications/commerce/tmp/jboss/tmp/vfs/temped13f787f8ebea1d/HW.war-1045ccb9ae94d57d/WEB-INF/gems/gems/railties-4.0.0/lib/rails/application.rb:1)
    at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1082)
    at RUBY.(root)(f:/applications/commerce/tmp/jboss/tmp/vfs/temped13f787f8ebea1d/HW.war-1045ccb9ae94d57d/WEB-INF/gems/gems/railties-4.0.0/lib/rails/application.rb:3)
    at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1082)
    at RUBY.(root)(f:/applications/commerce/tmp/jboss/tmp/vfs/temped13f787f8ebea1d/HW.war-1045ccb9ae94d57d/WEB-INF/gems/gems/railties-4.0.0/lib/rails.rb:1)
    at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1082)
    at RUBY.(root)(f:/applications/commerce/tmp/jboss/tmp/vfs/temped13f787f8ebea1d/HW.war-1045ccb9ae94d57d/WEB-INF/gems/gems/railties-4.0.0/lib/rails.rb:9)
    at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1082)
    at RUBY.(root)(f:/applications/commerce/tmp/jboss/tmp/vfs/temped13f787f8ebea1d/HW.war-1045ccb9ae94d57d/WEB-INF/gems/gems/activerecord-4.0.0/lib/active_record/railtie.rb:1)
    at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1082)
    at RUBY.(root)(f:/applications/commerce/tmp/jboss/tmp/vfs/temped13f787f8ebea1d/HW.war-1045ccb9ae94d57d/WEB-INF/gems/gems/activerecord-4.0.0/lib/active_record/railtie.rb:2)
    at RUBY.(root)(f:/applications/commerce/tmp/jboss/tmp/vfs/temped13f787f8ebea1d/HW.war-1045ccb9ae94d57d/WEB-INF/config/application.rb:1)
    at RUBY.(root)(f:/applications/commerce/tmp/jboss/tmp/vfs/temped13f787f8ebea1d/HW.war-1045ccb9ae94d57d/WEB-INF/config/application.rb:4)
Caused by: java.lang.NoClassDefFoundError: org/bouncycastle/asn1/DERBoolean
    at org.jruby.ext.openssl.ASN1.<clinit>(ASN1.java:192)
    at org.jruby.ext.openssl.OpenSSLReal.createOpenSSL(OpenSSLReal.java:121)
    at org.jruby.ext.openssl.OSSLLibrary.load(OSSLLibrary.java:11)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:470)
    at org.jruby.javasupport.JavaMethod.invokeDirect(JavaMethod.java:328)
    at org.jruby.java.invokers.InstanceMethodInvoker.call(InstanceMethodInvoker.java:71)
    at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:346)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:204)
    at org.jruby.ast.CallTwoArgNode.interpret(CallTwoArgNode.java:59)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
    at org.jruby.ast.RootNode.interpret(RootNode.java:129)
    at org.jruby.evaluator.ASTInterpreter.INTERPRET_ROOT(ASTInterpreter.java:121)
    at org.jruby.Ruby.runInterpreter(Ruby.java:841)
    at org.jruby.Ruby.loadFile(Ruby.java:2726)
    at org.jruby.runtime.load.ExternalScript.load(ExternalScript.java:66)
    at org.jruby.runtime.load.LoadService.tryLoadingLibraryOrScript(LoadService.java:959)
    at org.jruby.runtime.load.LoadService.smartLoadInternal(LoadService.java:573)
    at org.jruby.runtime.load.LoadService.requireCommon(LoadService.java:457)
    at org.jruby.runtime.load.LoadService.require(LoadService.java:421)
    at org.jruby.RubyKernel.requireCommon(RubyKernel.java:1088)
    at org.jruby.RubyKernel.require19(RubyKernel.java:1082)
    at org.jruby.RubyKernel$INVOKER$s$1$0$require19.call(RubyKernel$INVOKER$s$1$0$require19.gen)
    at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneOrNBlock.call(JavaMethod.java:350)
    at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:61)
    at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:61)
    at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:326)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:170)
    at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
    at org.jruby.ast.RootNode.interpret(RootNode.java:129)
    at org.jruby.evaluator.ASTInterpreter.INTERPRET_ROOT(ASTInterpreter.java:121)
    at org.jruby.Ruby.runInterpreter(Ruby.java:841)
    at org.jruby.Ruby.loadFile(Ruby.java:2726)
    at org.jruby.runtime.load.ExternalScript.load(ExternalScript.java:66)
    at org.jruby.runtime.load.LoadService.tryLoadingLibraryOrScript(LoadService.java:959)
    at org.jruby.runtime.load.LoadService.smartLoadInternal(LoadService.java:573)
    at org.jruby.runtime.load.LoadService.requireCommon(LoadService.java:457)
    at org.jruby.runtime.load.LoadService.require(LoadService.java:421)
    at org.jruby.RubyKernel.requireCommon(RubyKernel.java:1088)
    at org.jruby.RubyKernel.require19(RubyKernel.java:1082)
    at org.jruby.RubyKernel$INVOKER$s$1$0$require19.call(RubyKernel$INVOKER$s$1$0$require19.gen)
    at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneOrNBlock.call(JavaMethod.java:350)
    at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:61)
    at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:61)
    at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:326)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:170)
    at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
    at org.jruby.ast.RootNode.interpret(RootNode.java:129)
    at org.jruby.evaluator.ASTInterpreter.INTERPRET_ROOT(ASTInterpreter.java:121)
    at org.jruby.Ruby.runInterpreter(Ruby.java:841)
    at org.jruby.Ruby.loadFile(Ruby.java:2726)
    at org.jruby.runtime.load.ExternalScript.load(ExternalScript.java:66)
    at org.jruby.runtime.load.LoadService.tryLoadingLibraryOrScript(LoadService.java:959)
    at org.jruby.runtime.load.LoadService.smartLoadInternal(LoadService.java:573)
    at org.jruby.runtime.load.LoadService.requireCommon(LoadService.java:457)
    at org.jruby.runtime.load.LoadService.require(LoadService.java:421)
    at org.jruby.RubyKernel.requireCommon(RubyKernel.java:1088)
    at org.jruby.RubyKernel.require19(RubyKernel.java:1082)
    at org.jruby.RubyKernel$INVOKER$s$1$0$require19.call(RubyKernel$INVOKER$s$1$0$require19.gen)
    at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneOrNBlock.call(JavaMethod.java:350)
    at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:61)
    at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:61)
    at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:326)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:170)
    at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
    at org.jruby.ast.RootNode.interpret(RootNode.java:129)
    at org.jruby.evaluator.ASTInterpreter.INTERPRET_ROOT(ASTInterpreter.java:121)
    at org.jruby.Ruby.runInterpreter(Ruby.java:841)
    at org.jruby.Ruby.loadFile(Ruby.java:2726)
    at org.jruby.runtime.load.ExternalScript.load(ExternalScript.java:66)
    at org.jruby.runtime.load.LoadService.tryLoadingLibraryOrScript(LoadService.java:959)
    at org.jruby.runtime.load.LoadService.smartLoadInternal(LoadService.java:573)
    at org.jruby.runtime.load.LoadService.requireCommon(LoadService.java:457)
    at org.jruby.runtime.load.LoadService.require(LoadService.java:421)
    at org.jruby.RubyKernel.requireCommon(RubyKernel.java:1088)
    at org.jruby.RubyKernel.require19(RubyKernel.java:1082)
    at org.jruby.RubyKernel$INVOKER$s$1$0$require19.call(RubyKernel$INVOKER$s$1$0$require19.gen)
    at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneOrNBlock.call(JavaMethod.java:350)
    at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:61)
    at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:61)
    at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:326)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:170)
    at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
    at org.jruby.ast.RootNode.interpret(RootNode.java:129)
    at org.jruby.evaluator.ASTInterpreter.INTERPRET_ROOT(ASTInterpreter.java:121)
    at org.jruby.Ruby.runInterpreter(Ruby.java:841)
    at org.jruby.Ruby.loadFile(Ruby.java:2726)
    at org.jruby.runtime.load.ExternalScript.load(ExternalScript.java:66)
    at org.jruby.runtime.load.LoadService.tryLoadingLibraryOrScript(LoadService.java:959)
    at org.jruby.runtime.load.LoadService.smartLoadInternal(LoadService.java:573)
    at org.jruby.runtime.load.LoadService.requireCommon(LoadService.java:457)
    at org.jruby.runtime.load.LoadService.require(LoadService.java:421)
    at org.jruby.RubyKernel.requireCommon(RubyKernel.java:1088)
    at org.jruby.RubyKernel.require19(RubyKernel.java:1082)
    at org.jruby.RubyKernel$INVOKER$s$1$0$require19.call(RubyKernel$INVOKER$s$1$0$require19.gen)
    at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneOrNBlock.call(JavaMethod.java:350)
    at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:61)
    at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:61)
    at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:326)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:170)
    at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
    at org.jruby.ast.RootNode.interpret(RootNode.java:129)
    at org.jruby.evaluator.ASTInterpreter.INTERPRET_ROOT(ASTInterpreter.java:121)
    at org.jruby.Ruby.runInterpreter(Ruby.java:841)
    at org.jruby.Ruby.loadFile(Ruby.java:2726)
    at org.jruby.runtime.load.ExternalScript.load(ExternalScript.java:66)
    at org.jruby.runtime.load.LoadService.tryLoadingLibraryOrScript(LoadService.java:959)
    at org.jruby.runtime.load.LoadService.smartLoadInternal(LoadService.java:573)
    at org.jruby.runtime.load.LoadService.requireCommon(LoadService.java:457)
    at org.jruby.runtime.load.LoadService.require(LoadService.java:421)
    at org.jruby.RubyKernel.requireCommon(RubyKernel.java:1088)
    at org.jruby.RubyKernel.require19(RubyKernel.java:1082)
    at org.jruby.RubyKernel$INVOKER$s$1$0$require19.call(RubyKernel$INVOKER$s$1$0$require19.gen)
    at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneOrNBlock.call(JavaMethod.java:350)
    at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:61)
    at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:61)
    at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:326)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:170)
    at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
    at org.jruby.ast.RootNode.interpret(RootNode.java:129)
    at org.jruby.evaluator.ASTInterpreter.INTERPRET_ROOT(ASTInterpreter.java:121)
    at org.jruby.Ruby.runInterpreter(Ruby.java:841)
    at org.jruby.Ruby.loadFile(Ruby.java:2726)
    at org.jruby.runtime.load.ExternalScript.load(ExternalScript.java:66)
    at org.jruby.runtime.load.LoadService.tryLoadingLibraryOrScript(LoadService.java:959)
    at org.jruby.runtime.load.LoadService.smartLoadInternal(LoadService.java:573)
    at org.jruby.runtime.load.LoadService.requireCommon(LoadService.java:457)
    at org.jruby.runtime.load.LoadService.require(LoadService.java:421)
    at org.jruby.RubyKernel.requireCommon(RubyKernel.java:1088)
    at org.jruby.RubyKernel.require19(RubyKernel.java:1082)
    at org.jruby.RubyKernel$INVOKER$s$1$0$require19.call(RubyKernel$INVOKER$s$1$0$require19.gen)
    at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneOrNBlock.call(JavaMethod.java:350)
    at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:61)
    at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:61)
    at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:326)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:170)
    at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
    at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
    at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:139)
    at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:182)
    at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:306)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:136)
    at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:60)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
    at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
    at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:139)
    at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:182)
    at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:306)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:136)
    at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:60)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
    at org.jruby.ast.RootNode.interpret(RootNode.java:129)
    at org.jruby.evaluator.ASTInterpreter.INTERPRET_ROOT(ASTInterpreter.java:121)
    at org.jruby.Ruby.evalScriptlet(Ruby.java:422)
    at org.jruby.Ruby.evalScriptlet(Ruby.java:399)
    at org.jruby.rack.rails.RailsRackApplicationFactory.createApplicationObject(RailsRackApplicationFactory.java:22)
    at org.jruby.rack.DefaultRackApplicationFactory$1.create(DefaultRackApplicationFactory.java:98)
    at org.jruby.rack.DefaultRackApplicationFactory$RackApplicationImpl.init(DefaultRackApplicationFactory.java:420)
    at org.jruby.rack.DefaultRackApplicationFactory.getApplication(DefaultRackApplicationFactory.java:111)
    at org.jruby.rack.PoolingRackApplicationFactory.createApplication(PoolingRackApplicationFactory.java:340)
    at org.jruby.rack.PoolingRackApplicationFactory.getApplicationImpl(PoolingRackApplicationFactory.java:180)
    at org.jruby.rack.RackApplicationFactoryDecorator.getApplication(RackApplicationFactoryDecorator.java:131)
    at org.jruby.rack.DefaultRackDispatcher.getApplication(DefaultRackDispatcher.java:37)
    at org.jruby.rack.AbstractRackDispatcher.process(AbstractRackDispatcher.java:32)
    at org.jruby.rack.AbstractFilter.doFilter(AbstractFilter.java:66)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
    at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
    at java.lang.Thread.run(Thread.java:724)
Caused by: java.lang.ClassNotFoundException: org.bouncycastle.asn1.DERBoolean
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at org.jruby.util.JRubyClassLoader.findClass(JRubyClassLoader.java:128)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 196 more
@bruceadams
Copy link
Contributor

@bruceadams bruceadams commented Oct 13, 2013

I wonder if this is related to #1071 and/or #1119

@kares
Copy link
Member

@kares kares commented Sep 6, 2014

this JRuby-OpenSSL issue should no longer be relevant in latest 1.7.x (>= 1.7.13) and shall be closed ...

@mkristian
Copy link
Member

@mkristian mkristian commented Sep 7, 2014

please try latest jruby and reopen issue it needed.

@mkristian mkristian closed this Sep 7, 2014
@enebo enebo added this to the JRuby 1.7.16 milestone Sep 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
9 participants