[jira] [Closed] (DIGESTER-28) [digester] Default ClassLoader policy unusable in EAR archive

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Closed] (DIGESTER-28) [digester] Default ClassLoader policy unusable in EAR archive

Gary D. Gregory (Jira)

     [ https://issues.apache.org/jira/browse/DIGESTER-28?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simone Tripodi closed DIGESTER-28.
----------------------------------


included in Apache Commons Digester 3.0 release

> [digester] Default ClassLoader policy unusable in EAR archive
> -------------------------------------------------------------
>
>                 Key: DIGESTER-28
>                 URL: https://issues.apache.org/jira/browse/DIGESTER-28
>             Project: Commons Digester
>          Issue Type: Bug
>    Affects Versions: 1.6
>         Environment: Operating System: other
> Platform: Other
>            Reporter: Craig Miller
>            Assignee: Simone Tripodi
>             Fix For: 3.0
>
>
> 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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira