tomcat-users mailing list archives

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

Thanks for your message.
I solved my problem starting tomcat with -security.
The fact is that I try first to get things works, even without security 
and then
set security step by step.

Now that things are working again I will start to set back security on.

Best Regards

Andre Legendre

David Wall wrote:

>The syntax is:
>
>permission java.security.AllPermission;
>
>Of course, why use a security manager at all if the default is no security
>at all?
>
>David
>
>----- Original Message ----- 
>From: "Andre Legendre" <hale_india@yahoo.com>
>To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
>Sent: Tuesday, September 07, 2004 8:34 AM
>Subject: Repost: java.security.AccessControlException
>
>
>  
>
>>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(WebappClas
>sLoader.java:1729)
>  
>
>>        at
>>
>>    
>>
>org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo
>ader.java:1597)
>  
>
>>        at
>>
>>    
>>
>org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav
>a:891)
>  
>
>>        at
>>
>>    
>>
>org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
>a:1340)
>  
>
>>        at
>>
>>    
>>
>org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
>a: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:10
>44)
>  
>
>>        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(ApplicationDis
>patcher.java:516)
>  
>
>>        at
>>
>>    
>>
>org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
>er.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(Application
>FilterChain.java:286)
>  
>
>>        at
>>
>>    
>>
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
>ain.java:206)
>  
>
>>        at
>>
>>    
>>
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
>va:258)
>  
>
>>        at
>>
>>    
>>
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
>t.java:151)
>  
>
>>        at
>>
>>    
>>
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
>  
>
>>        at
>>
>>    
>>
>org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
>Valve.java:256)
>  
>
>>        at
>>
>>    
>>
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
>va:210)
>  
>
>>        at
>>
>>    
>>
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
>t.java:151)
>  
>
>>        at
>>
>>    
>>
>org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
>.java:513)
>  
>
>>        at
>>
>>    
>>
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
>t.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(StandardValveContex
>t.java:151)
>  
>
>>        at
>>
>>    
>>
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:175
>)
>  
>
>>        at
>>
>>    
>>
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
>t.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(StandardValveContex
>t.java:151)
>  
>
>>        at
>>org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
>>        at
>>
>>    
>>
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
>t.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.processConne
>ction(Http11Protocol.java:499)
>  
>
>>        at
>>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:575)
>>        at
>>
>>    
>>
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
>a: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(WebappClas
>sLoader.java:1729)
>  
>
>>        at
>>
>>    
>>
>org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo
>ader.java:1597)
>  
>
>>        at
>>
>>    
>>
>org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav
>a:891)
>  
>
>>        at
>>
>>    
>>
>org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
>a:1340)
>  
>
>>        at
>>
>>    
>>
>org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
>a: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(PropertyUt
>ils.java:949)
>  
>
>>        at
>>
>>    
>>
>org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(PropertyUt
>ils.java:979)
>  
>
>>        at
>>
>>    
>>
>org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUti
>ls.java:887)
>  
>
>>        at
>>
>>    
>>
>org.apache.commons.beanutils.PropertyUtils.getSimpleProperty(PropertyUtils.j
>ava:1172)
>  
>
>>        at
>>
>>    
>>
>org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.j
>ava:772)
>  
>
>>        at
>>
>>    
>>
>org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:80
>1)
>  
>
>>        at
>>
>>    
>>
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
>va:299)
>  
>
>>        at
>>
>>    
>>
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
>t.java:151)
>  
>
>>        at
>>
>>    
>>
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
>  
>
>>        at
>>
>>    
>>
>org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
>Valve.java:256)
>  
>
>>        at
>>
>>    
>>
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
>va:210)
>  
>
>>        at
>>
>>    
>>
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
>t.java:151)
>  
>
>>        at
>>
>>    
>>
>org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
>.java:513)
>  
>
>>        at
>>
>>    
>>
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
>t.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(StandardValveContex
>t.java:151)
>  
>
>>        at
>>
>>    
>>
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:175
>)
>  
>
>>        at
>>
>>    
>>
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
>t.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(StandardValveContex
>t.java:151)
>  
>
>>        at
>>org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
>>        at
>>
>>    
>>
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
>t.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.processConne
>ction(Http11Protocol.java:499)
>  
>
>>        at
>>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:575)
>>        at
>>
>>    
>>
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
>a: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
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>  
>


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