1

I'm trying to run my jruby application on trinidad.

Following the readme, I included the trinidad gem in the gemfile and ran

rails server -e production -p 80 -d trinidad

When I access my server with a browser, it gives me an error message about how it can't find the correct class for my database driver, which is in lib/odbc6.jar and works fine if I run the project using WEBrick. The error message looks like this:

org.jruby.rack.RackInitializationException: 
load error: /home/bdares/project/config/environment
java.sql.SQLException: No suitable driver found for jdbc:oracle:thin:@(my_jdbc_connection_string)

What am I doing wrong?

Jasper de Vries
  • 19,370
  • 6
  • 64
  • 102

1 Answers1

0

Plz try to setup $CLASSPATH global var.

Here are few more details: https://stackoverflow.com/a/11130246/255633

Community
  • 1
  • 1
arkadiy kraportov
  • 3,679
  • 4
  • 33
  • 42
  • I'm tempted to close my question as a duplicate, but it's really a different question -- albiet with the same answer. –  Jan 17 '13 at 02:43