tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antony Bowesman <...@teamware.com>
Subject Re: Fixed - Repost:HELP! Security question - grant entries
Date Fri, 16 Nov 2001 11:05:59 GMT
Hi,

Got it to work, permissions for JSPs can only be given at the context
root level.  I was trying to be more fine grained which is not possible.

Antony

Antony Bowesman wrote:
> 
> Hi,
> 
> How can you assign permissions to code compiled from a JSP, it is
> possible or do you have to put all code that performs actions that may
> encounter security checks inside a bean and then allocate permissions to
> the bean class?
> 
> I tried adding
> 
> grant codeBase
> "file:${catalina.home}/work/localhost/examples/jsp/security/protected/-"
> {
>         permission java.security.AllPermission;
> };
> 
> to the conf/catalina.policy but I get an AccessControlException because
> the compiled code in the stack frame
> 
> org.apache.jsp.index$jsp._jspService(index$jsp.java:116)
> 
> does not have permission.
> 
> It's tomcat 4.0
> 
> Any ideas?
> Antony
> 
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>

-- 
Antony Bowesman
Teamware Group 
adb@teamware.com
phone: +358 9 5128 2562
fax  : +358 9 5128 2705

intra / extra / Internet solutions at www.teamware.com

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message