NoMethodError at / undefined方法`call'对于

时间:2015-06-24 16:50:48

标签: ruby-on-rails ruby gem

加载我负责的ror网站时出现此错误。奇怪的是它从war文件中部署,自上次部署以来没有改变。当我重新启动tomcat时,它经常随机发生。 Backtrace如下;

file:/var/lib/tomcat8/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-rack-1.1.16-lib-jruby-rack-1.1.16.jar!/rack/handler/servlet.rb in call

line22: self.class.response.new(@app.call(create_env(servlet_env)))

我假设这是一个gem文件的问题。为什么会发生这种情况,因为使用相同设置的其他网站没有这个问题?我该怎么做才能阻止这种情况发生?

1 个答案:

答案 0 :(得分:0)

The problem seemed to be a poor deployment as when i redepoyed the application it worked this time. No understanding of why though.