> From: Steve Souza [mailto:[EMAIL PROTECTED] 
> Subject: Re: classpath problems with a custom valve
> 
> I get the following exception which seems odd as I saw the missing
class in
> catalina.jar and I compiled against it.

Java classloading hierarchy is not bidirectional - classes can see only
up the tree (unless you're using reflection).  For Tomcat 5.5, I think
you'll need to refactor your code, separating the valve and the part
needed by both the valve and the webapp.  The jar containing valve
proper should be placed in server/lib, and the jar holding the common
bits into common/lib.

If you moved up to Tomcat 6, the classloading hierarchy is much simpler;
your existing jar would just go into the single lib directory.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to