helpful jws.policy

Mark Swanson <mark-e2GstmqqWGa5mcYau+xr2AC/[email protected]>
Newsgroups gmane.comp.java.beanshell.devel
Organization Web Service Solutions, Inc.
Message-ID <[email protected]>
In order to make debugging easier, I think it is acceptable to forget about 
the minor SecurityExceptions that occur during the reading of System 
properties by using the following policy file. It is trivial to clean this 
sort of thing up later.

This lets you use -Ddebug=true -Dtrace=true with all of the other (major) 
restrictions still in place.

grant {
        permission java.net.SocketPermission "localhost:1024-", "listen";
        permission java.net.SocketPermission "localhost", "connect";
        permission java.net.SocketPermission "localhost", "accept";
        permission java.util.PropertyPermission "*", "read";
        permission java.lang.RuntimePermission "exitVM";
        permission java.lang.RuntimePermission "stopThread";
        permission java.awt.AWTPermission "showWindowWithoutWarningBanner";
        permission java.awt.AWTPermission "accessEventQueue";
};

Cheers.

-- 
VoIP SIP:[email protected]
Free calendar client and server - works with Exchange/Outlook/Yahoo!
TV-Listing and Weather Schedules
http://www.ScheduleWorld.com/
http://www.ScheduleWorld.com/sw/ScheduleWorld.jnlp (JWS)


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&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.