War 文件已成功创建。但是当我部署并运行该应用程序时,会引发以下异常。
org.jruby.exceptions.RaiseException: (SystemExit) exit
at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:866)
at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:829)
at RUBY.(root)(D:/Tomcat/apache-tomcat-6.0.37-windows-x64/apache-tomcat-6.0.37/webapps/RORCouponDemo/WEB-INF/gems/gems/bundler-1.3.5/lib/bundler/setup.rb:14)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1054)
at RUBY.(root)(jar:file:/D:/Tomcat/apache-tomcat-6.0.37-windows-x64/apache-tomcat-6.0.37/webapps/RORCouponDemo/WEB-INF/lib/gems-gems-jruby-jars-1.7.4-lib-jruby-stdlib-1.7.4.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:1)
at RUBY.require(jar:file:/D:/Tomcat/apache-tomcat-6.0.37-windows-x64/apache-tomcat-6.0.37/webapps/RORCouponDemo/WEB-INF/lib/gems-gems-jruby-jars-1.7.4-lib-jruby-stdlib-1.7.4.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:60)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1054)
at RUBY.(root)(D:/Tomcat/apache-tomcat-6.0.37-windows-x64/apache-tomcat-6.0.37/webapps/RORCouponDemo/WEB-INF/config/boot.rb:6)
at RUBY.(root)(jar:file:/D:/Tomcat/apache-tomcat-6.0.37-windows-x64/apache-tomcat-6.0.37/webapps/RORCouponDemo/WEB-INF/lib/gems-gems-jruby-jars-1.7.4-lib-jruby-stdlib-1.7.4.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:1)
at RUBY.require(jar:file:/D:/Tomcat/apache-tomcat-6.0.37-windows-x64/apache-tomcat-6.0.37/webapps/RORCouponDemo/WEB-INF/lib/gems-gems-jruby-jars-1.7.4-lib-jruby-stdlib-1.7.4.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36)
at RUBY.load_environment(file:/D:/Tomcat/apache-tomcat-6.0.37-windows-x64/apache-tomcat-6.0.37/webapps/RORCouponDemo/WEB-INF/lib/gems-gems-jruby-rack-1.1.13.2-lib-jruby-rack-1.1.13.2.jar!/jruby/rack/rails/environment3.rb:23)
我已经在环境中配置了 jruby 路径。我的应用程序使用的是 ruby v-1.9 而不是 jruby。