tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Weh...@aol.com
Subject Re: Custom ClassLoader configuration problem
Date Mon, 14 Jul 2003 22:14:32 GMT
 
This patch may help if you are compiling with JDK1.3 and using Tomcat5: 

http://archives.real-time.com/pipermail/tomcat-devel/2003-February/046413.html


Rita

In a message dated 7/14/03 9:14:05 PM Eastern Daylight Time, 
peck@advancen.com writes:


> Subj:Custom ClassLoader configuration problem
> Date:7/14/03 9:14:05 PM Eastern Daylight Time
> From:    peck@advancen.com (Stephen Peck)
> Reply-to: <A HREF="mailto:tomcat-user@jakarta.apache.org">tomcat-user@jakarta.apache.org</A>
(Tomcat Users List)
> To:    tomcat-user@jakarta.apache.org
> 
> 
> 
> 
> Can anyone help me with custom class loaders in Tomcat.
> 
> I am trying to add a custom class loader that will retrieve classes from
> a source other than the normal class path entries and cannot figure how
> to get Tomcat to load my Class loader chained to WebappLoader.
> 
> I have tried entering the following code into server.xml
> 
> <Context path="" docBase="ROOT" debug="1">
> <Loader loaderClass="RemoteClassLoader" delegate="true"/>
> </Context>
> 
> And this seems to throw no errors but does not get used or at any point
> execute any code in the constructors of the class loader.
> 
> When I added a 'RemoteLoader' class which extended WebappLoader,
> catalina threw a NoClassDefFoundError for WebappLoader. I assume this is
> because catalina.jar has not yet been loaded, only bootstrap at this
> point.
> 
> If anyone has successfully achieved a similar process could you help me
> out.  I noticed Joe User had a similar question, if you figured it out
> maybe you could point me in the rigth direction
> 
> 



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message