i apologize for the typo.  I actually meant to say i put the jar in
shared/lib.  Based on the documentation I think that is where it should go.
common/lib is for jars are only needed by web apps whereas shared/lib is for
web apps AND tomcat.   Being as the valve should be used by tomcat i put it
in shared/lib.

If I put the jar in shared/lib my war which references some of the classes
to display the data gets a ClassNotFoundException.  I also tried putting it
in common/lib then the server doesn't boot and i get a
ClassNotFoundException on my valve.

>From the link:
http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html

*Shared* - This class loader is the place to put classes and resources that
you wish to share across *ALL* web applications (unless Tomcat internal
classes also need access, in which case you should put them in the
*Common*class loader instead).All unpacked classes and resources in
$CATALINA_BASE/shared/classes, as well as classes and resources in JAR files
under $CATALINA_BASE/shared/lib, are made visible through this class loader.
If multiple Tomcat instances are run from the same binary using the
$CATALINA_BASE environment variable, then this classloader repositories are
relative to $CATALINA_BASE rather than $CATALINA_HOME.

On 9/10/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:
>
> > From: Steve Souza [mailto:[EMAIL PROTECTED]
> > Subject: Re: classpath problems with a custom valve
> >
> > based on this document I placed my jar in server/lib as both
> > web apps and tomcat need access to the classes in this jar.
>
> What part of the Tomcat doc led you to that conclusion?  It's clear from
> even a cursory reading (or just looking at the picture) that classes in
> server/lib are not available to webapps.  As I said before, put your jar
> in common/lib.
>
> - 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