jrubyonrails - JRuby on Rails app on and JBoss 4.2.0/Tomcat 5.5 -


my jruby on rails app works fine on tomcat 6.0, when deploy on company's webfarm jboss 4.2.0/tomcat 5.5 (servlet api 2.4) fails following stack trace:

java.lang.arrayindexoutofboundsexception: 0 @ com.kenai.jaffl.provider.jffi.asmlibraryloader.generatebufferinvocation(asmlibraryloader.java:548) @ com.kenai.jaffl.provider.jffi.asmlibraryloader.generatemethod(asmlibraryloader.java:511) @ com.kenai.jaffl.provider.jffi.asmlibraryloader.generateinterfaceimpl(asmlibraryloader.java:223) @ com.kenai.jaffl.provider.jffi.asmlibraryloader.loadlibrary(asmlibraryloader.java:125) @ com.kenai.jaffl.provider.jffi.provider.loadlibrary(provider.java:31) @ com.kenai.jaffl.provider.jffi.provider.loadlibrary(provider.java:25) @ com.kenai.jaffl.library.loadlibrary(library.java:76) @ com.kenai.jaffl.library.loadlibrary(library.java:48) @ org.jruby.ext.socket.rubyunixsocket.tryunixdomainsocket(rubyunixsocket.java:167) @ org.jruby.ext.socket.rubysocket$service.load(rubysocket.java:103) @ org.jruby.runtime.load.loadservice.reflectedload(loadservice.java:384) @ org.jruby.ext.lateloadinglibrary.load(lateloadinglibrary.java:49) @ org.jruby.runtime.load.loadservice.tryloadinglibraryorscript(loadservice.java:671) @ org.jruby.runtime.load.loadservice.smartload(loadservice.java:314) @ org.jruby.runtime.load.loadservice.require(loadservice.java:357) @ org.jruby.runtime.load.loadservice.lockandrequire(loadservice.java:289) @ org.jruby.rubykernel.requirecommon(rubykernel.java:984) @ org.jruby.rubykernel.require(rubykernel.java:967) @ org.jruby.rubykernel$s_method_1_0$rubyframedinvoker$require.call(org/jruby/rubykernel$s_method_1_0$rubyframedinvoker$require.gen:65535) @ org.jruby.internal.runtime.methods.javamethod$javamethodoneornblock.call(javamethod.java:319) @ org.jruby.internal.runtime.methods.aliasmethod.call(aliasmethod.java:61) @ org.jruby.runtime.callsite.cachingcallsite.call(cachingcallsite.java:146) @ ruby.jit.require_120f9897b5f59b6b5fa66bc56e0277183ea7eaa5.rescue_1$ruby$__rescue___0(custom_require.rb:31) @ ruby.jit.require_120f9897b5f59b6b5fa66bc56e0277183ea7eaa5.__file__(lruby.jit.require_120f9897b5f59b6b5fa66bc56e0277183ea7eaa5;lorg.jruby.runtime.threadcontext;lorg.jruby.runtime.builtin.irubyobject;lorg.jruby.runtime.builtin.irubyobject;lorg.jruby.runtime.block;)lorg.jruby.runtime.builtin.irubyobject;(custom_require.rb:???) @ ruby.jit.require_120f9897b5f59b6b5fa66bc56e0277183ea7eaa5.__file__(lorg.jruby.runtime.threadcontext;lorg.jruby.runtime.builtin.irubyobject;lorg.jruby.runtime.builtin.irubyobject;lorg.jruby.runtime.block;)lorg.jruby.runtime.builtin.irubyobject;(custom_require.rb:???) @ org.jruby.internal.runtime.methods.jittedmethod.call(jittedmethod.java:153) @ org.jruby.runtime.callsite.cachingcallsite.cacheandcall(cachingcallsite.java:309) @ org.jruby.runtime.callsite.cachingcallsite.call(cachingcallsite.java:148) @ org.jruby.ast.fcalloneargnode.interpret(fcalloneargnode.java:36) @ org.jruby.ast.newlinenode.interpret(newlinenode.java:104) @ org.jruby.ast.blocknode.interpret(blocknode.java:71) @ org.jruby.ast.rootnode.interpret(rootnode.java:129) 

and then:

org.jruby.rack.rackinitializationexception: stack level deep file:/home/tkjbgrpd/jboss/eap4.2/tmp/deploy/tmp23048subwire-exp.war/web-inf/lib/jruby-stdlib-1.5.3.jar!/meta-inf/jruby.home/lib/ruby/site_ruby/1.8/rubygems/version.rb:298:in `<=>' file:/home/tkjbgrpd/jboss/eap4.2/tmp/deploy/tmp23048subwire-exp.war/web-inf/lib/jruby-stdlib-1.5.3.jar!/meta-inf/jruby.home/lib/ruby/site_ruby/1.8/rubygems/requirement.rb:17 file:/home/tkjbgrpd/jboss/eap4.2/tmp/deploy/tmp23048subwire-exp.war/web-inf/lib/jruby-stdlib-1.5.3.jar!/meta-inf/jruby.home/lib/ruby/site_ruby/1.8/rubygems/requirement.rb:129:in `call' file:/home/tkjbgrpd/jboss/eap4.2/tmp/deploy/tmp23048subwire-exp.war/web-inf/lib/jruby-stdlib-1.5.3.jar!/meta-inf/jruby.home/lib/ruby/site_ruby/1.8/rubygems/requirement.rb:129:in `satisfied_by?' file:/home/tkjbgrpd/jboss/eap4.2/tmp/deploy/tmp23048subwire-exp.war/web-inf/lib/jruby-stdlib-1.5.3.jar!/meta-inf/jruby.home/lib/ruby/site_ruby/1.8/rubygems/requirement.rb:129:in `all?' file:/home/tkjbgrpd/jboss/eap4.2/tmp/deploy/tmp23048subwire-exp.war/web-inf/lib/jruby-stdlib-1.5.3.jar!/meta-inf/jruby.home/lib/ruby/site_ruby/1.8/rubygems/requirement.rb:129:in `satisfied_by?' file:/home/tkjbgrpd/jboss/eap4.2/tmp/deploy/tmp23048subwire-exp.war/web-inf/lib/jruby-stdlib-1.5.3.jar!/meta-inf/jruby.home/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:202:in `=~' /home/tkjbgrpd/jboss/eap4.2/tmp/deploy/tmp23048subwire-exp.war/web-inf/gems/gems/bundler-1.0.2/lib/bundler/index.rb:41:in `search_for_all_platforms'  ... 321 levels... 

thanks, arkadiy

first note jruby-rack changed servlet 2.5 of 0.9.7 release. in order run on 5.5 you'll have downgrade 0.9.6 or earlier. may bit tricky warbler dependencies can manually adjust jars in warbler config file using config.java_libs.

as errors above, haven't seen them before. thing comes mind native/ffi support doesn't work in containers , may need disable -djruby.native.enabled=false.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -