Uploaded image for project: 'TorqueBox'
  1. TorqueBox
  2. TORQUE-781

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

    Details

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

      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.

        Gliffy Diagrams

          Activity

          Show
          benbrowning Benjamin Browning added a comment - Fixed by https://github.com/torquebox/torquebox/commit/4b61e69034a7dac68af2f949916935645f0bd7f3
          Hide
          synfinatic 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
          synfinatic 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
          benbrowning 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
          benbrowning 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:
              benbrowning Benjamin Browning
              Reporter:
              benbrowning Benjamin Browning
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development