Link to home
Start Free TrialLog in
Avatar of viswaselar
viswaselar

asked on

acess denied by rdbms

when i run my applet connected to my local database i am getting an error message like ' java.lang.RuntimePermission accessClassInPackage.sun.jdbc.odbc' .
what could be the problem?
Avatar of kurman
kurman

Most probably you haven't specified user="" and password="" to access database. I don't know for sure, but if you are using ODBC bridge, specify pwd and username
Avatar of viswaselar

ASKER

The very same uid, pwd, driver set works
for an application. And my servlet is able to reach database with the same set.
Sounds more like an applet permissions issue. Applets are usually restricted to connections only to the web server that served them.  If your database is running on a separate machine, that could be your problem.  If you're running the applet using AppletRunner, try changing the security settings to allow the applet more access.
How to change the security settings.
Any codes ?
If you're using AppletViewer (included with the Java2 SDK), then under Preferences, you can choose either Restricted or Unrestricted class access.  Choose Unrestricted, and see if that helps.
I am using browser.
JDK 1.1 or JDK1.2 ?
jdk1.2
ASKER CERTIFIED SOLUTION
Avatar of terajiv
terajiv

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial