2

我正在将 Rails 应用程序部署到 tomcat6 服务器。

一切似乎都运行良好,但是当我尝试访问网站上的任何页面时出现 500 错误。该错误信息不是很丰富(来自 tomcat 日志文件):

Dec 16, 2012 11:37:56 AM org.apache.catalina.core.ApplicationContext log
SEVERE: INFO: failed to capture exception message
org.jruby.exceptions.RaiseException: (ArgumentError) wrong number of arguments (1 for 2)
    at RUBY.capture(file:/usr/local/tomcat6/webapps/myapp/WEB-INF/lib/gems-gems-jruby-rack-1.1.12-lib-jruby-rack-1.1.12.jar!/jruby/rack/capture.rb:48)
    at RUBY.capture(file:/usr/local/tomcat6/webapps/myapp/WEB-INF/lib/gems-gems-jruby-rack-1.1.12-lib-jruby-rack-1.1.12.jar!/jruby/rack/capture.rb:59)
    at RUBY.capture(file:/usr/local/tomcat6/webapps/myapp/WEB-INF/lib/gems-gems-jruby-rack-1.1.12-lib-jruby-rack-1.1.12.jar!/jruby/rack/capture.rb:69)
    at RUBY.capture(file:/usr/local/tomcat6/webapps/myapp/WEB-INF/lib/gems-gems-jruby-rack-1.1.12-lib-jruby-rack-1.1.12.jar!/jruby/rack/capture.rb:82)
    at RUBY.capture(file:/usr/local/tomcat6/webapps/myapp/WEB-INF/lib/gems-gems-jruby-rack-1.1.12-lib-jruby-rack-1.1.12.jar!/jruby/rack/capture.rb:116)
Dec 16, 2012 11:37:56 AM org.apache.catalina.core.ApplicationContext log
INFO: DEBUG: resetting rack response due exception

我的相关行Gemfile.lock

warbler (1.3.6)
  jruby-jars (>= 1.4.0)
  jruby-rack (>= 1.0.0)
  rake (>= 0.8.7)
  rubyzip (>= 0.9.4)
jruby-jars (1.7.1)
jruby-rack (1.1.12)
rake (10.0.3)
rubyzip (0.9.9)

我正在$ rake war使用. 我也尝试过使用该选项,并且两者都打开,但我仍然收到相同的错误消息。 config.features = %w(compiled)config/warble.rbgemjar

我怎样才能找到这个问题?

4

0 回答 0