Jackrabbit Content Repository
  1. Jackrabbit Content Repository
  2. JCR-3288

ConnectionFactory.getDriverClass() should use Thread.currentThread().getContextClassLoader(); instead of Class.forName()

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: 2.3.3
    • Fix Version/s: None
    • Component/s: jackrabbit-core
    • Labels:
      None
    • Environment:
      WXP Sun JDK 1.6.0_30 Derby database

      Description

      Hi

      The ConnectionFactory.getDriverClass() should use Thread.currentThread().getContextClassLoader(); instead of Class.forName() otherwise dynamically added jdbc drivers to the classpath are not found;

      ClassLoader cl = Thread.currentThread().getContextClassLoader();
      return cl.loadClass(driver);
      // return Class.forName(driver);

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Francis ANDRE
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development