activerecord-jdbc broken in rails 2.0.2, jruby trunk r5341
----------------------------------------------------------

                 Key: JRUBY-1773
                 URL: http://jira.codehaus.org/browse/JRUBY-1773
             Project: JRuby
          Issue Type: Bug
          Components: ActiveRecord-JDBC
    Affects Versions: JRuby 1.1b2
         Environment: MacOS X 10.4.11, JRuby trunk r5341, rails 2.0.2, 
            Reporter: Stephen Bannasch



I'm getting a similar error with both jdbcmysql and jdbcderby

Here are the gems I have installed:

{code}
[~/dev/jruby_trunk/jruby/rails/test]$ gem list jdbc -l

*** LOCAL GEMS ***

jdbc-derby (10.2.2.0)
jdbc-mysql (5.0.4)
[~/dev/jruby_trunk/jruby/rails/test]$ gem list activerecord -l

*** LOCAL GEMS ***

activerecord (2.0.2, 1.15.5, 1.15.4, 1.15.3)
activerecord-jdbc-adapter (0.7, 0.6)
activerecord-jdbcderby-adapter (0.7, 0.6)
activerecord-jdbcmysql-adapter (0.7)
{code}

Create a test rails app:

{code}
$ rails test
$ cd test
{code}

Setup config/databse.yml for using derby

{code}
development:
  adapter: jdbcderby
  database: db/development
test:
  adapter: jdbcderby
  database: db/test
production:
  adapter: jdbcderby
  database: db/production
{code}

Start the app:

{code}
$ script/server
=> Booting Mongrel (use 'script/server webrick' to force WEBrick)
=> Rails application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment...
Exiting
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:231:in
 `establish_connection': Please install the jdbcderby adapter: `gem install 
activerecord-jdbcderby-adapter` (no such file to load -- 
active_record/connection_adapters/jdbcderby_adapter) (RuntimeError)
        from 
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:215:in
 `establish_connection'
        from 
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:208:in
 `establish_connection'
        from 
/usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:234:in 
`initialize_database'
        from 
/usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:94:in `process'
        from 
/usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:49:in `send'
        from 
/usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:49:in `run'
        from 
/Users/stephen/dev/jruby_trunk/jruby/rails/test/config/environment.rb:13
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in 
`gem_original_require'
         ... 25 levels...
        from 
/usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in 
`gem_original_require'
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in 
`require'
        from script/server:3
{code}



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to