Error with Rails 3 and Tomcat

I’m getting a Rack error when trying to run a default Rails app under
Tomcat:

SEVERE: Application Error
org.jruby.rack.RackInitializationException: wrong # of arguments(4 for
3)
from
/Users/csevans/apache-tomcat-6.0.26/webapps/tctest/WEB-INF/gems/gems/actionpack-3.0.0.beta2/lib/action_disp
atch/routing/route_set.rb:277:in new' from /Users/csevans/apache-tomcat-6.0.26/webapps/tctest/WEB-INF/gems/gems/actionpack-3.0.0.beta2/lib/action_disp atch/routing/route_set.rb:277:inadd_route’
from
/Users/csevans/apache-tomcat-6.0.26/webapps/tctest/WEB-INF/gems/gems/actionpack-3.0.0.beta2/lib/action_disp
atch/routing/mapper.rb:193:in match' from /Users/csevans/apache-tomcat-6.0.26/webapps/tctest/WEB-INF/gems/gems/actionpack-3.0.0.beta2/lib/action_disp atch/routing/mapper.rb:330:inmatch’

I created a fresh test app called tctest, generated a index
controller, added the following to my route.rb:

root :to => “home#index”

and removed the default index.html in the public folder.

This is under Rails 3.0.0.beta 2, apache-tomcat-6.0.26 , warbler 1.0.1.

Any thoughts where I should look to debug this?


Chris


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

I got the same error yesterday, I think there is a problem with
rack-mount
but I couldn’t verify it

On Tue, Apr 13, 2010 at 9:12 AM, Chris E. [email protected]
wrote:

   from /Users/csevans/apache-tomcat-6.0.26/webapps/tctest/WEB-INF/gems/gems/actionpack-3.0.0.beta2/lib/action_disp

This is under Rails 3.0.0.beta 2, apache-tomcat-6.0.26 , warbler 1.0.1.

Any thoughts where I should look to debug this?

You need a jruby 1.5 development snapshot for Rails 3 (specifically
rack-mount) to work properly. 1.5RC1 should be available today or
tomorrow, or grab 1.5dev complete jar from
http://ci.jruby.org/snapshots.

The relevant bug is here: http://jira.codehaus.org/browse/JRUBY-4649

/Nick


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

FYI, I appear to be getting the same probem with yesterday’s snapshot:

jruby 1.5.0.dev (ruby 1.8.7 patchlevel 249) (2010-04-13 e7e79b4) (Java
HotSpot™ 64-Bit Server VM 1.6.0_13) [x86_64-java]

I’m still looking into to make sure I don’t have multiple versions, etc.


Chris

On Tue, Apr 13, 2010 at 11:43 AM, Nick S. [email protected]
wrote:

atch/routing/mapper.rb:193:in `match’
and removed the default index.html in the public folder.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Correction, this is working for me now. I blew away the existing
tomcat webapp and working dir, recreated the war file and deployed.
All worked like a champ - thanks all!

On Tue, Apr 13, 2010 at 9:28 PM, Chris E. [email protected]
wrote:

On Tue, Apr 13, 2010 at 11:43 AM, Nick S. [email protected] wrote:

atch/routing/mapper.rb:193:in `match’
and removed the default index.html in the public folder.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email