Forum: JRuby JRuby on Rails on Tomcat

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Uma M. (Guest)
on 2009-02-10 17:43
Attachment: localhost.2009-02-10.log (0 Bytes)
I am working on a JRuby on Rails application. Its running fine in
Glassfish application server.

I have to host my JRuby application in tomcat6 server. I generated WAR
file using warbler. When I deployed that WAR in tomcat's webapps, I got
the error.

This is first time I am working on JRuby with Tomcat. Please assist me
to resolve this error.

The error message is:
SEVERE: unable to create shared application instance
org.jruby.rack.RackInitializationException: Please install the jdbcmysql
adapter: `gem install activerecord-jdbcmysql-adapter` (no such file to
load -- active_record/connection_adapters/jdbcmysql_adapter)
  from C:/Program Files/Apache Software Foundation/Tomcat
6.0/webapps/RailsApplication2/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:58:in
`establish_connection'
  from C:/Program Files/Apache Software Foundation/Tomcat
6.0/webapps/RailsApplication2/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:53:in
`establish_connection'
  from C:/Program Files/Apache Software Foundation/Tomcat
6.0/webapps/RailsApplication2/WEB-INF/gems/gems/rails-2.2.2/lib/initializer.rb:392:in
`initialize_database'
  from C:/Program Files/Apache Software Foundation/Tomcat
6.0/webapps/RailsApplication2/WEB-INF/gems/gems/rails-2.2.2/lib/initializer.rb:139:in
`process'
  from C:/Program Files/Apache Software Foundation/Tomcat
6.0/webapps/RailsApplication2/WEB-INF/gems/gems/rails-2.2.2/lib/initializer.rb:112:in
`run'
  from C:\Program Files\Apache Software Foundation\Tomcat
6.0\webapps\RailsApplication2\WEB-INF/config/environment.rb:13
  from C:\Program Files\Apache Software Foundation\Tomcat
6.0\webapps\RailsApplication2\WEB-INF/config/environment.rb:29:in `load'
  from file:/C:/Program Files/Apache Software Foundation/Tomcat
6.0/webapps/RailsApplication2/WEB-INF/lib/jruby-rack-0.9.3.jar!/jruby/rack/rails.rb:29:in
`load_environment'
  from file:/C:/Program Files/Apache Software Foundation/Tomcat
6.0/webapps/RailsApplication2/WEB-INF/lib/jruby-rack-0.9.3.jar!/jruby/rack/rails.rb:152:in
`new'
  from <script>:3
  from file:/C:/Program Files/Apache Software Foundation/Tomcat
6.0/webapps/RailsApplication2/WEB-INF/lib/jruby-rack-0.9.3.jar!/rack/builder.rb:22:in
`instance_eval'
  from file:/C:/Program Files/Apache Software Foundation/Tomcat
6.0/webapps/RailsApplication2/WEB-INF/lib/jruby-rack-0.9.3.jar!/rack/builder.rb:22:in
`initialize'
  from <script>:3

  at
org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:154)

Gem version information is:
Rails 2.2.2
Jruby 1.1.4
activerecord-jdbbc-adapter 0.9
activerecord-jdbcmysql-adapter 0.9 0.8.2
glassfish 0.9.0
jdbc-mysql 5.0.4
jruby-openssl 0.3
activerecord-jdbc 0.5
rubygems-update 1.3.1
tomcat 6.0
This topic is locked and can not be replied to.