# Java Security Problem

Ngiam Kee Jang (keejang@post1.com)
Wed, 28 Jul 1999 10:59:55 +0800

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Chris Bradley: "Which encryption method is identical to Unix crypt()"
- Previous message: Arathi Krishnaiyengar: "password encoding"

    From: "Ngiam Kee Jang" <keejang@post1.com>

    To: <java-security@java.sun.com>

    Subject: Java Security Problem

    Date: Wed, 28 Jul 1999 10:59:55 +0800

------=_NextPart_000_002B_01BED8E8.5398FCE0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Sun-Content-Length: 1299

Hi,

I am sorry for mailing you guys directly but I do not know where to =
start looking for a solution to this problem of mine. The links in the =
mailing lists are out of order. Please help me with this problem which =
is most probably caused by my inexperience

I have just started learning using a SUN machine (Ultra 10S webserver) =
that we have purchased. I am developing a Java 3D applet that runs on =
browsers. The Java 3D data file is placed on a server.
The JDK is installed on a Solaris machine and is in the /usr/jdk1.2.1 =
directory.
=20
I have created a security policy file using policy tool and placed it in =
/usr/jdk1.2.1/jre/lib/security/MyPolicy.policy
The policy file does not have a codebase and I have granted All =
Permission to it. I have also altered the Java.Security file and added =
the URL of MyPolicy to it.
=20
However, I still get an error:
java.security.AccessControlException: access denied =
(java.io.FilePermission coke-can.c3d read)
=20
The data file (.c3d) is what I want to read. I have however managed to =
load the demo Java 3D applets in the same directory.
=20
This may be a dumb question but do I need to restart the server for the =
new settings to take place ?
What have I done wrong ?=20
=20
Please help me.
=20
Best Regards,
Ngiam Kee Jang
=20

------=_NextPart_000_002B_01BED8E8.5398FCE0
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Sun-Content-Length: 2651

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
Hi,
I am sorry for mailing you guys = directly but I=20 do not know where to start looking for a solution to this problem of = mine. The=20 links in the mailing lists are out of order. Please help me with this = problem=20 which is most probably caused by my inexperience
I have just started learning using a = SUN machine=20 (Ultra 10S webserver) that we have purchased. I am developing a Java 3D applet that runs on browsers. The = Java 3D data=20 file is placed on a server.
The JDK is installed on a Solaris machine and is in = the=20 /usr/jdk1.2.1 directory.
I have created a security policy file using policy = tool and=20 placed it in /usr/jdk1.2.1/jre/lib/security/MyPolicy.policy
The policy file does not have a codebase and I have = granted=20 All Permission to it. I have also altered the Java.Security file and = added the=20 URL of MyPolicy to it.
However, I still get an error:
java.security.AccessControlException: access denied=20 (java.io.FilePermission coke-can.c3d read)
The data file (.c3d) is what I want to read. I have = however=20 managed to load the demo Java 3D applets in the same = directory.
This may be a dumb question but do I = need to=20 restart the server for the new settings to take place ?
What have I done wrong ?
Please help me.
Best Regards,
Ngiam Kee = Jang
=20
------=_NextPart_000_002B_01BED8E8.5398FCE0--

- Next message: Chris Bradley: "Which encryption method is identical to Unix crypt()"
- Previous message: Arathi Krishnaiyengar: "password encoding"