Project

General

Profile

jruby+tomcat7: org.jruby.rack.RackInitializationException

Added by delete_me_please . almost 13 years ago

Hello,

I've followed HowTo_Install_Redmine_in_Apache_Tomcat, but I'm getting org.jruby.rack.RackInitializationException when running inside tomcat7.

Could someone give me a hand?

Here's an excerpt of the stack trace (see localhost.2011-05-03.log.txt for the full trace):

May 3, 2011 9:55:52 AM org.apache.catalina.core.ApplicationContext log
SEVERE: Application Error
org.jruby.rack.RackInitializationException: exit
    from org/jruby/RubyKernel.java:836:in `exit'
    from /usr/local/java/tomcat7/webapps/redmine/WEB-INF/config/boot.rb:118:in `(root)'
    from org/jruby/RubyKernel.java:1038:in `require'
    from /usr/local/java/tomcat7/webapps/redmine/WEB-INF/config/boot.rb:12:in `(root)'
    from org/jruby/RubyKernel.java:1063:in `load'
    from /usr/local/java/tomcat7/webapps/redmine/WEB-INF/config/environment.rb:54:in `load_environment'
    from file:/usr/local/java/apache-tomcat-7.0.12/webapps/redmine/WEB-INF/lib/jruby-rack-1.0.8.jar!/jruby/rack/rails.rb:47:in `to_app'
    from file:/usr/local/java/apache-tomcat-7.0.12/webapps/redmine/WEB-INF/lib/jruby-rack-1.0.8.jar!/jruby/rack/rails.rb:193:in `new'
    from <web.xml>:1:in `(root)'
    from org/jruby/RubyKernel.java:2021:in `instance_eval'
    from file:/usr/local/java/apache-tomcat-7.0.12/webapps/redmine/WEB-INF/lib/jruby-rack-1.0.8.jar!/vendor/rack-1.2.2/rack/builder.rb:46:in `initialize'
    from <web.xml>:1:in `(root)'
..

It runs fine using jruby ./script/server. in the following test environment:

Ruby version              1.8.7 (java)
RubyGems version          1.5.1
Rack version              1.0
Rails version             2.3.5
Active Record version     2.3.5
Active Resource version   2.3.5
Action Mailer version     2.3.5
Active Support version    2.3.5
Edge Rails revision       unknown
Application root          /var/local/redmine
Environment               production
Database adapter          jdbcmysql
Database schema version   20101114115359

Thanks in advance.
S.