Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

jdbc-postgres jar never gets loaded from do_postgres in JRuby #48

Closed
ghost opened this issue Jan 4, 2013 · 2 comments
Closed

jdbc-postgres jar never gets loaded from do_postgres in JRuby #48

ghost opened this issue Jan 4, 2013 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 4, 2013

As the title says, the jar from jdbc-postgres is never loaded in do_postgres.

The file is loaded through require, but the subsequent java_import will always fail, because Jdbc::Postgres::load_driver never gets called. jdbc-postgres provides the module with the method to load it, but it is not used. Thus using do_postgres under JRuby will cause errors about not finding org.postgres.Driver from the java_import.

A simple case of:

DataMapper.setup :default, {
:adapter => 'postgres',
:host => 'localhost',
:database => 'GenesisDevelopment',
:user => 'postgres',
}

under JRuby will cause this issue.

@mkristian
Copy link
Member

I can not reproduce this error with do_postgres version 0.10.11

could you please provide jruby version, do_postgres version ? maybe also dm-postgres-adapter version ?

@dbussink
Copy link
Contributor

This is apparently something that changed with recent jdbc-* gems which I didn't know about. This was fixed in e120100

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants