Uploaded image for project: 'Commons Digester'
  1. Commons Digester
  2. DIGESTER-28

[digester] Default ClassLoader policy unusable in EAR archive

    Details

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

      Operating System: other
      Platform: Other

    • Bugzilla Id:
      36387

      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.

        Attachments

          Activity

            People

            • Assignee:
              simone.tripodi Simone Tripodi
              Reporter:
              craig.miller@clear-technology.com Craig Miller
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: