For Programmers: Free Programming Magazines  


Home > Archive > Java Security > April 2005 > java policy









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author java policy
greg hock via JavaKB.com

2005-04-12, 9:01 pm

We are trying to locate and edit the appropriate java.policy file that gets
exercised on our server which has 1.50_02 installed and runs apache 2.0.
Our problem is we get a security acces exception whenever our applet tries
to execute some code that attempts to do a System.getProperty(). We have
been told to add the following line into the java.policy file but we don't
know which one to edit (we have approximately 20 on our server).
permission java.security.SecurityPermission "com.bean.xbean.debug","read";

--
Message posted via http://www.javakb.com
Selvamohan Neethiraj

2005-04-13, 4:01 am

Can you provide us the exception ?

You should add the following permission:
<code>
permission java.util.PropertyPermission "com.bean.xbean.debug", "read";
</code>

Thanks,
Selva-
selvajavaone@infotekies.com



"greg hock via JavaKB.com" <forum@nospam.JavaKB.com> wrote in message
news:31b26992cdd2429aae2db59d66fc2678@Ja
vaKB.com...
> We are trying to locate and edit the appropriate java.policy file that
> gets
> exercised on our server which has 1.50_02 installed and runs apache 2.0.
> Our problem is we get a security acces exception whenever our applet tries
> to execute some code that attempts to do a System.getProperty(). We have
> been told to add the following line into the java.policy file but we don't
> know which one to edit (we have approximately 20 on our server).
> permission java.security.SecurityPermission "com.bean.xbean.debug","read";
>
> --
> Message posted via http://www.javakb.com



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com