Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-3288

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Not A Bug
    • 2.3.3
    • None
    • jackrabbit-core
    • None
    • 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);

      Attachments

        Activity

          People

            Unassigned Unassigned
            francisandre Francis ANDRE
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: