Commons Digester
  1. Commons Digester
  2. DIGESTER-28

[digester] Default ClassLoader policy unusable in EAR archive

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: 3.0
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: Other

      Description

      When used in an EAR archive the Digester default classloading/resource loading
      implementation makes many major frameworks unusable. For Example, if I use
      Struts/Tiles (uses digester) in Web App war files and use Digester from any EJB
      component library or in the EAR classloader space either the Tiles definitions
      cannot be loaded or other classes cannot be found. This is because Digester by
      default sets useContextClassloader = false. Since most users and frameworks
      (Struts, Tiles, JSF, etc) do not set useContextClassloader = true, Digester
      essentially breaks enterprise Applications where the Digester is used from more
      than one module. Note that end users do not control the uses of Digester, the
      default useContextClassloader policy should = true.

      Patch by changing:

      useContextClassloader = false

      to:

      useContextClassloader = true

      //
      This solves the problem - which Google turns up endless hits.

        Activity

          People

          • Assignee:
            Simone Tripodi
            Reporter:
            Craig Miller
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development