tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "thuret olivier" <oliv...@metaboli.com>
Subject java.security.AccessControlException
Date Fri, 09 Jan 2004 16:00:14 GMT
hello,

i'm problem with my tomcat 5.0.16.
i have a error message when tomcat start with the following message : 

java.security.AccessControlException: access denied (java.io.FilePermission C:\Tomcat\webapps\V2\WEB-INF\classes\mx4j\tools\naming\NamingService.class
read)
        at java.security.AccessControlContext.checkPermission(Unknown Source)
        at java.security.AccessController.checkPermission(Unknown Source)
        at java.lang.SecurityManager.checkPermission(Unknown Source)
        at java.lang.SecurityManager.checkRead(Unknown Source)
        at java.io.File.exists(Unknown Source)
        at org.apache.naming.resources.FileDirContext.file(FileDirContext.java:873)
        at org.apache.naming.resources.FileDirContext.lookup(FileDirContext.java:255)
        at org.apache.naming.resources.ProxyDirContext.lookup(ProxyDirContext.java:334)
        at org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:1726)
        at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1594)
        at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:883)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1333)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1213)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        at test.maclasse.database.rmi.ReloadCacheEngine.startServerRmi(ReloadCacheEngine.java:83)
        at test.maclasse.servlet.Init.init(ClientVersion.java:56)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1044)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3948)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4271)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:816)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518)
        at org.apache.catalina.core.StandardService.start(StandardService.java:519)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:2343)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
Caused by: java.lang.RuntimeException: access denied (java.util.PropertyPermission catalina.base
read)
        at org.apache.catalina.core.ApplicationContextFacade.doPrivileged(ApplicationContextFacade.java:489)
        at org.apache.catalina.core.ApplicationContextFacade.log(ApplicationContextFacade.java:315)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1081)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3948)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4271)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:816)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518)
        at org.apache.catalina.core.StandardService.start(StandardService.java:519)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:2343)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
        ... 6 more

i modified the catalina.policy (WEB APPLICATION PERMISSIONS) to :

grant { 
  permission java.security.AllPermission;
};

and the jar (mx4j-tools.jar) in tomcat/common/lib but doesn't work :(, on tomcat 4.1.29 it's
work with the same settings ....

where is my mistake ?

thanks a lot
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message