According to EJB specification, file I/O is not supported is session or
entity beans.  It appears that the container you are using is enforcing this
restriction.  You need to move the file I/O outside of the EJB TP container.




> -----Original Message-----
> From: Brininstool, Allen [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 13, 1999 4:57 PM
> To: [EMAIL PROTECTED]
> Subject: FilePermissions
>
>
> 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?
>
> ==============================================================
> =============
> 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".

Reply via email to