Project

General

Profile

missing gems while trying to use tomcat

Added by Werner Kapferer over 11 years ago

Hello everybody!

I'm trying to install the latest Redmine (2.2) on my CentOS 6 with running Apache Tomcat6 server.
Everything works fine (already tested with WEBrick - no problems till here).
Now I try to get the whole thing run on my tomcat-server. I followed this How-To: http://www.redmine.org/projects/redmine/wiki/HowTo_install_Redmine_in_Apache_Tomcat

But when I try to load my page I get the error:

org.jruby.exceptions.RaiseException: (GemNotFound) Could not find gem 'jruby-openssl (>= 0) java' in the gems available on this machine.
    at RUBY.resolve(/usr/share/tomcat6/webapps/redmine/WEB-INF/gems/gems/bundler-1.3.2/lib/bundler/resolver.rb:294)
    ...

So I tried to add "gem 'jruby-openssl'" to the Gemfile.
After the new bundle-setup and try to "warble":

Loading jruby-openssl in a non-JRuby interpreter
Loading jruby-openssl in a non-JRuby interpreter
warble aborted!
/usr/lib/ruby/gems/1.8/gems/jruby-openssl-0.8.4/lib/shared/jruby-openssl.rb:13:in `require': no such file to load -- jruby
/opt/redmine-2.2/config/application.rb:7
./Rakefile:5
(eval):5:in `new'
(eval):5:in `initialize'

The two lines in my warble.rb:

config.dirs = %w(app config lib log vendor tmp extra files)
config.gems += ["activerecord-jdbcmysql-adapter", "jruby-openssl", "i18n", "rack"]

Please help me.. I'm freaking out with this..
It worked so well while testing with WEBrick.. :/

Thanks in advance!