« Return to Thread: Jruby 1.3.0 + ARJdbc 0.9.1 + jtds 1.2.2 + MSSql 2005 - database.yml format ?

Jruby 1.3.0 + ARJdbc 0.9.1 + jtds 1.2.2 + MSSql 2005 - database.yml format ?

by Peter Fitzgibbons :: Rate this Message:

Reply to Author | View in Thread

Hello All,

I have a standalone ruby script that demonstrates correct connection to my sqlserver database (jdbc.rb in pastie) that succeeds.

I have a Rails 2.3.2 app with this database.yml in pastie .
tds-1.2.2.jar is located in $RUBY_HOME/lib/ruby/1.8/java.  I have also tried unpacking the jar to the same location.
That location is included in $: for both irb and script/console and script/runner
This errors with (extended out in pastie)

The driver encountered an error: cannot load Java class net.sourceforge.jtds.jdbc.Driver 
Any advice or hints on what I could be missing would be greatly greatly appreciated.

Peter Fitzgibbons
(847) 687-7646
Email: peter.fitzgibbons@...
IM GTalk: peter.fitzgibbons
IM Yahoo: pjfitzgibbons
IM MSN: pjfitzgibbons@...
IM AOL: peter.fitzgibbons@...

 « Return to Thread: Jruby 1.3.0 + ARJdbc 0.9.1 + jtds 1.2.2 + MSSql 2005 - database.yml format ?