Have you set your classpath point to new jar file..check it out
Thanks
SPula
-----Original Message-----
From: Jagadish Gopi [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 20, 2001 2:47 PM
To: '[EMAIL PROTECTED]'
Cc: '[EMAIL PROTECTED]'
Subject: How do I make Tomcat include needed ZIP files for my servlet
Thanx alot for replying Denis,
I am able to add .jar files without any problem but not .zip files. I
have
added the required zip file to WEB-INF/lib/ dir but still am facing this
Exception
"java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver"
Thanx in advance
Jagadish
-----Original Message-----
From: Denis Haskin [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 20, 2001 5:28 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Connections !! Classpath!!!
Put the jars you need in the WEB-INF/lib subdirectory of your context.
Tomcat will make them available to your servlet. See the doc at
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/appdev/deployment.html,
especially section 3.2: "WEB-INF/lib/ - This directory contains JAR
files that contain Java class files (and associated resources) required
for your application, such as third party class libraries or JDBC
drivers. "
Or make your CLASSPATH include them before you start Tomcat.
And please include better Subject: lines, for example a brief version of
your question (e.g. "How do I make Tomcat include needed jars for my
servlet?").
dwh
Jagadish Gopi wrote:
> HI Everyone,
> Can you please tell me How do I view the classpath details once the
tomcat
> is started. Is there any log files through which I can view it.
>
> I have a classes12.zip file for database connection which I added in
the
> c:/jakarta-tomcat-3.2.1/lib directory, but I am getting an error
saying
> "java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver"
when i
> am creating connections. (My database is Oracle)
>
> I am using windows2000, Itseems to me like tomcat only adds .jar files
> from
> lib dir to classpath. Correct me If I am wrong.
>
> I don't think I need to add any other files to /lib dir.
>
> Please let me know if I need to make any entries.
>
> Please reply back
> Jagadish
>
>
>