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 Mon, 12 Jan 2004 10:15:32 GMT
yes,thanks :)
----- Original Message ----- 
From: "Jeanfrancois Arcand" <jfarcand@apache.org>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Friday, January 09, 2004 7:26 PM
Subject: Re: java.security.AccessControlException


>
>
> thuret olivier wrote:
>
> >no thanks i see my error i'm a noobie ......
> >
> >
> ???? Have you fixed your problem?
>
> -- Jeanfrancois
>
>
> >----- 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(WebappCla
s
> >sLoader.java:1726)
> >        at
>
>org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassL
o
> >ader.java:1594)
> >        at
>
>org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.ja
v
> >a:883)
> >        at
>
>org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.ja
v
> >a:1333)
> >        at
>
>org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.ja
v
> >a:1213)
> >        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> >        at
>
>test.maclasse.database.rmi.ReloadCacheEngine.startServerRmi(ReloadCacheEngi
n
> >e.java:83)
> >        at test.maclasse.servlet.Init.init(ClientVersion.java:56)
> >        at
>
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1
0
> >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(ApplicationC
o
> >ntextFacade.java:489)
> >        at
>
>org.apache.catalina.core.ApplicationContextFacade.log(ApplicationContextFac
a
> >de.java:315)
> >        at
>
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1
0
> >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
> >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
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