Sorry Dan but if I do what you are suggesting I will end up in redundant
jars all over the place and I dont want to do that.

Any other thoughts ?

On Thu, Jan 17, 2013 at 9:54 AM, Daniel Mikusa <dmik...@vmware.com> wrote:

> On Jan 17, 2013, at 9:20 AM, Narahari 'n' Savitha wrote:
>
> > Friends:
> >
> > Thank you for your time.
> >
> > Here is the entry for the catalina.policy file
> >
> >
> >
> >
> common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar
> >
> > server.loader=
> >
> >
> shared.loader=${catalina.home}/thirdPartyLib/*.jar,${catalina.home}/webServicesLib/*.jar
> >
> >
> > For example I have SpringBean entries in the web.xml
> >
> >
> >  <?xml version="1.0" encoding="utf-8"?>
> >
> > <web-app id="WebApp_ID" version="2.5"
> >
> >      xmlns="http://java.sun.com/xml/ns/javaee"; xmlns:xsi="
> > http://www.w3.org/2001/XMLSchema-instance";
> >
> >      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> > http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";>
> >
> >      <display-name>test/testing</display-name>
> >
> >
> >
> >      <!-- Add Support for Spring -->
> >
> >      <listener>
> >
> >
> >
> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
> >
> >      </listener>
> >
> >      <listener>
> >
> >
> >
> <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
> >
> >      </listener>
> >
> >
> >
> > The spring bean jars are in the thirdPartyLib folder.
> >
> > The shared.loader line has the entries for the thirdPartyLib/*.jar and is
> > not getting picked up by the class loader.
> >
> > I see ClassNotFoundExceptions in the localhost log file.
> >
> >
> >
> > However when I appended the thirdPartyLib/*.jar to the line common.loader
> > line on my computer,  things started working.
> >
> >
> > What is the right approach ?    There is confusion inside our group as to
> > what is the right approach.
>
> My opinion, don't mess with either one.  Most Tomcat users should not need
> to change these values.  What is your reason for wanting to change these?
>
> >
> >
> > Should we use the common.loader line or the shared.loader line ?
>
> Leave them alone.  Don't touch either one.
>
> >
> >
> > I would like to hear from the Tomcat experts so we can do it the right
> way.
> >
>
> My suggestion would be to put JDBC drivers into "$CATALINA_BASE/lib" or
> "$CATALINA_HOME/lib" and put the rest of your JAR files in "WEB-INF/lib".
>  It's the simplest approach, it lets you easily hot redeploy your
> application and it cuts down on weird class loader issues.
>
> Dan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to