commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schaible <joerg.schai...@gmx.de>
Subject RE: [VFS] Problem with creating a file system manager.
Date Tue, 06 Feb 2007 17:08:57 GMT
Hi Tony,

Tony Cooke wrote:

>> Hi Tony,
> 
> Hi Jörg.
> 
>> I rather bet, you have an active SecurityManager that prohibits the
>> access to the file system ... ;-)
> 
> I thought this too but I'm unsure as to what access I have to give to
> what. I haven't done too much (actually any) security through the JDK so I
> don't know what rights to give over what.

Best approach normally is to install a memory-based SecurityManager  in a
standalone app. Then you can write a unit test and add all necessary rights
programmatically unless your app works. See
http://fisheye.codehaus.org/browse/~raw,r=1049/xstream/trunk/xstream/src/test/com/thoughtworks/xstream/testutil/DynamicSecurityManager.java
and
http://fisheye.codehaus.org/browse/~raw,r=1069/xstream/trunk/xstream/src/test/com/thoughtworks/acceptance/SecurityManagerTest.java
for reference. The necessary permissions have to be added later to the
policy file of the server though.

> 
>> Try to enable security logs. There was a property mensioned in the JDK,
>> but I don't know by heart.
> 
> I'm not sure what to do but I'll take a look at this and see what I can
> find. Google is my friend.
> 
>> - Jörg
> 
> Thanks Jörg for your help.

You're welcome.

- Jörg


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message