You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by BugRat Mail System <to...@cortexity.com> on 2000/10/02 01:23:17 UTC

BugRat Report #189 has been filed.

Bug report #189 has just been filed.

You can view the report at the following URL:

   <http://znutar.cortexity.com:8888/BugRatViewer/ShowReport/189>

REPORT #189 Details.

Project: Tomcat
Category: Feature Requests
SubCategory: Enhancement
Class: suggest
State: received
Priority: high
Severity: critical
Confidence: public
Environment: 
   Release: 3.2 4b
   JVM Release: jdk 1.2.2
   Operating System: NT
   OS Release: 4.0
   Platform: window

Synopsis: 
Classloader search order.

Description:
The loadClass() in loader/AdaptiveClassLoader class has 

We are using Tomcat as our servlet container for our servlet application. We also uses XML with different parser which cause package and class name conllisions with Tomcat.
Tomcat's class loader has no help in this case because or its loading ordering. 
 Tomcat classload has the following order for loading a class:
   cache, 
   parent,  
   system, 
   web apps repository

There is no way to have our classes loaded except to
change Tomcat's code. If we define our jar file in Tomcat's
classpath, Tomcat won't function correctly. So we have to
change Tomcat's order as: cache, repository, parent, then
system classpath. It works. 
In general, if we want to keep classes in an application boundry, shouldn't we load classes in web apps repository before loading from its parent? or system?

M. Balcom