tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: java.lang.RuntimePermission
Date Mon, 09 Aug 2010 18:18:16 GMT
Hash: SHA1


On 8/9/2010 1:24 PM, Rashid Jilani wrote:
> Hi: Gurus I am having the following exception when I try to fire Tomcat with
> -security option with JAAS Realm.
> access denied
> (java.lang.RuntimePermission

You should provide more of the stack trace for us to be able to help you.

> BTW I also try to add the following lines in catalina.policy file but no
> luck
> grant codeBase "file:/C:/Documents and
> Settings/xxx/workspace/WebSecurity/WebContent/WEB-INF/classes/-" {
>     permission;
>     permission java.lang.RuntimePermission
> "";
>     permission java.lang.RuntimePermission
> "";
>     permission java.lang.RuntimePermission
> "";
> };

You may need to grant permissions to your webapp's library .jar files, too.

> Hensley how the JAAS can integrate with Tomcat has almost no real example or
> documentation, so I am just trying my luck with trails and errors, please
> let me know if some has any idea why I am having these errors.

It seems pretty clear that you simply haven't given permission for some
code to perform some task.

The stack trace tells you which code failed and what permission you
need: it should be trivial to add a "grant" that allows that code those

You might want to read the thread back in March 2010 titled "[OT]
SecurityManager and Java Policy Files". Unfortunately, we didn't get
very far.

- -chris
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message