You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Stefano Bonnin <sh...@libero.it> on 2001/08/10 11:53:20 UTC
Tomcat & Security
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.
Can you restart a single application within Tomcat (3.2) ?
Posted by Clifford Lang <cl...@ematic.com>.
Every so often I loose connection with my DataSource, so I'd like to
restart the application in order to re-initialize everything -- Can this be
done? Any examples?
TIA, Cliff
Easy + Automatic = EMATIC
E-commerce enable your web site AND sell your product on ours. Accept
credit cards with no merchant account. Free email and hosting. Do it
all yourself at www.ematic.com.