avalon-phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <pe...@apache.org>
Subject Re: Permissions for deployed SARs.
Date Thu, 03 Oct 2002 00:05:38 GMT
On Thu, 3 Oct 2002 09:51, Paul Hammant wrote:
> How do I configure phoenix to allow this rather than barf?  I had though
> it was in environment.xml, and that...
>       <grant code-base="file:*">
>         <permission class="java.security.AllPermission" />
>       </grant>
> .. was the snippet needed, but am wrong.  Advice?

Your code base would have only picked up jars in the current directory. You 
want to end it with "/-" instead.

<grant code-base="file:/-">
  <permission class="java.security.AllPermission" />

However another option would be

  <permission class="java.security.AllPermission" />

that grants permission on all the classes loaded from .sar file. However you 
could just remove the policy element altogether and all the code will be 
given the all permission.


Peter Donald
 Mark Twain: "In the real world, the right thing never
happens in the right place at the right time. It is 
the task of journalists and historians to rectify 
this error."

To unsubscribe, e-mail:   <mailto:avalon-phoenix-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-phoenix-dev-help@jakarta.apache.org>

View raw message