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.RuntimePermissio n accessClassInPackage.sun.j dbc.odbc' .
what could be the problem?
what could be the problem?
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
ASKER
The very same uid, pwd, driver set works
for an application. And my servlet is able to reach database with the same set.
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.
ASKER
How to change the security settings.
Any codes ?
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.
ASKER
I am using browser.
JDK 1.1 or JDK1.2 ?
ASKER
jdk1.2
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.