tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "The Duke" <min...@lycos.com>
Subject Re: class loader
Date Thu, 11 Oct 2001 07:21:12 GMT
On Wed, 10 Oct 2001 20:22:54  
 Torben Nürnberg Rasmussen wrote:
>
>----- Original Message -----
>From: "Jay Wright" <jwright@once.com>
>To: <tomcat-user@jakarta.apache.org>
>Sent: Wednesday, October 10, 2001 6:56 PM
>Subject: class loader
>
>
>>
>> Hopefully this is an easy question that has been worked over many times.
>>
>> I've just switched from Resin to Tomcat 4.0.  I'm currently testing on
>> windows, though we'll deploy on Solaris.  Everything looks great so far
>and
>> I'm overall very pleased, but have stumbled into one problem:  the
>> Class.forName(<classname>) is unable to find a class.  In this case, it is
>> oracle.jdbc.driver.OracleDriver.  As I've ported the code from Resin to
>> Tomcat, I know my code is okay, but I wanted to make sure that I'm
>complying
>> with the Tomcat container.
>>
>> I've placed the classes12.jar file (the oracle driver) in
>> %CATALINA_HOME%/lib.  I've done nothing else, such as add it to a
>classpath.
>>
>>
>> Do I need to explicitly set it in the classpath?  Is there a better
>location
>> for it?  (I've also tried %CATALINA_HOME%/server/lib and
>> %CATALINA_HOME%/webapps/<myapp>/WEB-INF/lib).
>>
>I think the right solution is to place the jar-file in the
>%CATALINA_HOME%/webapps/<myapp>/WEB-INF/lib directory.
>That worked for me.
>Have you tried to restart the tomcat server? It seems that sometimes that is
>necessary. I can't find out when it is necessary and when not.
>
>Torben Rasmussen.
>

You should try the $CaTALINA_HOME\common\lib There are more .jar files in it that are available
to all applications.

You have to restart Tomcat 4.0 whenever you make changes to server.xml or an applications
web.xml.


Make a difference, help support the relief efforts in the U.S.
http://clubs.lycos.com/live/events/september11.asp

Mime
View raw message