RE: access problems related to xml libs?

"Bordet, Simone" <[email protected]>
Newsgroups gmane.comp.java.mx4j.devel
Message-ID <[email protected]>
Hi,

> So, I added
> 
>      permission java.util.FilePermission "<<ALL FILES>>", "read";
> 
> to every code base and the default code base, and it still 
> fails.  I then added
> 
>      permission java.util.FilePermission
>          "/home/blaine/mx4jsa/lib/xercesImpl.jar", "read";
>      permission java.util.FilePermission
>          "/home/blaine/mx4jsa/lib/xalan.jar", "read";
>      permission java.util.FilePermission
>          "/usr/java/j2sdk1.4.2_02/jre/lib/rt.jar", "read";
> 
> for every code base and the default, but it STILL fails with
> 
> balder$ grep deni stderr.txt
> access: access denied (java.io.FilePermission 
> /usr/java/j2sdk1.4.2_02/jre/lib/ja
> xp.properties read)

Well, some of these failures may be handled gracefully (for example, look for a file, if any exception use some defaults).

To help you I need to have the stack trace of the AccessControlException: access denied, and the protection domain that failed (printed on System.err when -Djava.security.debug=access.failure) (along with its permissions and stack trace).

Zipping the output and posting it may be less work for you, I'll try to find some time to look at it.

It's a long walk to fine tune the permissions, but it's a good start knowing that AllPermission makes your app work correctly. Then it's only a matter of setting java.security.debug and have a lot of patience.

Simon


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.