使用 warbler 将 Rails 应用程序部署到 tomcat 时出现问题 - 未定义方法“getProperty”

发布于 2024-10-12 01:33:06 字数 1129 浏览 5 评论 0原文

我正在尝试将我们的应用程序部署到 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

雪化雨蝶 2024-10-19 01:33:06

请尝试使用 apache-tomcat-6.0.29。我的tomcat5也有很多问题。

Try apache-tomcat-6.0.29 instead. i have a lot of problems with tomcat5 too.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文