Warbler war is not working in Tomcat

I am new to Ruby, I just want to get Redmine application running in
Tomcat. After deployment I get the bellow error message from tomcat
logs.
my inviornment.

*** LOCAL GEMS ***

actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
jruby-jars (1.4.0)
jruby-rack (0.9.7)
mysql (2.8.1)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)
rubyzip (0.9.4)
warbler (1.0.1)

org.jruby.rack.RackInitializationException: Could not find RubyGem rack
(~> 1.0.1)

from file:/C:/Program Files/Apache Software Foundation/Tomcat
6.0/webapps/redmine/WEB-INF/lib/jruby-rack-0.9.7.jar!/jruby/rack/rails.rb:61:in
require_frameworks_with_servlet_env' from C:/Program Files/Apache Software Foundation/Tomcat 6.0/webapps/redmine/WEB-INF/vendor/rails/railties/lib/initializer.rb:134:inprocess’
from C:/Program Files/Apache Software Foundation/Tomcat
6.0/webapps/redmine/WEB-INF/vendor/rails/railties/lib/initializer.rb:113:in
run' from C:/Program Files/Apache Software Foundation/Tomcat 6.0/webapps/redmine/WEB-INF/config/environment.rb:20 from C:/Program Files/Apache Software Foundation/Tomcat 6.0/webapps/redmine/WEB-INF/config/environment.rb:44:inload’
from file:/C:/Program Files/Apache Software Foundation/Tomcat
6.0/webapps/redmine/WEB-INF/lib/jruby-rack-0.9.7.jar!/jruby/rack/rails.rb:44:in
load_environment' from file:/C:/Program Files/Apache Software Foundation/Tomcat 6.0/webapps/redmine/WEB-INF/lib/jruby-rack-0.9.7.jar!/jruby/rack/rails.rb:38:into_app’
from file:/C:/Program Files/Apache Software Foundation/Tomcat
6.0/webapps/redmine/WEB-INF/lib/jruby-rack-0.9.7.jar!/jruby/rack/rails.rb:186:in
new' from <script>:2 from file:/C:/Program Files/Apache Software Foundation/Tomcat 6.0/webapps/redmine/WEB-INF/lib/jruby-rack-0.9.7.jar!/vendor/rack-1.1.0/rack/builder.rb:46:ininstance_eval’
from file:/C:/Program Files/Apache Software Foundation/Tomcat
6.0/webapps/redmine/WEB-INF/lib/jruby-rack-0.9.7.jar!/vendor/rack-1.1.0/rack/builder.rb:46:in
initialize' from <script>:2:innew’
from :2

at
org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:172)
at
org.jruby.rack.DefaultRackApplicationFactory.getApplication(DefaultRackApplicationFactory.java:51)
at
org.jruby.rack.PoolingRackApplicationFactory.getApplication(PoolingRackApplicationFactory.java:94)
at
org.jruby.rack.servlet.DefaultServletDispatcher.process(DefaultServletDispatcher.java:36)
at org.jruby.rack.RackFilter.doFilter(RackFilter.java:56)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Unknown Source)
Caused by: org.jruby.exceptions.RaiseException: Could not find RubyGem
rack (~> 1.0.1)

at Kernel.raise(C:/Program Files/Apache Software Foundation/Tomcat
6.0/webapps/redmine/WEB-INF/vendor/rails/railties/lib/initializer.rb:271)
at Rails::Initializer.require_frameworks(file:/C:/Program Files/Apache
Software Foundation/Tomcat
6.0/webapps/redmine/WEB-INF/lib/jruby-rack-0.9.7.jar!/jruby/rack/rails.rb:61)
at Rails::Initializer.require_frameworks_with_servlet_env(C:/Program
Files/Apache Software Foundation/Tomcat
6.0/webapps/redmine/WEB-INF/vendor/rails/railties/lib/initializer.rb:134)
at Rails::Initializer.process(C:/Program Files/Apache Software
Foundation/Tomcat
6.0/webapps/redmine/WEB-INF/vendor/rails/railties/lib/initializer.rb:113)
at #Class:01x81b83c.run(C:/Program Files/Apache Software
Foundation/Tomcat 6.0/webapps/redmine/WEB-INF/config/environment.rb:20)
at (unknown).(unknown)(C:/Program Files/Apache Software
Foundation/Tomcat 6.0/webapps/redmine/WEB-INF/config/environment.rb:44)
at Kernel.load(file:/C:/Program Files/Apache Software
Foundation/Tomcat
6.0/webapps/redmine/WEB-INF/lib/jruby-rack-0.9.7.jar!/jruby/rack/rails.rb:44)
at
JRuby::Rack::RailsBooter::Rails2Environment.load_environment(file:/C:/Program
Files/Apache Software Foundation/Tomcat
6.0/webapps/redmine/WEB-INF/lib/jruby-rack-0.9.7.jar!/jruby/rack/rails.rb:38)
at JRuby::Rack::RailsBooter::Rails2Environment.to_app(file:/C:/Program
Files/Apache Software Foundation/Tomcat
6.0/webapps/redmine/WEB-INF/lib/jruby-rack-0.9.7.jar!/jruby/rack/rails.rb:186)
at #Class:01x9d267d.new(:2)
at (unknown).(unknown)(file:/C:/Program Files/Apache Software
Foundation/Tomcat
6.0/webapps/redmine/WEB-INF/lib/jruby-rack-0.9.7.jar!/vendor/rack-1.1.0/rack/builder.rb:46)
at Kernel.instance_eval(file:/C:/Program Files/Apache Software
Foundation/Tomcat
6.0/webapps/redmine/WEB-INF/lib/jruby-rack-0.9.7.jar!/vendor/rack-1.1.0/rack/builder.rb:46)
at Kernel.instance_eval(file:/C:/Program Files/Apache Software
Foundation/Tomcat
6.0/webapps/redmine/WEB-INF/lib/jruby-rack-0.9.7.jar!/vendor/rack-1.1.0/rack/builder.rb:46)
at Rack::Builder.initialize(:2)
at (unknown).new(:2)
at (unknown).(unknown)(:1)

Can you make sure Rack 1.0.1 is getting bundled in your war file? You
may need to specify it in config/warble.rb or config.gems in
config/environment.rb. Rails 2.3 depends on it and it needs to be
present, even though JRuby-Rack uses version 1.1.0. (1.1.0 is not
loaded through RubyGems so hopefully there shouldn’t be any other
issues).

/Nick

On Thu, Apr 8, 2010 at 12:39 PM, Murtuza K. [email protected]
wrote:

activeresource (2.3.5)
org.jruby.rack.RackInitializationException: Could not find RubyGem rack
`run’
from file:/C:/Program Files/Apache Software Foundation/Tomcat
from :2
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at java.lang.Thread.run(Unknown Source)
6.0/webapps/redmine/WEB-INF/vendor/rails/railties/lib/initializer.rb:134)
at
at Kernel.instance_eval(file:/C:/Program Files/Apache Software


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Thank You adding
config.gems[“rack”] = “1.0.1”
to config/warble.rb resolved that issue.

but now I am having another issue getting error

Caused by: org.jruby.exceptions.RaiseException: Could not find RubyGem
activerecord-jdbcmysql-adapter

i have added
config.gems += [“rack”,“activerecord-jdbcmysql-adapter”]

but getting below error

C:\tools\redmine-0.9.3>warble
rake aborted!
gem ‘activerecord-jdbcmysql-adapter (>= 0, runtime)’ not installed
C:/Program
Files/Ruby19/lib/ruby/gems/1.9.1/gems/warbler-0.9.14/lib/warbler/task
.rb:296:in `define_single_gem_tasks’
(See full trace by running task with --trace)

I installed the gem using

$jruby -S gem install activerecord-jdbcmysql-adapter

but did not resolved the issue

Nick S. wrote:

Can you make sure Rack 1.0.1 is getting bundled in your war file? You
may need to specify it in config/warble.rb or config.gems in
config/environment.rb. Rails 2.3 depends on it and it needs to be
present, even though JRuby-Rack uses version 1.1.0. (1.1.0 is not
loaded through RubyGems so hopefully there shouldn’t be any other
issues).

/Nick

On Thu, Apr 8, 2010 at 12:39 PM, Murtuza K. [email protected]
wrote:

activeresource (2.3.5)
org.jruby.rack.RackInitializationException: Could not find RubyGem rack
`run’
�from file:/C:/Program Files/Apache Software Foundation/Tomcat
�from :2
�at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
�at java.lang.Thread.run(Unknown Source)
6.0/webapps/redmine/WEB-INF/vendor/rails/railties/lib/initializer.rb:134)
�at
�at Kernel.instance_eval(file:/C:/Program Files/Apache Software


To unsubscribe from this list, please visit:

� �http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Also here is the gem list

C:\tools\redmine-0.9.3>gem list
*** LOCAL GEMS ***
actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
archive-tar-minitar (0.5.2)
columnize (0.3.1)
hoe (1.3.0)
jruby-jars (1.4.0)
json_pure (1.2.3)
mysql (2.8.1)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)
ruby_core_source (0.1.4)
rubyforge (2.0.4)
rubygems-update (1.3.6)
warbler (0.9.14)

C:\tools\redmine-0.9.3>jruby -S gem list

*** LOCAL GEMS ***

actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activerecord-jdbc-adapter (0.9.4, 0.9.3)
activerecord-jdbcmysql-adapter (0.9.4, 0.9.3)
activeresource (2.3.5)
activesupport (2.3.5)
jdbc-mysql (5.0.4)
jruby-openssl (0.6)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)
rspec (1.2.9)
sources (0.0.1)

Murtuza K. wrote:

Thank You adding
config.gems[“rack”] = “1.0.1”
to config/warble.rb resolved that issue.

but now I am having another issue getting error

Caused by: org.jruby.exceptions.RaiseException: Could not find RubyGem
activerecord-jdbcmysql-adapter

i have added
config.gems += [“rack”,“activerecord-jdbcmysql-adapter”]

but getting below error

C:\tools\redmine-0.9.3>warble
rake aborted!
gem ‘activerecord-jdbcmysql-adapter (>= 0, runtime)’ not installed
C:/Program
Files/Ruby19/lib/ruby/gems/1.9.1/gems/warbler-0.9.14/lib/warbler/task
.rb:296:in `define_single_gem_tasks’
(See full trace by running task with --trace)

I installed the gem using

$jruby -S gem install activerecord-jdbcmysql-adapter

but did not resolved the issue

Nick S. wrote:

Can you make sure Rack 1.0.1 is getting bundled in your war file? You
may need to specify it in config/warble.rb or config.gems in
config/environment.rb. Rails 2.3 depends on it and it needs to be
present, even though JRuby-Rack uses version 1.1.0. (1.1.0 is not
loaded through RubyGems so hopefully there shouldn’t be any other
issues).

/Nick

On Thu, Apr 8, 2010 at 12:39 PM, Murtuza K. [email protected]
wrote:

activeresource (2.3.5)
org.jruby.rack.RackInitializationException: Could not find RubyGem rack
`run’
�from file:/C:/Program Files/Apache Software Foundation/Tomcat
�from :2
�at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
�at java.lang.Thread.run(Unknown Source)
6.0/webapps/redmine/WEB-INF/vendor/rails/railties/lib/initializer.rb:134)
�at
�at Kernel.instance_eval(file:/C:/Program Files/Apache Software


To unsubscribe from this list, please visit:

� �http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Looks like some gems might be installed into your Ruby19 installation,
and others in JRuby – I’d make sure you’re using the same Ruby for
all commands. One way to do that is to use “jruby -S gem” and “jruby
-S warble” for all gem and warble commands to make sure you’re
installing the gems and using JRuby for everything.

/Nick

On Thu, Apr 8, 2010 at 4:42 PM, Murtuza K. [email protected]
wrote:

 config.gems += [“rack”,“activerecord-jdbcmysql-adapter”]

may need to specify it in config/warble.rb or config.gems in

org.jruby.rack.RackInitializationException: Could not find RubyGem rack

  http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs