axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sagara Gunathunga <sagara.gunathu...@gmail.com>
Subject Re: Error in installation of axis 1.4: Cannot instantiate ModelMBean
Date Fri, 13 Mar 2009 20:04:08 GMT
 This [1] may  help you.

[1] - http://aleph-null.tv/article/20080327-0118-335.xml/Tomcat-5.5-On-Debian:-AccessControlException-for-logging.properties

Thanks ,



On Sat, Mar 14, 2009 at 12:23 AM, Jean-Paul Bouchet
<jean-paul.bouchet@avignon.inra.fr> wrote:
> Hello
> I am trying to install axis 1.4 on a Debian server (Lenny distribution).
> Tomcat5.5 has been installed successfully (applications manager and admin
> work correctly). We use version1.6 of Java.
> Axis is my first application installed in /usr/share/tomcat5.5/webapps.
> When I start tomcat5.5 I get the following errors:
>
> 13 mars 2009 18:56:04 org.apache.commons.modeler.Registry registerComponent
> SEVERE: Error registering
> Catalina:type=Valve,name=StandardContextValve,path=/axis,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)
> ...
> Caused by: java.security.AccessControlException: access denied
> (java.io.FilePermission
> /var/lib/tomcat5.5/webapps/axis/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)
> ...
> 13 mars 2009 18:56:04 org.apache.catalina.core.StandardPipeline
> registerValve
> INFO: Can't register valve
> org.apache.catalina.core.StandardContextValve[/axis]
> 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)
> ...
> Caused by: java.security.AccessControlException: access denied
> (java.io.FilePermission
> /var/lib/tomcat5.5/webapps/axis/WEB-INF/classes/logging.properties read)
>      at
> java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
>      at
> java.security.AccessController.checkPermission(AccessController.java:546)
> ...
> 13 mars 2009 18:56:04 org.apache.commons.modeler.Registry registerComponent
> SEVERE: Error registering Catalina:type=Manager,path=/axis,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)
> ...
> Caused by: java.security.AccessControlException: access denied
> (java.io.FilePermission
> /var/lib/tomcat5.5/webapps/axis/WEB-INF/classes/logging.properties read)
>      at
> java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
>      at
> java.security.AccessController.checkPermission(AccessController.java:546)
>
> I have checked all the read-write permissions for user tomcat55.
> The file /var/lib/tomcat5.5/webapps/axis/WEB-INF/classes/logging.properties
> didn't exist. I have created one with the following content:
> handlers=java.util.logging.FileHandler, java.util.logging.ConsoleHandler
> .level=INFO
> java.util.logging.FileHandler.pattern=%t/axis.log
>
> I have modified both /etc/tomcat5.5/catalina.policy and
> /etc/tomcat5.5/policy.d/04webapps.policy by adding:
> grant codeBase "file:${catalina.home}/webapps/axis/WEB-INF/lib/-" {
>     permission java.security.AllPermission;
>     permission java.io.FilePermission
> "/usr/share/tomcat5.5/webapps/axis/WEB-INF/classes/logging.properties",
> "read";
> };
> (Due to symbolic links /usr/share/tomcat5.5/webapps is the same as
> var/lib/tomcat5.5/webapps)
>
> Has someone any ideas about the origin of this error and about  the way to
> solve it ?
> Thanks in advance
>
> Jean-Paul Bouchet
> Institut National de la Recherche Agronomique - Centre d'Avignon
> UR 1052 <http://www.avignon.inra.fr/gafl> - Génétique et Amélioration des
> Fruits et Légumes
> Domaine Saint-Maurice - BP 94 - F-84143 Montfavet cedex - France
> E-mail : <mailto:Jean-Paul.Bouchet@avignon.inra.fr>
> Phone : +33-(0)4-3272-2723 - Fax : +33-(0)4-3272-2702
> <http://www.resistvir-db.org>
>
>
>



-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://sagaras.awardspace.com/

Mime
View raw message