JRuby部署到Tomcat - org.jruby.rack.RackInitializationException

时间:2013-04-22 17:03:44

标签: ruby-on-rails tomcat jruby rack

我让我的应用程序运行并在WeBRICK和Trinidad中完美地工作。

问题是现在我需要在Tomcat中进行部署。

我使用Jruby和Rails 3,当我创建部署时,它失败并显示当前消息:

SEVERE: ERROR: unable to create shared application instance

org.jruby.rack.RackInitializationException: load error: /usr/local/webservices/tmp/0-SPARK/WEB-INF/config/environment -- java.lang.NullPointerException: null

    from org/jruby/RubyKernel.java:1027:in `require'

    from /usr/local/webservices/tomcat-servers/tctqan04/work/Catalina/localhost/SPARK/loader/jruby/rack/rails/environment3.rb:23:in `load_environment'

    from /usr/local/webservices/tomcat-servers/tctqan04/work/Catalina/localhost/SPARK/loader/jruby/rack/rails_booter.rb:65:in `load_environment'

    from <script>:1:in `(root)'

是否有人知道问题可能是什么以及如何解决?

问候。

0 个答案:

没有答案