Hi, I have a problem with the "Tomcat Security".

I have to activate the security option under Tomcat. I have followed the
instructions on the documentation.

****
I remove the comment and so I have activate the

<ContextInterceptor
            className="org.apache.tomcat.context.PolicyInterceptor" />

directive.
****

Then I run tomcat and the following error is appeared on the screen

Starting Tomcat in new window
Starting tomcat. Check logs/tomcat.log for error messages
cannot process configuration web service using "/examples webapps/examples"
Security init for Context webapps/examples failed
FATAL:java.security.AccessControlException: access denied
(java.lang.RuntimePerm
ission createClassLoader )
java.security.AccessControlException: access denied
(java.lang.RuntimePermission
 createClassLoader )
        at
java.security.AccessControlContext.checkPermission(AccessControlConte
xt.java:195)
        at
java.security.AccessController.checkPermission(AccessController.java:
403)
        at
java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
        at
java.lang.SecurityManager.checkCreateClassLoader(SecurityManager.java
:611)
        at java.lang.ClassLoader.<init>(ClassLoader.java:236)
        at
org.apache.tomcat.loader.AdaptiveClassLoader.<init>(AdaptiveClassLoad
er.java:213)
        at
org.apache.tomcat.loader.AdaptiveServletLoader.<init>(AdaptiveServlet
Loader.java:88)
        at
org.apache.tomcat.context.LoaderInterceptor.contextInit(LoaderInterce
ptor.java, Compiled Code)
        at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java
, Compiled Code)
        at org.apache.tomcat.core.ContextManager.init(ContextManager.java,
Compi
led Code)
        at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
        at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)


Why? (if I run tomcat with -security option all work)

Thanks.

Reply via email to