TorqueBox
  1. TorqueBox
  2. TORQUE-781

Don't Assume Every ActiveRecord User is Using ActiveRecord-JDBC

    Details

    • Type: Bug Bug
    • Status: Closed Closed (View Workflow)
    • Priority: Major Major
    • Resolution: Done
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.0.2
    • Component/s: None
    • Labels:
      None
    • Similar Issues:
      Show 10 results 

      Description

      Even on JRuby ActiveRecord users may use something like activerecord-oracle_enhanced-adapter to connect to Oracle, which doesn't depend on ActiveRecord-JDBC.

        Activity

        Show
        Benjamin Browning
        added a comment - Fixed by https://github.com/torquebox/torquebox/commit/4b61e69034a7dac68af2f949916935645f0bd7f3
        Hide
        Aaron Turner
        added a comment -

        FYI, now i'm getting:

        06:08:51,107 ERROR [stderr] (Thread-101) java.sql.SQLException: No suitable driver found for jdbc:oracle:thin:@mydatabase.server.com:1600:pnetools

        even though ojdbc6.jar is in $CLASSPATH and $RAILS_ROOT/lib. using the lastest build zipball. Switching to the standard jdbc driver loads, however my models aren't supported properly by that driver due to Oracle being different.

        production:
        adapter: oracle_enhanced
        host: mydatabase.server.com
        port: 1600
        database: pnetools
        username: ncp
        password: mypassword
        pool: 20

        Show
        Aaron Turner
        added a comment - FYI, now i'm getting: 06:08:51,107 ERROR [stderr] (Thread-101) java.sql.SQLException: No suitable driver found for jdbc:oracle:thin:@mydatabase.server.com:1600:pnetools even though ojdbc6.jar is in $CLASSPATH and $RAILS_ROOT/lib. using the lastest build zipball. Switching to the standard jdbc driver loads, however my models aren't supported properly by that driver due to Oracle being different. production: adapter: oracle_enhanced host: mydatabase.server.com port: 1600 database: pnetools username: ncp password: mypassword pool: 20
        Hide
        Benjamin Browning
        added a comment -

        See the workaround in TORQUE-762 - I hope to submit a pull request to the oracle_enhanced maintainer today to fix the way it looks up JDBC drivers to work more like activerecord-jdbc instead of relying only on java.sql.DriverManager.

        Show
        Benjamin Browning
        added a comment - See the workaround in TORQUE-762 - I hope to submit a pull request to the oracle_enhanced maintainer today to fix the way it looks up JDBC drivers to work more like activerecord-jdbc instead of relying only on java.sql.DriverManager.

          People

          • Assignee:
            Benjamin Browning
            Reporter:
            Benjamin Browning
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: