add to your permision file a new grant like
grant
.....
permission java.util.java.io.FilePermission "*";
};
Dmitry.
----- Original Message -----
From: <Katrina Chiang> <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 16, 1999 12:18 PM
Subject: Getting AccessControlException when try to use Sun's XML package to
create an input source from a local file
> Hi, I'm using a trial version of JWS 2.0 and wrote a servlet using Sun's
XML
> package from XMLProjectX. I tried to create an XML input source by reading
a
> local XML file. The code works fine under Visual Cafe environment(with
> jdk1.2.2). But once I use JWS 2.0, I kept on getting
AccessControlException
> errors as follows. Can somebody help me with this? Thanks
> javawebserver: java.security.AccessControlException: access denied (ja
> va.io.FilePermission d:\java\webserver\public_html\xml\pipeBitCount.xm l
> read) javawebserver: at
>
va.security.AccessControlContext.checkPermission( AccessControlContext.java
> , Compiled Code) javawebserver: at
> java.security.AccessController.checkPermission(Acce ssController.java,
> Compiled Code) javawebserver: at
> java.lang.SecurityManager.checkPermission(SecurityM anager.java, Compiled
> Code) javawebserver: at
java.lang.SecurityManager.checkRead(SecurityManager
> .java, Compiled Code) javawebserver: at
> java.io.FileInputStream.<init>(FileInputStream.java :65) javawebserver: at
> java.io.FileInputStream.<init>(FileInputStream.java :99) javawebserver: at
> com.sun.xml.parser.Resolver.createInputSource(Resol ver.java:273)
> javawebserver: at com.lucent.qna.servlet.xml.XMLFile.<init>(XMLFile.j
> ava:47)
>
>
>
> ============================
> Katrina Chiang
> Member of Technical Staff
> Bell Labs, Lucent Technologies
>
> [EMAIL PROTECTED]
> (650)565-7664
> 3180 Porter Drive
> Palo Alto, CA
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html