我正在尝试将我们的应用程序部署到一个独立的tomcat 5.5 on hardy。
生成的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)
提前感谢您的帮助! 克里斯
答案 0 :(得分:0)
尝试使用apache-tomcat-6.0.29。我也有很多tomcat5的问题。