When installed as gem jahn breaks AR/JDBC
Reported by jsgoecke | December 3rd, 2008 @ 08:08 PM
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.
Comments and changes to this ticket
-
jsgoecke December 4th, 2008 @ 10:47 AM
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.
-
Jay Phillips December 4th, 2008 @ 09:07 PM
- State changed from new to resolved
Just fixed this in the "components" branch. Will be merged into master soon.
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป