Use thread context class loader to load custom binding classes
--------------------------------------------------------------

                 Key: COCOON-2018
                 URL: https://issues.apache.org/jira/browse/COCOON-2018
             Project: Cocoon
          Issue Type: Bug
          Components: Blocks: Forms
    Affects Versions: 2.2-dev (Current SVN)
            Reporter: Rice Yeh


Hi,
  In current implementation of 
org.apache.cocoon.forms.binding.CustomJXPathBindingBuilder, Class.forName() 
method is used to load custom binding classes. Class.forName(classname) method 
uses the the defining class loader of the current class to load class, which is 
the classloader that loads CustomJXPathBindingBuilder. In order to allow custom 
building classes that are not defined by the same classloader as cforms (this 
is needed in classes reloading application), it is suggested to have 
CustomJXPathBindingBuilder use thread context class loader to load custom 
binding classes.

Rice

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to