Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-60435

Tomcat upgrade (8.0.26+) needed for Apache commons pool EvictionPolicy error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Medium Medium
    • None
    • 7.1.2
    • None

      When developing a JIRA plugin that uses an external datasource (JTDS driver), the following error is thrown when establishing a database connection:

      java.lang.IllegalArgumentException: Unable to create EvictionPolicy instance of type org.apache.tomcat.dbcp.pool2.impl.DefaultEvictionPolicy
      

      This is due to an Apache commons pool bug: https://issues.apache.org/jira/browse/POOL-289

      Tomcat absorbed this patch in version 8.0.26: https://tomcat.apache.org/tomcat-8.0-doc/changelog.html

      We have verified that dropping JIRA 7.1.2 into a Tomcat 8.0.26+ container solves the problem.

      What are the plans for a Tomcat 8 update? If a 8.0.26+ update is planned, what JIRA version is it planned for?

      We can't drop in a new version of the Apache common pool library directly into our plugin (via Import-Package) because internally Tomcat uses their own version of the common pool classes. (org.apache.tomcat.dbcp.pool2 vs. org.apache.commons.pool2)

              Unassigned Unassigned
              steve.kirsch SteveK
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: