one problem could be that u forgot to put the
/path/to/your/oracle/jdbc/driver.jar to d classpath. add the complete
pathname of ur oracle jdbc driver to the classpath if u haven't done so.
good luck! : >



Ricky Y. Artigas
Analyst/Programmer
Software Development -
Information Technology Division
Easycall Communications Phils., Inc.
418 Arayat Street
Mandaluyong City 1550
Philippines
Tel.no: (+632) 5338001 ext.6574
Pager:  141-002955
Email: [EMAIL PROTECTED]
The Internet runs on its programmers, and programmers run on coffee!!!

> -------------------------------
> IMPORTANT NOTICE:

> This message (and any attachment hereto) may contain privileged and/or
> confidential information specific to EasyCall. If you are not the intended
> addressee indicated in this message, you may not copy or disseminate this
> message (or any attachment hereto) to anyone. Instead, please destroy this
> message (and any attachment hereto), and kindly notify the sender by reply
> email. Any information in this message (and any attachment thereto) that
> do not relate to the official business of EasyCall shall be understood as
> neither given nor endorsed by the company.
>
>
> -----Original Message-----
> From: Abhishek Basu Mallick [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, October 23, 2000 6:37 PM
> To:   [EMAIL PROTECTED]
> Subject:      oracle jdbc connection
>
> 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

___________________________________________________________________________
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