Skip to content

Instantly share code, notes, and snippets.

include_class 'org.mortbay.jetty.webapp.WebAppContext'
include_class 'org.jruby.rack.RackFilter'
webapp = WebAppContext.new(server, File.expand_path(RAILS_ROOT) + "/public", "/")
rack = webapp.servletHandler.newFilterHolder(RackFilter)
"no newFilterHolder with arguments matching [class org.jruby.RubyClass] on object #<Java::OrgMortbayJettyServlet::ServletHandler:0x700ff8 @java_object=ServletHandler@117ad7b>"
Jetty API:
.......F.....Exception in thread "ActiveMQ Session Task" java.lang.VerifyError: class JRuby$$Rack$$Queues$$LocalRackApplication_685969874 overrides final method getRuntime.()Lorg/jruby/Ruby;
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:698)
at org.jruby.util.JRubyClassLoader.defineClass(JRubyClassLoader.java:39)
at org.jruby.java.codegen.RealClassGenerator.defineRealImplClass(RealClassGenerator.java:459)
at org.jruby.java.codegen.RealClassGenerator.createRealImplClass(RealClassGenerator.java:70)
at org.jruby.javasupport.Java.generateRealClass(Java.java:1169)
at org.jruby.java.proxies.JavaInterfaceTemplate$9.call(JavaInterfaceTemplate.java:269)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:182)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:178)