Current Position:Home > Can distribution of a .java.policy file be eliminated

Can distribution of a .java.policy file be eliminated

Update:11-30Source: network consolidation
Advertisement
Sorry for the stupid question, but I'm fairly new to the realm of dealing with Java security...
I have an applet that I want to deploy worldwide as part of an upgrade to an existing website, but I've run into the following error:
"Error getting connection to: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.101)(PORT=1521)))(CONNECT_DATA=(SID=EKB)(SERVER=DEDICATED))) using oracle.jdbc.driver.OracleDriver
access denied (java.util.PropertyPermission oracle.jserver.version read)"
I have managed to figure out that I can eliminate this problem by placing a .java.policy file on all client machines that contain the following:
"grant {
     permission java.util.PropertyPermission "oracle.jserver.version", "read";
However, is there any way to eliminate the need to distribute the policy file to those wanting to use the web site's applet? Can it be done somehow within the SSL certificate that I seemingly also have to distribute?
Any help for this newbee would be appreciated!

The Best Answer

Advertisement
In contrast to what many people say in this forum, it is possible to have an unsigned applet access a database. You don't even have to manipulate the client's policy-file. The requirement is that the database is located on the same machine as the applet is downloaded from.There are however other things that can break this possibility. One is the database-driver itself.
In the case of Oracle we have tried using different versions of the driver. When using version 8.1.7 or 9.0.1 things work nicely, but when switching to version 9.2 it stops working. There is a question on OTN [1]. Let's see what Oracle has to say about it.
[1] Problem connecting using Oracle JDBC drivers
  • Can distribution of a .java.policy file be eliminated Update:11-30

    Sorry for the stupid question, but I'm fairly new to the realm of dealing with Java security... I have an applet that I want to deploy worldwide as part of an upgrade to an existing website, but I've run into the following error: "Error getting conne

  • How to handle the java.policy file ? Update:10-11

    Can somebody tell me how to handle the java.policy file? I always get java.net.SocketExceptions and java.security.AccessControlExceptions while connecting to an appserver from an applet. What do I have to write in the java.policy file, where do I hav

  • File Access with unsigned Applet through editing the java.policy file Update:10-11

    I'am starting to lose my hair on this... I am trying to get an applet to run so that it can access the file system to move files on my local maschin. Because this applet is only running on my VM i can change the java.policy to avoid the signing of th

  • Essential question concerning java.policy file Update:11-30

    I have been searching this forum for an answer to this question: Is there a way to run a signed applet on an intranet (via the Plugin) with out having to go around to each user's workstation and change their java.policy file? So far, I have seen this

  • .java.policy file problem Update:11-30

    Is there someone who knows how to reinitialise the java policy file at runtime? My signed applet writes a policy file to the users home directory, but that file is only used after closing the browser and surfing back to our page. It should immediatly

  • ".java.policy" file where is this located Update:11-30

    Hi, Where is the .java.policy file located. Do I have to create it? Do I have to use any editor for this? Please help me. Thank you, Regards UmaIt'll probably be in the lib/security directory of your JRE. If you've got a JDK then it'll be something l

  • Java.policy file  - Must I change it? Update:11-30

    I just got a certificate from Verisign with which I signed my applet. It works fine and now I want to distribute it to a group of users. Back when I was developing the applet with a self-signed cert, I changed the java.policy file to allow the applet

  • Where to put java.policy file? Update:11-30

    Under which directory the "java.policy" file must be kept in?Hi! The policy file must be indicated in the command line or by system property, when you starts the service, like the following: -Djava.security.policy = yourfile.policy. If you want

  • Java Networking and policy file Update:11-30

    Two part question, First I writing a applet that is working with sockets, I've compared this and a delphi program and it seems that the delphi program is writing to and recieving from the socket at a faster rate (four second delay for the applet) the

  • Server.policy file Update:10-11

    The ejb I am developing is trying to delete the following file from a local filesystem (Linux SuSE 9.3 Pro) : /path/to/file/delete.me I get the following exception: java.security.AccessControlException: access denied (java.io.FilePermission /path/to/