Jruby on mogrel does not find java-classes in jars!


#1

Hello!

I deployed a Jruby-On-Rails-Application on mongrel. The rails-part works
fine, but as soon as I try to call the include_class-method, it does not
find the required java-class, loaded from a jar (jruby does include it
in the classpath). Suprisingly, the java-package works fine in the same
code (for example java.lang.System.out.println “hello from java”) …

require “java”
require “#{RAILS_ROOT}/lib/checkout/checkout.jar”
require “#{RAILS_ROOT}/lib/checkout/svnkit.jar”
include_class “checkout.Files” <-- exception

Files.main main_args.to_java :String

Maybe someone can help me!!! Thanks in advance …


#2

Solved - I used the rails version 2.1.0 and it just works … :slight_smile:


#3

Well, it stopped working and I don’t know why … :frowning:

/Users/Chris/.gem/jruby/1.8/gems/activerecord-2.1.0/lib/active_record/observer.rb:35
warning: instance variable @observers not initialized
/Users/Chris/Documents/prog/aptana_workspace/SWAN/app/controllers/checkout_controller.rb:2
warning: Useless use of a variable in void context.
/Users/Chris/.gem/jruby/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:427
warning: instance variable @view_paths not initialized
/Users/Chris/.gem/jruby/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:427
warning: instance variable @view_paths not initialized
/Users/Chris/Documents/prog/aptana_workspace/SWAN/app/controllers/checkout_controller.rb:2
warning: instance variable @t not initialized
/Users/Chris/.gem/jruby/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:427
warning: instance variable @view_paths not initialized
/Users/Chris/.gem/jruby/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:427
warning: instance variable @view_paths not initialized
Exception `NameError’ at
/Users/Chris/.gem/jruby/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:278

  • uninitialized constant Com_mysql_jdbc_Driver
    Exception `NameError’ at
    /Users/Chris/.gem/jruby/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:278
  • uninitialized constant Com_mysql_jdbc_Driver
    Exception `ArgumentError’ at
    /Users/Chris/.gem/jruby/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:414
  • #ArgumentError:0x730e61
    /Users/Chris/.gem/jruby/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract_adapter.rb:85
    warning: instance variable @active not initialized
    cp =
    file:/Users/Chris/.gem/jruby/1.8/gems/mongrel-1.1.5-java/bin/…/lib/http11.jarfile:/Users/Chris/.gem/jruby/1.8/gems/activerecord-jdbc-adapter-0.9.1/lib/jdbc_adapter/jdbc_adapter_internal.jarfile:/usr/local/lib/ruby/gems/1.8/gems/jdbc-mysql-5.0.4/lib/mysql-connector-java-5.0.4-bin.jarfile:/Users/Chris/Documents/prog/aptana_workspace/SWAN/lib/checkout/svnkit.jarfile:/Users/Chris/Documents/prog/aptana_workspace/SWAN/lib/checkout/checkout.jar
    Exception `NameError’ at
    /Users/Chris/.gem/jruby/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:278
  • uninitialized constant Collection
    Exception `NameError’ at
    /Users/Chris/.gem/jruby/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:278
  • uninitialized constant Collection
    Exception `ArgumentError’ at
    /Users/Chris/.gem/jruby/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:414
  • #ArgumentError:0xfa1cea
    Exception `NameError’ at
    /Users/Chris/.gem/jruby/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:278
  • uninitialized constant Files
    Exception `NameError’ at
    /Users/Chris/.gem/jruby/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:278
  • uninitialized constant Files
    Exception `ArgumentError’ at
    /Users/Chris/.gem/jruby/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:414
  • #ArgumentError:0x41e035
    java.lang.ClassNotFoundException: checkout.Files
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:242)
    at
    org.jruby.javasupport.JavaSupport.loadJavaClass(JavaSupport.java:151)
    at
    org.jruby.javasupport.JavaSupport.loadJavaClassVerbose(JavaSupport.java:160)
    at org.jruby.javasupport.JavaClass.forNameVerbose(JavaClass.java:922)
    at org.jruby.javasupport.JavaClass.for_name(JavaClass.java:934)
    at org.jruby.javasupport.Java.get_proxy_class(Java.java:634)
    at
    org.jruby.javasupport.Java$JavaUtilities.get_proxy_class(Java.java:302)
    at
    org.jruby.javasupport.Java$JavaUtilities$s_method_1_0$RUBYINVOKER$get_proxy_class.call(org/jruby/javasupport/Java$JavaUtilities$s_method_1_0$RUBYINVOKER$get_proxy_class.gen)
    at
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:280)
    at
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:116)
    at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)
    at org.jruby.ast.ConstDeclNode.interpret(ConstDeclNode.java:94)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at org.jruby.ast.RootNode.interpret(RootNode.java:126)
    at
    org.jruby.evaluator.ASTInterpreter.evalWithBinding(ASTInterpreter.java:122)
    at org.jruby.RubyKernel.eval(RubyKernel.java:881)
    at
    org.jruby.RubyKernel$s_method_0_3$RUBYFRAMEDINVOKER$eval.call(org/jruby/RubyKernel$s_method_0_3$RUBYFRAMEDINVOKER$eval.gen)
    at
    org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:136)
    at
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:32)
    at
    org.jruby.ast.FCallManyArgsNode.interpret(FCallManyArgsNode.java:60)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at org.jruby.ast.IfNode.interpret(IfNode.java:111)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:68)
    at
    org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:202)
    at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:153)
    at org.jruby.runtime.Block.yield(Block.java:120)
    at org.jruby.RubyArray.each(RubyArray.java:1556)
    at
    org.jruby.RubyArray$i_method_0_0$RUBYFRAMEDINVOKER$each.call(org/jruby/RubyArray$i_method_0_0$RUBYFRAMEDINVOKER$each.gen)
    at
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83)
    at
    org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:63)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:68)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:156)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:133)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:246)
    at
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:280)
    at
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:116)
    at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:68)
    at org.jruby.ast.IfNode.interpret(IfNode.java:109)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:68)
    at org.jruby.ast.IfNode.interpret(IfNode.java:109)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:68)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:156)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:133)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:225)
    at org.jruby.RubyClass.finvoke(RubyClass.java:332)
    at org.jruby.RubyObject.send(RubyObject.java:1345)
    at
    org.jruby.RubyObject$i_method_multi$RUBYINVOKER$send.call(org/jruby/RubyObject$i_method_multi$RUBYINVOKER$send.gen)
    at
    org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:152)
    at
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:280)
    at
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:116)
    at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:68)
    at org.jruby.ast.IfNode.interpret(IfNode.java:109)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:156)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:133)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:204)
    at
    org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:60)
    at
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:260)
    at
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:75)
    at org.jruby.ast.VCallNode.interpret(VCallNode.java:82)
    at org.jruby.ast.IfNode.interpret(IfNode.java:111)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:68)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:156)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:133)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:330)
    at
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:320)
    at
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:198)
    at
    org.jruby.ast.FCallThreeArgNode.interpret(FCallThreeArgNode.java:40)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:156)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:133)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:204)
    at
    org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:60)
    at
    org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:60)
    at
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:260)
    at
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:75)
    at org.jruby.ast.VCallNode.interpret(VCallNode.java:82)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at
    org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:202)
    at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:190)
    at org.jruby.runtime.Block.yield(Block.java:133)
    at org.jruby.ast.YieldNode.interpret(YieldNode.java:95)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:68)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:156)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:133)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:225)
    at
    org.jruby.internal.runtime.methods.WrapperMethod.call(WrapperMethod.java:74)
    at
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:270)
    at
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:85)
    at
    org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:63)
    at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:61)
    at org.jruby.ast.ArrayNode.interpretPrimitive(ArrayNode.java:91)
    at org.jruby.ast.ArrayNode.interpret(ArrayNode.java:81)
    at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:61)
    at org.jruby.ast.LocalAsgnNode.interpret(LocalAsgnNode.java:120)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:68)
    at org.jruby.ast.IfNode.interpret(IfNode.java:109)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:156)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:133)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:204)
    at
    org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:60)
    at
    org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:60)
    at
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:260)
    at
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:75)
    at org.jruby.ast.VCallNode.interpret(VCallNode.java:82)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at org.jruby.ast.RescueNode.executeBody(RescueNode.java:222)
    at
    org.jruby.ast.RescueNode.interpretWithJavaExceptions(RescueNode.java:144)
    at org.jruby.ast.RescueNode.interpret(RescueNode.java:107)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:156)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:133)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:204)
    at
    org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:60)
    at
    org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:60)
    at
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:260)
    at
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:75)
    at org.jruby.ast.VCallNode.interpret(VCallNode.java:82)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at
    org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:202)
    at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:190)
    at org.jruby.runtime.Block.yield(Block.java:133)
    at org.jruby.ast.YieldNode.interpret(YieldNode.java:95)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:68)
    at org.jruby.ast.EnsureNode.interpret(EnsureNode.java:93)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:156)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:133)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:225)
    at
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:270)
    at
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:85)
    at
    org.jruby.ast.CallNoArgBlockPassNode.interpret(CallNoArgBlockPassNode.java:52)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at org.jruby.ast.IfNode.interpret(IfNode.java:111)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:156)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:133)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:225)
    at
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:270)
    at
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:85)
    at
    org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:63)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:156)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:133)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:225)
    at
    org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:80)
    at org.jruby.RubyClass.finvoke(RubyClass.java:332)
    at org.jruby.RubyObject.send(RubyObject.java:1345)
    at
    org.jruby.RubyObject$i_method_multi$RUBYINVOKER$send.call(org/jruby/RubyObject$i_method_multi$RUBYINVOKER$send.gen)
    at
    org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:152)
    at
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:280)
    at
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:116)
    at
    org.jruby.ast.FCallSpecialArgNode.interpret(FCallSpecialArgNode.java:39)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:68)
    at org.jruby.ast.EnsureNode.interpret(EnsureNode.java:93)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:156)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:133)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:330)
    at
    org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:72)
    at
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:320)
    at
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:198)
    at
    org.jruby.ast.FCallSpecialArgNode.interpret(FCallSpecialArgNode.java:43)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:68)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:156)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:133)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:330)
    at
    org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:72)
    at
    org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:72)
    at
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:320)
    at
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:198)
    at
    org.jruby.ast.FCallSpecialArgNode.interpret(FCallSpecialArgNode.java:43)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:68)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:156)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:133)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:288)
    at
    org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:68)
    at
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:300)
    at
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:157)
    at org.jruby.ast.CallTwoArgNode.interpret(CallTwoArgNode.java:59)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:156)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:133)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:288)
    at
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:300)
    at
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:157)
    at org.jruby.ast.CallTwoArgNode.interpret(CallTwoArgNode.java:59)
    at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:68)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:156)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:133)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:204)
    at
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:260)
    at
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:75)
    at org.jruby.ast.VCallNode.interpret(VCallNode.java:82)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:68)
    at org.jruby.ast.RescueNode.executeBody(RescueNode.java:222)
    at
    org.jruby.ast.RescueNode.interpretWithJavaExceptions(RescueNode.java:144)
    at org.jruby.ast.RescueNode.interpret(RescueNode.java:107)
    at org.jruby.ast.EnsureNode.interpret(EnsureNode.java:93)
    at org.jruby.ast.BeginNode.interpret(BeginNode.java:80)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at
    org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:202)
    at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:153)
    at org.jruby.runtime.Block.yield(Block.java:120)
    at
    org.jruby.libraries.ThreadLibrary$Mutex.synchronize(ThreadLibrary.java:159)
    at
    org.jruby.libraries.ThreadLibrary$Mutex$i_method_0_0$RUBYINVOKER$synchronize.call(org/jruby/libraries/ThreadLibrary$Mutex$i_method_0_0$RUBYINVOKER$synchronize.gen)
    at
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:270)
    at
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:85)
    at
    org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:63)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:156)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:133)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:204)
    at
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:260)
    at
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:75)
    at org.jruby.ast.VCallNode.interpret(VCallNode.java:82)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:68)
    at org.jruby.ast.IfNode.interpret(IfNode.java:109)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at org.jruby.ast.RescueNode.executeBody(RescueNode.java:222)
    at
    org.jruby.ast.RescueNode.interpretWithJavaExceptions(RescueNode.java:144)
    at org.jruby.ast.RescueNode.interpret(RescueNode.java:107)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:156)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:133)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:288)
    at
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:300)
    at
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:157)
    at org.jruby.ast.CallTwoArgNode.interpret(CallTwoArgNode.java:59)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:156)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:133)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:330)
    at
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:320)
    at
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:198)
    at org.jruby.ast.CallThreeArgNode.interpret(CallThreeArgNode.java:61)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:68)
    at
    org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:202)
    at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:153)
    at org.jruby.runtime.Block.yield(Block.java:120)
    at
    org.jruby.libraries.ThreadLibrary$Mutex.synchronize(ThreadLibrary.java:159)
    at
    org.jruby.libraries.ThreadLibrary$Mutex$i_method_0_0$RUBYINVOKER$synchronize.call(org/jruby/libraries/ThreadLibrary$Mutex$i_method_0_0$RUBYINVOKER$synchronize.gen)
    at
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:270)
    at
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:85)
    at
    org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:63)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:68)
    at org.jruby.ast.RescueNode.executeBody(RescueNode.java:222)
    at
    org.jruby.ast.RescueNode.interpretWithJavaExceptions(RescueNode.java:144)
    at org.jruby.ast.RescueNode.interpret(RescueNode.java:107)
    at org.jruby.ast.BeginNode.interpret(BeginNode.java:80)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at org.jruby.ast.IfNode.interpret(IfNode.java:111)
    at org.jruby.ast.IfNode.interpret(IfNode.java:111)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:68)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:156)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:133)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:288)
    at
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:300)
    at
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:157)
    at org.jruby.ast.CallTwoArgNode.interpret(CallTwoArgNode.java:59)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:68)
    at
    org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:202)
    at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:153)
    at org.jruby.runtime.Block.yield(Block.java:120)
    at org.jruby.RubyArray.each(RubyArray.java:1556)
    at
    org.jruby.RubyArray$i_method_0_0$RUBYFRAMEDINVOKER$each.call(org/jruby/RubyArray$i_method_0_0$RUBYFRAMEDINVOKER$each.gen)
    at
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:270)
    at
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:85)
    at
    org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:63)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:68)
    at org.jruby.ast.IfNode.interpret(IfNode.java:109)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:68)
    at org.jruby.ast.IfNode.interpret(IfNode.java:109)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:68)
    at org.jruby.ast.WhileNode.interpret(WhileNode.java:128)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:68)
    at org.jruby.ast.RescueNode.executeBody(RescueNode.java:222)
    at
    org.jruby.ast.RescueNode.interpretWithJavaExceptions(RescueNode.java:144)
    at org.jruby.ast.RescueNode.interpret(RescueNode.java:107)
    at org.jruby.ast.EnsureNode.interpret(EnsureNode.java:93)
    at org.jruby.ast.BeginNode.interpret(BeginNode.java:80)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:156)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:133)
    at
    org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:246)
    at
    org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:280)
    at
    org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:116)
    at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
    at
    org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:202)
    at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:190)
    at org.jruby.runtime.BlockBody.call(BlockBody.java:64)
    at org.jruby.runtime.BlockBody.call(BlockBody.java:70)
    at org.jruby.runtime.Block.call(Block.java:116)
    at org.jruby.RubyProc.call(RubyProc.java:205)
    at org.jruby.RubyProc.call(RubyProc.java:187)
    at org.jruby.internal.runtime.RubyRunnable.run(RubyRunnable.java:90)
    at java.lang.Thread.run(Thread.java:613)
    /Users/Chris/.gem/jruby/1.8/gems/actionpack-2.1.0/lib/action_controller/templates/rescues/_trace.erb:15
    warning: Ambiguous first argument; make sure.
    /Users/Chris/.gem/jruby/1.8/gems/actionpack-2.1.0/lib/action_controller/templates/rescues/_trace.erb:16
    warning: Ambiguous first argument; make sure.
    /Users/Chris/.gem/jruby/1.8/gems/actionpack-2.1.0/lib/action_controller/templates/rescues/_trace.erb:22
    warning: Ambiguous first argument; make sure.
    /Users/Chris/.gem/jruby/1.8/gems/mongrel-1.1.5-java/bin/…/lib/mongrel/cgi.rb:149
    warning: instance variable @status not initialized

[cp is my classpath - the jar’s are definitively in it ]