使用 warbler 将 Rails 应用程序部署到 tomcat 时出现问题 - 未定义方法“getProperty”
我正在尝试将我们的应用程序部署到 Hardy 上的独立 tomcat 5.5 上。
生成的 war 文件已解压(看起来正确),但无法加载并给出以下错误:
Application initialization failed: undefined method `getProperty' for Java::JavaLang::System:Class
from file:/var/lib/tomcat5.5/webapps/scaleup/WEB-INF/lib/jruby-rack-1.0.4.jar!/jruby/rack/core_ext.rb:26
from file:/var/lib/tomcat5.5/webapps/scaleup/WEB-INF/lib/jruby-rack-1.0.4.jar!/jruby/rack/core_ext.rb:36:in `require'
from file:/var/lib/tomcat5.5/webapps/scaleup/WEB-INF/lib/jruby-rack-1.0.4.jar!/jruby/rack.rb:36
from file:/var/lib/tomcat5.5/webapps/scaleup/WEB-INF/lib/jruby-rack-1.0.4.jar!/jruby/rack.rb:8:in `require'
from file:/var/lib/tomcat5.5/webapps/scaleup/WEB-INF/lib/jruby-rack-1.0.4.jar!/rack/handler/servlet.rb:8
from file:/var/lib/tomcat5.5/webapps/scaleup/WEB-INF/lib/jruby-rack-1.0.4.jar!/rack/handler/servlet.rb:1:in `require'
from <script>:1
我使用的版本:
JRuby 1.5.6
Ruby on Rails 3.0.3
JRuby-Rack 1.0.4
在服务器上:
tomcat 5.5.25
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
提前感谢任何帮助! 克里斯
I'm trying to deploy our app to a standalone tomcat 5.5 on hardy.
The resulting war file is unpacked (correctly as it seems) but won't load and gives me the following error:
Application initialization failed: undefined method `getProperty' for Java::JavaLang::System:Class
from file:/var/lib/tomcat5.5/webapps/scaleup/WEB-INF/lib/jruby-rack-1.0.4.jar!/jruby/rack/core_ext.rb:26
from file:/var/lib/tomcat5.5/webapps/scaleup/WEB-INF/lib/jruby-rack-1.0.4.jar!/jruby/rack/core_ext.rb:36:in `require'
from file:/var/lib/tomcat5.5/webapps/scaleup/WEB-INF/lib/jruby-rack-1.0.4.jar!/jruby/rack.rb:36
from file:/var/lib/tomcat5.5/webapps/scaleup/WEB-INF/lib/jruby-rack-1.0.4.jar!/jruby/rack.rb:8:in `require'
from file:/var/lib/tomcat5.5/webapps/scaleup/WEB-INF/lib/jruby-rack-1.0.4.jar!/rack/handler/servlet.rb:8
from file:/var/lib/tomcat5.5/webapps/scaleup/WEB-INF/lib/jruby-rack-1.0.4.jar!/rack/handler/servlet.rb:1:in `require'
from <script>:1
Versions I use:
JRuby 1.5.6
Ruby on Rails 3.0.3
JRuby-Rack 1.0.4
On the server:
tomcat 5.5.25
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Thanks in advance for any help!
Chris
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请尝试使用 apache-tomcat-6.0.29。我的tomcat5也有很多问题。
Try apache-tomcat-6.0.29 instead. i have a lot of problems with tomcat5 too.