Fwd: Re: Installation problem with activerecord-jdbc-adapter

So either my SPAM filter is munching these replies or they are lost in
the Internet abyss. One last try to post this response (I am very sorry
if this is the third posted reply, I am just not seeing it post…)

This is a new install and a new rails project. Here is the gem listing,
the bundler output and the database.yaml:


jruby -v
jruby 1.6.1 (ruby-1.8.7-p330) (2011-04-12 85838f6) (IBM J9 VM 1.6.0)
[OS/400-
PowerPC-java]
$
gem list

*** LOCAL GEMS ***

abstract (1.0.0)
actionmailer (3.0.7)
actionpack (3.0.7)
activemodel (3.0.7)
activerecord (3.0.7)
activerecord-jdbc-adapter (1.1.1)
activeresource (3.0.7)
activesupport (3.0.7)
arel (2.0.9)
builder (2.1.2)
bundler (1.0.13)
erubis (2.6.6)
glassfish (1.0.3 universal-java)
i18n (0.5.0)
mail (2.2.19)
mime-types (1.16)
polyglot (0.3.1)
rack (1.2.2)
rack-mount (0.6.14)
rack-test (0.5.7)
rails (3.0.7)
railties (3.0.7)
rake (0.8.7)
sources (0.0.1)
thor (0.14.6)
treetop (1.4.9)
tzinfo (0.3.27)

$

cd jruby-demo
$
cd blog
$
bundle install
Fetching source index for http://rubygems.org/
Using rake (0.8.7)
Using abstract (1.0.0)
Using activesupport (3.0.7)
Using builder (2.1.2)
Using i18n (0.5.0)
Using activemodel (3.0.7)
Using erubis (2.6.6)
Using rack (1.2.2)
Using rack-mount (0.6.14)
Using rack-test (0.5.7)
Using tzinfo (0.3.27)
Using actionpack (3.0.7)
Using mime-types (1.16)
Using polyglot (0.3.1)
Using treetop (1.4.9)
Using mail (2.2.19)
Using actionmailer (3.0.7)
Using arel (2.0.9)
Using activerecord (3.0.7)
Using activeresource (3.0.7)
Using bundler (1.0.13)
Using thor (0.14.6)
Using railties (3.0.7)
Using rails (3.0.7)
[32mYour bundle is complete! Use bundle show [gemname] to see where
a bund
led gem is installed. [0m
$

database.yaml

SQLite version 3.x

gem install sqlite3

development:
username: pete
password: xxxxxxxx
adapter: jdbc
driver: com.ibm.as400.access.AS400JDBCDriver
url: jdbc:as400://10.0.10.205/blog_dev;naming=sql

Warning: The database defined as “test” will be erased and

re-generated from your development database when you run “rake”.

Do not set this db to the same as development or production.

test:
username: pete
password: xxxxxxxx
adapter: jdbc
driver: com.ibm.as400.access.AS400JDBCDriver
url: jdbc:as400://10.0.10.205/blog_test;naming=sql

production:
username: pete
password: xxxxxxx
adapter: jdbc
driver: com.ibm.as400.access.AS400JDBCDriver
url: jdbc:as400://10.0.10.205/blog;naming=sql

rails server starts the app just fine but when I click on the link that
refers here:
http://10.0.10.205:4033/rails/info/properties
That is when I get the error.

Thanks

Pete H.
Value Added Software, Inc
www.asaap.com
www.opensource4i.com

Yeah, so ar-jdbc is not in the list of gems that “bundle install”
reports, so it must not be in “Gemfile”. You should add it and “bundle
install” again. For more information, see http://gembundler.com.

/Nick

Thanks. That took care of it.

So, is this something that I will always need to do? Admittedly I am
not a full time Rubyist so the Rails environment stuff does throw me but
I don’t recall have to do this with an earlier version of Rails. So is
it news for Rails 3?

Pete H.
Value Added Software, Inc
www.asaap.com
www.opensource4i.com

Yes. Bundler is one of the new moving parts in Rails 3. It locks down
your environment to only the gems listed in the Gemfile, that’s why
you couldn’t see the gem at runtime even though you had it installed.

/Nick