Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

When installed as gem jahn breaks AR/JDBC

#42

If I run jahn when installed as a gem, it appears that the gem creates the jahn executable to be run from the MRI. This then creates an issue, in my case specifically with Oracle, that when using AR/JDBC that it tries to references the OCI/C libraries as opposed to JDBC. As may be seen here:

DEBUG dialplan: Caught OCIError: ORA-12154: TNS:could not resolve the connect identifier specified

env.c:257:in oci8lib.so
/Library/Ruby/Site/1.8/oci8.rb:229:in `initialize'
/Library/Ruby/Gems/1.8/gems/activerecord-oracle-adapter-1.0.0/lib/active_record/connection_adapters/oracle_adapter.rb:623:in `new'
/Library/Ruby/Gems/1.8/gems/activerecord-oracle-adapter-1.0.0/lib/active_record/connection_adapters/oracle_adapter.rb:623:in `new_connection'
/Library/Ruby/Gems/1.8/gems/activerecord-oracle-adapter-1.0.0/lib/active_record/connection_adapters/oracle_adapter.rb:659:in `initialize'
/Library/Ruby/Gems/1.8/gems/activerecord-oracle-adapter-1.0.0/lib/active_record/connection_adapters/oracle_adapter.rb:35:in `new'
/Library/Ruby/Gems/1.8/gems/activerecord-oracle-adapter-1.0.0/lib/active_record/connection_adapters/oracle_adapter.rb:35:in `oracle_connection'

If I start jahn from a git clone of Adhearsion directly, the connection works fine.

Reported by jsgoecke · December 3rd, 2008 @ 08:08 PM

State: resolved
Milestone: none
Assigned to: Jay Phillips Jay Phillips

Activity

  1. jsgoecke
    jsgoecke

    Maybe the gem would only install jahn if installed by JRuby, and not ahn. And if installed by Ruby MRI, Enterprise, etc, have it only install ahn.

    December 4th, 2008 @ 10:47 AM

  2. Jay Phillips
    Jay Phillips
    • State changed from new to resolved

    Just fixed this in the "components" branch. Will be merged into master soon.

    December 4th, 2008 @ 09:07 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.