On Thu, Aug 22, 2013 at 2:51 PM, Konstantin Kolinko
<knst.koli...@gmail.com>wrote:

> 2013/8/22 D C <dc12...@gmail.com>:
> > On Thu, Aug 22, 2013 at 11:48 AM, Konstantin Kolinko <
> knst.koli...@gmail.com
> >> wrote:
> >
> >> 2013/8/22 Daniel Mikusa <dmik...@gopivotal.com>:
> >> > On Aug 21, 2013, at 4:09 PM, David kerber <dcker...@verizon.net>
> wrote:
> >> >
> >> >> Basically you're trying to defeat the way the system is designed to
> >> work.  Don't do that…
> >> >
> >> > +1 Don't do what you've described unless you have a very good reason.
> >>  It will cause you many headaches.
> >> >
> >> > Keep all of your JAR files in "WEB-INF/lib", with the exception of
> JDBC
> >> drivers.  Put those in "$CATALINA_BASE/lib".
> >> >
> >> > Dan
> >> >
> >>
> >> 1.
> >> +1.
> >>
> >> Adding webapp libraries to the common classloader (by placing them
> >> into ${catalina.base}/lib or by modifying the definition of
> >> common.loader) is a bad idea.
> >> (as documented and as discussed many times on this mailing list)
> >>
> >> IF you want to decouple libraries from your war,  add them to your
> >> webapp's classpath, by configuring a VirtualWebappLoader ,
> >>
> >>
> http://tomcat.apache.org/tomcat-7.0-doc/config/loader.html#VirtualWebappLoader_Implementation
> >
> >
> > Interesting.  I just tried this out, but I'm not having luck.
> > We load the context of the app from
> > $catalina_home/conf/Catalina/localhost/myApp.xml
> >
> > I tried adding the Loader to my context so it looks like this.  Am I
> doing
> > something wrong.
> >
> >
> >
> > <?xml version='1.0' encoding='utf-8'?>
> > <Context>
> >
> >     <Loader className="org.apache.catalina.loader.VirtualWebappLoader"
> >               virtualClasspath="/web/lib;/web/lib/*.jar"/>
>
> Looks OK, if those paths are correct.
> You can enable debug logging for that class and it will list whatever
> jars it finds.
>
> Is the following shell command able to list your jar files?
>
>   ls /web/lib/
>

# su - tomcat -s /bin/bash
-bash-4.1$ ls /web/lib/
adcenter_live_base-20070831.jar  c3p0-0.9.1.jar
commons-httpclient-3.0.1.jar  jakarta-oro-2.0.8.jar
 spring-beans-3.1.0.RELEASE.jar       wsdl4j-1.5.1.jar
amqp-client-2.8.0.jar            commons-beanutils-1.7.0.jar
 commons-lang-2.4.jar          jaxrpc-api-1.1.jar
spring-context-3.1.0.RELEASE.jar     xml-apis-1.0.b2.jar
aopalliance-1.0.jar              commons-codec-1.3.jar
 commons-logging-1.0.4.jar     log4j-1.2.16.jar
spring-core-3.1.0.RELEASE.jar
Ask-3.0.jar                      commons-collections-2.1.jar
 commons-math3-3.0.jar         memcached-client-20120227.jar
 spring-expression-3.1.0.RELEASE.jar
axis-1.3.jar                     commons-dbcp-1.2.2.jar
commons-pool-1.3.jar          mysql-connector-java-5.1.10.jar
 spring-jdbc-3.1.0.RELEASE.jar
axis-jaxrpc-1.3.jar              commons-digester-1.6.jar
commons-validator-1.3.1.jar   spring-aop-3.1.0.RELEASE.jar
spring-tx-3.1.0.RELEASE.jar
axis-saaj-1.3.jar                commons-discovery-0.2.jar
 geoApi-20080422.jar           spring-asm-3.1.0.RELEASE.jar
spring-web-3.1.0.RELEASE.jar



>
>
> > /opt/tomcat-6.0.35
> > /opt/tomcat-7.0.39
> > /opt/tomcat-7.0.40
> > /tomcat symlinks to which ever  /opt/tomcat-7.0.40
>
> You are using 7.0.40, 7.0.42, or some ancient version?
>

7.0.40 and ​7.0.42​
For the sake of testing, i'll stick to 7.0.42.



>
> Do you know how configure Tomcat with separate $CATALINA_BASE and
> $CATALINA_HOME?
>

I didn't specifically do that. This is what i did:
server.xml:
    <Host name="localhost"  appBase="/web/webapps"

logging.properties:
replaced all instances of "${catalina.base}/logs" with "/web/logs".
- this actually didn't work. but im not dwelling on it right now.​​



> Do they have the same value for you, or different ones? (As printed by
> catalina.sh just before Tomcat starts).
>

Using CATALINA_BASE:   /tomcat
Using CATALINA_HOME:   /tomcat



>
>
> Best regards,
> Konstantin Kolinko
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to