Date sent: Wed, 06 Aug 2008 08:36:48 -0700 (PDT)
From: wskent <[EMAIL PROTECTED]>
Subject: Tomcat 6 classpath issue
To: [email protected]
Send reply to: Tomcat Users List <[email protected]>
>
> I have the following jars in my web projects \web\WEB-INF\lib
> dirdectory - log4j-1.2.13.jar, mysql-connector-java-5.0.5.jar,
> servlet-api-2.4.jar, standard-1.1.2.jar
>
Bad idea to have 2.4 api jar, IMO.
> When I retrieve the classpath using -
> String classPath = System.getProperty("java.class.path",".");
> LOG.debug("Classpath: " + classPath);
> I get the following -
> Classpath:
> C:\Tools\Tomcat6/bin/bootstrap.jar;C:\Tools\jdk1.5/lib/tools.jar
>
> Any ideas why the jars in WEB-INF\lib are not showing up in my
> classpath?
Multiple classloaders. The webapp classloader is different from other
classloaders.
http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html
-Steve O.
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]