Uploaded image for project: 'Commons Dbcp'
  1. Commons Dbcp
  2. DBCP-382

Could not set flag "accessToUnderlyingConnectionAllowed" in "context.xml" for DriverAdapterCPDS/PerUserPoolDataSource

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.5.1, 2.0
    • Labels:
      None
    • Environment:

      Apache Tomcat 6.0.32 / DBCP 1.3

      Description

      Could not set flag "accessToUnderlyingConnectionAllowed" in context.xml for DriverAdapterCPDS/PerUserPoolDataSource because the property is not considered from the factory.
      A possible solution is to add following lines to class "DriverAdapterCPDS" on the end of method "getObjectInstance"

      ra = ref.get("accessToUnderlyingConnectionAllowed");
      if (ra != null && ra.getContent() != null) {
      	setAccessToUnderlyingConnectionAllowed(Boolean.valueOf(ra.getContent().toString()).booleanValue());
      }
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              srempfer Stefan Rempfer
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: