I am working on a school project to access a database using a servlet.
However, I failed to get connection to the database and I'm not clear where
the problem lies.

Following is a message that was generated when I try to test the servlet.

Please advise me on what I should do. Any help is greatly appreciated.

Thank you.

*********************************************************************

*** SQLException caught ***
SQLState: 08001
Message: No suitable driver
Vendor: 0
java.sql.SQLException: No suitable driver at java.lang.Throwable.(Compiled
Code) at java.lang.Exception.(Compiled Code) at
java.sql.SQLException.(SQLException.java:64) at
java.sql.DriverManager.getConnection(Compiled Code) at
java.sql.DriverManager.getConnection(DriverManager.java:126) at
sunexamples.DBServlet.service(Compiled Code) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:840) at
com.sun.server.ServletState.callService(ServletState.java:226) at
com.sun.server.ServletManager.callServletService(ServletManager.java:936) at
com.sun.server.http.servlet.InvokerServlet.service(InvokerServlet.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:840) at
com.sun.server.ServletState.callService(ServletState.java:226) at
com.sun.server.ServletManager.callServletService(ServletManager.java:936) at
com.sun.server.ProcessingState.invokeTargetServlet(ProcessingState.java:423)
at
com.sun.server.http.HttpProcessingState.execute(HttpProcessingState.java:79)
at com.sun.server.http.stages.Runner.process(Runner.java:79) at
com.sun.server.ProcessingSupport.process(Compiled Code) at
com.sun.server.Service.process(Service.java:204) at
com.sun.server.http.HttpServiceHandler.handleRequest(HttpServiceHandler.java:374)
at com.sun.server.http.HttpServiceHandler.handleRequest(Compiled Code) at
com.sun.server.HandlerThread.run(Compiled Code)

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.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

Reply via email to