Solved

acess denied by rdbms

Posted on 2000-05-15
9
170 Views
Last Modified: 2010-04-01
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?
0
Comment
Question by:viswaselar
  • 4
  • 2
  • 2
  • +1
9 Comments
 

Expert Comment

by:kurman
ID: 2809883
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
0
 

Author Comment

by:viswaselar
ID: 2810752
The very same uid, pwd, driver set works
for an application. And my servlet is able to reach database with the same set.
0
 

Expert Comment

by:sdwr98
ID: 2810962
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.
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 

Author Comment

by:viswaselar
ID: 2812828
How to change the security settings.
Any codes ?
0
 

Expert Comment

by:sdwr98
ID: 2817322
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.
0
 

Author Comment

by:viswaselar
ID: 2820514
I am using browser.
0
 

Expert Comment

by:kurman
ID: 2821251
JDK 1.1 or JDK1.2 ?
0
 

Author Comment

by:viswaselar
ID: 2828857
jdk1.2
0
 
LVL 3

Accepted Solution

by:
terajiv earned 20 total points
ID: 2924509
try using Properties files...

Rajiv
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Why my table column Id is not passed to java object? 4 44
eclipse apache tomcat admin console 52 121
hibernate jars 4 45
JavaFX TableView not displaying correctly 3 54
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question