No I am not. How and where would I use doPriveleged?
-----Original Message-----
From: Rickard �berg [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 14, 1999 12:02 AM
To: [EMAIL PROTECTED]
Subject: Re: FilePermissions
Hey
"Brininstool, Allen" wrote:
> I am referrencing an object which does file I/O in a Session bean. I have
> used the policytool to create an AllPermissions entry for all files in the
> directory which contains the needed files. I am adding this entry in the
> 'server.policy' file in the J2EE lib directory. I am getting
> java.security.AccessControlException on the needed files. The entry in the
> server.policy file looks like:
>
> grant codeBase "file:/d:/adv253e/*" {
> permission java.security.AllPermission;
> };
>
> The d:/adv253e directory contains all of the files in question.
>
> Any ideas?
<wild guess>
Are you using doPrivileged where appropriate?
</wild guess>
/Rickard
--
Rickard �berg
@home: +46 13 177937
Email: [EMAIL PROTECTED]
http://www.dreambean.com
Question reality
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".