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