HI All,
I have a small jruby 1.7.5 rails 4.0.0 application
(GitHub - wrightling/watchman) and am working to get it
deployed into one of our company’s app servers - a Windows server
running Jboss 7.1.1, JDK 1.7.
I have tried both Warbler 1.3.8 (from rubygems) and 1.3.9.dev (the
rails4 branch).
I run “warble” with no special options to generate the war file, and
looking at the exploded version it appears fine.
I copy this war file up to the deployment directory of our app server,
and after deployment visit the app’s URL, where I see the exception
traces shown (in part) below.
In fact, it isn’t specific to my app. I have also reproduced by doing
the following, as I reported in
rails new testapp -T
cd testapp
warble
copy testapp.war to the deployment dir of JBOSS and wait for it to
deploy
visit /testapp
I appreciate any tips on things I can try or further information I can
gather.
Stack trace is below my signature.
warren wright
//// 972-839-8849
//// @wrightling
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-c91c70ef489449dc/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-c91c70ef489449dc/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-c91c70ef489449dc/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-c91c70ef489449dc/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-c91c70ef489449dc/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-c91c70ef489449dc/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-c91c70ef489449dc/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-c91c70ef489449dc/WEB-INF/config/application.rb:1)
at
RUBY.(root)(f:/applications/commerce/tmp/jboss/tmp/vfs/temped13f787f8ebea1d/HW.war-c91c70ef489449dc/WEB-INF/config/application.rb:4)
Caused by: java.lang.NoClassDefFoundError:
org/bouncycastle/asn1/DERBoolean
at org.jruby.ext.openssl.ASN1.(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