tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Etienne Deleflie <>
Subject tomcat 4.0 and jaas (without JASSRealm)
Date Wed, 25 Jun 2003 02:28:29 GMT

I am getting a security exception when my servlet is loaded:

java.lang.ExceptionInInitializerError: java.lang.SecurityException: 
	at  bla.bla.blaom.mycompmany.etc.

I assume it is because I need to declare that I can trust jaas.jar. I am 
using jdk 1.3.... and tomcat 4.0.1

If I understand correctly, Tomcat makes the JDK's resident policy file 
defunct for its webapps, and replaces it with catalina.policy.

so in catalina.policy, I am trying to grant jaas.jar all permissions 
(for tests sake) with the following lines:

grant codeBase "file:${catalina.home}/webapps/myApp/lib/-" {

This does not work. I get the same error.

So I have created a jaas.policy file and a jaas.conf and I am referring 
them into the JVM by running Tomcat with the following options:


Should this do the trick ? or will the Tomcat sandbox environement 
ignore this ?

any suggestions ?

any help is appreciated


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

View raw message