tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "thuret olivier" <oliv...@metaboli.com>
Subject Re: java.security.AccessControlException
Date Fri, 09 Jan 2004 16:10:49 GMT
no thanks i see my error i'm a noobie ......

----- Original Message ----- 
From: "thuret olivier" <olivier@metaboli.com>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Friday, January 09, 2004 5:00 PM
Subject: java.security.AccessControlException


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(WebappClas
sLoader.java:1726)
        at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo
ader.java:1594)
        at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav
a:883)
        at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1333)
        at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1213)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        at
test.maclasse.database.rmi.ReloadCacheEngine.startServerRmi(ReloadCacheEngin
e.java:83)
        at test.maclasse.servlet.Init.init(ClientVersion.java:56)
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:10
44)
        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(ApplicationCo
ntextFacade.java:489)
        at
org.apache.catalina.core.ApplicationContextFacade.log(ApplicationContextFaca
de.java:315)
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:10
81)
        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


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message