tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 37302] New: - Custom context loader unable to find Tomcat jar files
Date Sat, 29 Oct 2005 12:07:53 GMT
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: leroux_bruno@yahoo.fr


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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message