hello kevin
u need to put ur code within a try catch block to handle the exception.
place "Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");"
in try catch.
it will work fine try it.
thanks
ravindhar reddy
----- Original Message -----
From: Kevin Sagon <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 06, 1999 10:35 AM
Subject: IllegalAccessException
> I am fairly new to servlet programming and am learning how to setup
> connections to DB's. I wrote my first attempt and successfully connected
> the servlet to an Access DB.
>
> I then modified the code and broke out my connection setup and maintenance
> into a separate class. Once I did that the servlet broke and started
> loggin IllegalAccessExceptions in jserv.log. I checked the API and the
> only thing that I could find which might throw that exception is the
> statement:
>
> Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
>
> This line has worked with all my other tests to load the drivers and it
> still works if I write code to access the DB locally. It only breaks when
> I try to run it from a servlet.
>
> If anyone has any ideas on what I did I would be greatly appreciative as I
> have been beating my head on the wall on this one for several days now.
>
> TIA
>
>
___________________________________________________________________________
> 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