-none- 2007-08-16 - By Matthew Kerle
Back http://tomcat.apache.org/tomcat-5 (See http://cat-5.ora-code.com).5-doc/class-loader-howto.html
this is why I can't reference any classes loaded from server/lib in my webapp, the server/lib classes are loaded by the web application classloader's "uncle", so to speak, the sibling of it's parent. so it makes sense that no web application has access to the server/lib jars. doh...!
Peter Crowther wrote: >> From: Matthew Kerle [mailto:matthew.kerle@(protected)] >> the MemoryUser class is in catalina.jar, which is in the server/lib >> folder. would I be right in saying that web application code >> is barred >> from loading any classes from the server/lib directory? >> > > (light bulb comes on) > > Ah yes, I remember this now from some ancient history on another > project. It's a real pain, principally because the Principal interface > is IMO too limited. We ended up with the horrible, horrible hack of > pulling the class out of catalina.jar, putting it in its own jar, and > deploying that in common/lib. This, of course, means you no longer have > a default Tomcat install... but we couldn't find another way round the > problem. > > - Peter
-- Matthew Kerle IT Consultant Canberra, Australia
Mobile: +61404 096 863 Email : mattkerle@(protected) Web : http://threebrightlights.blogspot.com/
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To start a new topic, e-mail: users@(protected) To unsubscribe, e-mail: users-unsubscribe@(protected) For additional commands, e-mail: users-help@(protected)
|
|