tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andre Legendre <hale_in...@yahoo.com>
Subject Repost: java.security.AccessControlException
Date Tue, 07 Sep 2004 15:34:44 GMT
Hi

I post again my problem because I get stuck and I need some help.

I had a servlet working using jwsdp 1.3. I changed to 1.4 and I get now
a java.security.AccessControlException

My classes are in a jar located in WEB-INF/lib/
my policy is :
grant {
    permission java.security.AllPermission "", "";
};

Any help welcome

Andre Legendre
Error is :

INFO: Server startup in 20279 ms
Setting controller properties
Setting controller RMISecurityManager
Setting controller RMISecurityManager Finish
127.0.0.1
Setting controller startDiscovery
java.security.AccessControlException: access denied
(java.io.FilePermission
/home/rcs/Master/extern/java/jwsdp/tomcat-jwsdp-1.4/webapps/mfg_ServletToJsp/WEB-INF/classes/com/sun/rio/resources/client/JiniClient.class


read)
        at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
        at
java.security.AccessController.checkPermission(AccessController.java:401)
        at
java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
        at java.lang.SecurityManager.checkRead(SecurityManager.java:863)
        at java.io.File.exists(File.java:678)
        at
org.apache.naming.resources.FileDirContext.file(FileDirContext.java:881)
        at
org.apache.naming.resources.FileDirContext.lookup(FileDirContext.java:263)
        at
org.apache.naming.resources.ProxyDirContext.lookup(ProxyDirContext.java:338)
        at
org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:1729)
        at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1597)
        at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:891)
        at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)
        at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1220)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
        at WebMfgServiceManager.startDiscovery(Unknown Source)
        at WebMfgServiceManager.<init>(Unknown Source)
        at servletToJsp.init(Unknown Source)
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1044)
        at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:712)
        at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:719)
        at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:516)
        at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:453)
        at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:369)
        at
org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:717)
        at
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:687)
        at
org.apache.jsp.jsptoserv.jsptoservlet_jsp._jspService(jsptoservlet_jsp.java:45)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:141)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:286)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:258)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
        at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:256)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:210)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:513)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:196)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:175)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)
        at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:207)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:647)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:499)
        at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:575)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:649)
        at java.lang.Thread.run(Thread.java:534)
java.security.AccessControlException: access denied
(java.io.FilePermission
/home/rcs/Master/extern/java/jwsdp/tomcat-jwsdp-1.4/webapps/mfg_ServletToJsp/WEB-INF/classes/javax/servlet/ServletExceptionBeanInfo.class


read)
        at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
        at
java.security.AccessController.checkPermission(AccessController.java:401)
        at
java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
        at java.lang.SecurityManager.checkRead(SecurityManager.java:863)
        at java.io.File.exists(File.java:678)
        at
org.apache.naming.resources.FileDirContext.file(FileDirContext.java:881)
        at
org.apache.naming.resources.FileDirContext.lookup(FileDirContext.java:263)
        at
org.apache.naming.resources.ProxyDirContext.lookup(ProxyDirContext.java:338)
        at
org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:1729)
        at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1597)
        at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:891)
        at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)
        at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1220)
        at java.beans.Introspector.instantiate(Introspector.java:1322)
        at
java.beans.Introspector.findExplicitBeanInfo(Introspector.java:393)
        at java.beans.Introspector.<init>(Introspector.java:342)
        at java.beans.Introspector.getBeanInfo(Introspector.java:144)
        at
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(PropertyUtils.java:949)
        at
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(PropertyUtils.java:979)
        at
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUtils.java:887)
        at
org.apache.commons.beanutils.PropertyUtils.getSimpleProperty(PropertyUtils.java:1172)
        at
org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.java:772)
        at
org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:801)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:299)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
        at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:256)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:210)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:513)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:196)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:175)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)
        at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:207)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:647)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:499)
        at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:575)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:649)
        at java.lang.Thread.run(Thread.java:534)



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