DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37302>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37302

           Summary: Custom context loader unable to find Tomcat jar files
           Product: Tomcat 5
           Version: 5.5.12
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


I have a custom context classloader that worked with any Tomcat 4 and 5
versions, excepted 5.5.12.
With Tomcat 5.5.12, my loader can't find classes from Tomcat jar files (jar
files from /common/lib).
The problem is that custom loader's constructor receive an instance of
AppClassloader (it looks like it is the 'System' classloader). Previously
loader's constructor received an instance of StandardClassloader (which should
be the 'Common' classloader)

I found the following change in Tomcat 5.5.12 compared to Tomcat 5.5.9 : in
Tomcat 5.5.9 'addRuleInstances' method in 'ContextRuleSet' class contained the
following line :
 digester.addRule(prefix + "Context",
                         new CopyParentClassLoaderRule());

In Tomcat 5.5.12, this line was removed. 

Reintegrting this line solve my problem. Maybe this removal was done on purpose
but I didn't find any explanation for it.

Bruno

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to