|
I've been using Tomcat for quite a while now and
so far everything was working fine. That is, until I tried to embed Tomcat in
one of my applications... Is there any documentation that could tell me how to
do that? I followed the examples in the files EmbededTomcat (3.2.1) and Embedded
(4.0b1), but in both cases I keep getting the same symptom: At run time, upon
trying to add any context, I get an AccessControlException (see stacktrace
below). Please note that I'm trying to access the same directories that work
perfectly fine in a standalone Tomcat.
ContextManager: Adding context Ctx(
)
cannot process configuration web service using "/home/klaus/dev/java/jakarta-tomcat-3.2.1/webapps/ROOT" Security init for Context /home/klaus/dev/java/jakarta-tomcat-3.2.1/webapps/ROOT failed java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader ) at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.<init>(Compiled Code) at java.lang.Exception.<init>(Compiled Code) at java.lang.RuntimeException.<init>(RuntimeException.java:47) at java.lang.SecurityException.<init>(SecurityException.java:39) at java.security.AccessControlException.<init>(AccessControlException.java:57) at java.security.AccessControlContext.checkPermission(Compiled Code) at java.security.AccessController.checkPermission(Compiled Code) at java.lang.SecurityManager.checkPermission(Compiled Code) at java.lang.SecurityManager.checkCreateClassLoader(SecurityManager.java:611) at java.lang.ClassLoader.<init>(ClassLoader.java:236) at org.apache.tomcat.loader.AdaptiveClassLoader.<init>(AdaptiveClassLoader.java:213) at org.apache.tomcat.loader.AdaptiveServletLoader.<init>(AdaptiveServletLoader.java:88) at org.apache.tomcat.context.LoaderInterceptor.contextInit(Compiled Code) at org.apache.tomcat.core.ContextManager.initContext(Compiled Code) at org.apache.tomcat.startup.EmbededTomcat.initContext(Compiled Code) at TestEmbed.main(TestEmbed.java:14) |
- Embedded Tomcat Klaus Sonnenleiter
- Embedded Tomcat Danilo Luiz Rheinheimer
- Embedded Tomcat Patrick Lacson
- Embedded tomcat Glen Stampoultzis
- Embedded tomcat Steffen Heil
- RE: Embedded tomcat Shapira, Yoav
