That worked.  I created my valve as a single class and put it in
server/classes.  I kept my jar in common/lib.  I tried inheriting from the
valve in my jar and that didn't work, so i copied that code into a new
package and it worked fine.  It is still a bit mysterious and not ideal as
installation requires a class put in server/classes as well as the jar in
common/lib, but it will do.  If  there is a better way to do this let me
know.  Thanks for your help charles.

On 9/10/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:
>
> > 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