Thursday, September 16, 2010

jruby-rack error

After I deploy the war file created from warble to tomcat-5.5.27.
It gave me this error:
org.jruby.rack.RackInitializationException: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getContextPath()Ljava/lang/String;

Goggling, someone sugguest downgrade to jruby-rack to 0.9.6.
But I can't install this version, it complain they can't find it.

Then I try to deploy to tomcat 6.0.29, it looks fine now. :)
It turn out the ServletContext.getContextPath() is in servlet 2.5 spec, tmcat-5.5 just servlet 2.4.

Reference:

No comments: