You have to modify `jserv.properties' to include the classes111.zip for
the Oracle JDBC Driver to be found and loaded.

wrapper.classpath = /usr/local/oracle/jdbc/classes111.zip

And you alway have to restart JServ and Apache to make it work

% /etc/sbin/apachectl  restart

--
Peter Pilgrim
"Local boy In The photograph"



---------------------------------------- Message History 
----------------------------------------


From: [EMAIL PROTECTED] on 23/10/2000 11:42

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:
Subject:  Re: oracle jdbc connection



Hi!

As vikram said, include following line in your code.

import oracle.jdbc.driver.OracleDriver;

And check your CLASSPATH to make sure classes111.zip is included.

CLASSPATH=:/usr/java/jsdk2.1/servlet.jar:/usr/java/jsdk2.1/server.jar:/opt/o
racle/8.1.6/jdbc/lib/classes111.zip

Regards,

SungWook

-----Original Message-----
From: Vikram Kumar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 23, 2000 6:06 AM
To: [EMAIL PROTECTED]
Subject: Re: oracle jdbc connection


hi!

please include the jfbc drivers class files i.e classes111.zip or
classes102.zip
in the classpath of your Apache JServ

regards

vikram

Abhishek Basu Mallick wrote:

> hi,
> i am having a problem with the code below:
>
> import java.io.*;
> import javax.servlet.*;
> import javax.servlet.http.*;
>
> public class  DBTestAbm extends HttpServlet
> {
>         public void doGet(HttpServletRequest req,HttpServletResponse res)
>         throws ServletException,IOException
>         {
>                 res.setContentType("text/html");
>                 PrintWriter out = res.getWriter();
>
>                 try
>                 {
>                         Class.forName("oracle.jdbc.driver.OracleDriver");
>                 }
>                 catch(ClassNotFoundException e)
>                 {
>                         out.println("Abhi : Class not found exception
given
> : : " + e);
>                 }
>                 out.println("<html>");
>                 out.println("<head><title>Connection to
> database</title></head>");
>                 out.println("<body>");
>                 out.println("<h3>Abhi</h3>");
>                 out.println("</body>");
>                 out.println("</html>");
>                 out.close();
>         }
> }
>
> When I run this using Oracle JDeveloper it works fine. when i use apache
> jserv to do the same it says
> Abhi : Class not found exception given : :
java.lang.ClassNotFoundException:
> oracle.jdbc.driver.OracleDriver
>
> can someone tell me whats happening?
> Thanks in advance.
>
> regards,
> Abhishek BasuMallick
> Cisco Projects
> ZenSar Technologies Ltd.
> --------------------------------------
> What a great time to be a nerd !!
> --------------------------------------
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

--
Vikram Kumar

http://www.employees.org/~vikram

************************************
No God-No Peace. Know God-Know Peace
************************************

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html





--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorised copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to