Hi all,
I am facing problem in using Instadb Driver in a
servlet running on Vqserver. I could able to load the
instadb driver in an application. But the the driver
is not getting loaded in the servlet. However If i am
using the Sun's Servlet Runner , i am not facing any
problem.
Code:
-----------------------------------------------
import java.sql.*;
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import jdbc.idbDriver;
public class Servlet1 extends HttpServlet
{
Statement stmt;
ResultSet rs;
boolean flag;
String fname1;
public void doGet(HttpServletRequest req,
HttpServletResponse res)
throws ServletException , IOException {
res.setContentType("text/html");
PrintWriter outp = res.getWriter();
ServletOutputStream out = res.getOutputStream();
try{
Class.forName("jdbc.idbDriver");
}
catch(Exception e) {
e.printStackTrace(outp);
out.println(" unable to load driver class");
return;}
.....
.....
.....
}
I am getting unable to load the driver class.
Also the printStackTrace is not giving the output on
the client's browser.
I would be greatful , if any one suggest me where i
went wrong?
Satya
__________________________________________________
Do You Yahoo!?
Thousands of Stores. Millions of Products. All in one place.
Yahoo! Shopping: http://shopping.yahoo.com
___________________________________________________________________________
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