I may be wrong but it seems that you launch tomcat from an account which
doesn't have sufficient rights to
the var/lib/tomcat5.5/webapps/nutch/WEB-INF/classes/logging.properties file.

You might have installed the service as a privileged user but start tomcat
under another account and which doesn't have the rights.

Check this first

Best Regards
Alexander Aristov


On 22 May 2010 17:34, Michael R. <[email protected]> wrote:

> Hello,
>
> Please, can anyone post the workaround on debian lenny for the
> permission problem with tomcat.
>
> I got the following error from tomcat:
>
> Dec 21, 2010 1:52:43 PM org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive nutch.war
> Dec 21, 2010 1:52:43 PM org.apache.commons.modeler.Registry
> registerComponent
> SEVERE: Error registering
> Catalina:type=Valve,name=StandardContextValve,path=/nutch,host=localhost
> javax.management.MBeanException: Cannot instantiate ModelMBean of class
> org.apache.commons.modeler.BaseModelMBean
>        at
> org.apache.commons.modeler.ManagedBean.createMBean(ManagedBean.java:385)
>        at
> org.apache.commons.modeler.Registry.registerComponent(Registry.java:835)
>        at
>
> org.apache.catalina.core.StandardPipeline.registerValve(StandardPipeline.java:302)
>        at
> org.apache.catalina.core.StandardPipeline.start(StandardPipeline.java:234)
> [..]
>
> Caused by: java.security.AccessControlException: access denied
> (java.io.FilePermission
> /var/lib/tomcat5.5/webapps/nutch/WEB-INF/classes/logging.properties read)
>        at
>
> java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
>        at
> java.security.AccessController.checkPermission(AccessController.java:546)
>        at
> java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
>        at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
>        at java.io.File.exists(File.java:731)
> [..]
>
> Dec 21, 2010 1:52:44 PM org.apache.catalina.loader.WebappClassLoader
> findResourceInternal
> INFO: Illegal access: this web application instance has been stopped
> already.  Could not load logging.properties.  The eventual following
> stack trace is caused by an error thrown for debugging purposes as well
> as to attempt to terminate the thread which caused the illegal access,
> and has no functional impact.
>
>
>
> I also add the folling code to /etc/tomcat5.5/policy.d/04webapps.policy
>
> grant codeBase "file:/usr/share/tomcat5.5-webapps/nutch/-" {
>    permission java.util.PropertyPermission "user.dir", "read";
>    permission java.util.PropertyPermission "java.io.tmpdir",
> "read,write";
>    permission java.util.PropertyPermission "org.apache.*",
> "read,execute";
>    permission java.io.FilePermission "/-", "read,write,execute,delete";
>    permission java.io.FilePermission "/usr/local/nutch/crawls/-" ,
> "read";
>    permission java.io.FilePermission "/var/lib/tomcat5.5/temp", "read";
>    permission java.io.FilePermission "/var/lib/tomcat5.5/temp/-",
> "read,write,execute,delete";
>    permission java.io.FilePermission "*", "read,write,execute,delete";
>    permission java.lang.RuntimePermission "createClassLoader", "";
>    permission java.security.AllPermission;
>    };
>
> Thanks
>
> Michael
>
>
>
>
>
>
>

Reply via email to