Hi Venkat,
There is one error with ur jdbcodbc driver name.U should mention
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); instead of
Class.forName("jdbc.odbc.JdbcOdbcDriver");Try with it
Biren

On Thu, 4 May 2000, Venkata Krishna MV wrote:

> Hi,
>
> I am trying a servlet connecting to database with ODBC resource. Servlet
> will generate a HTML page when client browser connects to servlet.
>
> The code I have tried looks something like this:
>
> Class.forName("jdbc.odbc.JdbcOdbcDriver");
> out.println("JDBC-ODBC Bridge loaded\n");
> Connection cn = DriverManager.getConnection("jdbc:odbc:mydsn", "user",
> "pwd");
> out.println("Connection object created");
>
>
> Output on browser looks like this:
>
> JDBC-ODBC Bridge loaded
> 500 Internal Server Error.
>
>
> I am using a NAS and NES. I am able to compile the the file and deploy using
> NAB. When access the servlet it gives 'Internal Error' on the browser. In NT
> event log it gives me the following dump.
>
> Exception: SERVLET-execution_failed: Error in executing servlet TestServlet:
> java.lang.NoClassDefFoundError: sun/jdbc/odbc/JdbcOdbcConnection
> Exception Stack Trace:
> java.lang.NoClassDefFoundError: sun/jdbc/odbc/JdbcOdbcConnection
>  at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:159)
>  at java.sql.DriverManager.getConnection(Compiled Code)
>  at java.sql.DriverManager.getConnection(DriverManager.java:178)
>  at CatTrial.TestServlet.service(TestServlet.java:54)
>  at javax.servlet.http.HttpServlet.service(Compiled Code)
>  at com.netscape.server.servlet.servletrunner.ServletInfo.service(Compiled
> Code)
>  at
> com.netscape.server.servlet.servletrunner.ServletRunner.execute(ServletRunne
> r.java:394)
>  at com.kivasoft.applogic.AppLogic.execute(AppLogic.java:1273)
>  at com.kivasoft.applogic.AppLogic.execute(Compiled Code)
>  at java.lang.Thread.run(Compiled Code)
> .
>
> Does NAS support ODBC ?? Or am I doing something wrong. Any kind of help is
> greately appreciated.
>
> Krishna MVV
>
> ___________________________________________________________________________
> 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