----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
I have connected to an Oracle database running apache with Jserv on NT. I
copied the zip file I downloaded into the Jserv directory (renamed it to a
.jar first - you don't have to but I was being picky). I am using type 4
drivers but I assume it would be the same for you as long as you have the
client side Oracle installed on the machine you are running Jserv.
I then added the zip (jar) file to the classpath for Jserv. To do this you
have two options, you can add it to the classpath to the jvm which would
span across all zones (which is what I did) or you can add it to the
classpath for a specific zone. For the first option you add the path to the
zip file in a wrapper.classpath option in the jserv.properties:
wrapper.classpath=C:\Program Files\Apache JServ 1.1\classes12.jar
To add it to the classpath for a specific zone you need to add a
repositories option to the zone.properties file:
repositories=C:\Program Files\Apache JServ 1.1\client
This seemed to work for me. I just did the normal JDBC code in my servlet.
Lee
> -----Original Message-----
> From: Ranga S [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, August 01, 2000 1:43 AM
> To: [EMAIL PROTECTED]
> Subject: JDBC problem
>
> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files. Don't make us guess your problem!!!
> ----------------------------------------------------------------
>
> Hi,
>
> I've installed Apache JServ 1.1.2 on Apache 1.3.12 running on a Linux box.
>
> It also has Oracle 8.1.6 installed.
> I checked the JDBC connection by running an application. It works fine.
> But
> when I try to run it as a servlet (from within JServ) I get the following
> exception:
> NoClassDefFound Error (for oracle.jdbc.driver.OracleDriver)
> That servlet uses OCI8 type JDBC.
>
> I would appreciate it if you could walk me through the steps in
> configuring
> JServ to make it compatible with JDBC (if at all it needs to be done!)?
>
> Thanks.
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Search Archives:
> <http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
> Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search Archives:
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]