FAQ
Hi all,

i'm install over ubuntu, Tomcat5.5 and Sun Java 1.6.

At this moment i have the follow error msg in tomcat log when try to deploy
the plataform:





Oct 3, 2009 2:12:08 PM org.apache.commons.modeler.Registry registerComponent

SEVERE: Error registering
Catalina:type=Valve,name=StandardContextValve,path=/test,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.jav
a:302)

at
org.apache.catalina.core.StandardPipeline.start(StandardPipeline.java:234)

at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4140)

at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
60)

at
org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:122)

at
org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.
java:144)

at java.security.AccessController.doPrivileged(Native Method)

at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:738)

at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)

at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)

at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889
)

at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)

at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)

at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)

at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:120)

at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)

at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)

at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)

at
org.apache.catalina.core.StandardService.start(StandardService.java:448)

at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)

at org.apache.catalina.startup.Catalina.start(Catalina.java:552)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)

Caused by: java.security.AccessControlException: access denied
(java.io.FilePermission
/usr/lib/perfsonar/services/perfsonar-clmp/WEB-INF/classes/logging.propertie
s 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)

at
org.apache.naming.resources.FileDirContext.file(FileDirContext.java:828)

at
org.apache.naming.resources.FileDirContext.lookup(FileDirContext.java:211)

at
org.apache.naming.resources.ProxyDirContext.lookup(ProxyDirContext.java:294)

at
org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClas
sLoader.java:1925)

at
org.apache.catalina.loader.WebappClassLoader.findResource(WebappClassLoader.
java:937)

at
org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManage
r.java:298)

at
org.apache.juli.ClassLoaderLogManager$2.run(ClassLoaderLogManager.java:273)

at java.security.AccessController.doPrivileged(Native Method)

at
org.apache.juli.ClassLoaderLogManager.getClassLoaderInfo(ClassLoaderLogManag
er.java:270)

at
org.apache.juli.ClassLoaderLogManager.getLogger(ClassLoaderLogManager.java:1
75)

at java.util.logging.Logger.getLogger(Logger.java:275)

at com.sun.jmx.trace.TraceManager.getLogger(TraceManager.java:184)

at com.sun.jmx.trace.TraceManager.isSelected(TraceManager.java:197)

at com.sun.jmx.trace.Trace.isSelected(Trace.java:84)

at
javax.management.modelmbean.ModelMBeanInfoSupport.tracing(ModelMBeanInfoSupp
ort.java:1000)

at
javax.management.modelmbean.ModelMBeanInfoSupport.<init>(ModelMBeanInfoSuppo
rt.java:335)

at
javax.management.modelmbean.ModelMBeanInfoSupport.<init>(ModelMBeanInfoSuppo
rt.java:276)

at
org.apache.commons.modeler.BaseModelMBean.createDefaultModelMBeanInfo(BaseMo
delMBean.java:1328)

at
org.apache.commons.modeler.BaseModelMBean.(Native
Method)

at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sorImpl.java:39)

at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
torAccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

at java.lang.Class.newInstance0(Class.java:355)

at java.lang.Class.newInstance(Class.java:308)

at
org.apache.commons.modeler.ManagedBean.createMBean(ManagedBean.java:378)

... 33 more

Oct 3, 2009 2:12:08 PM org.apache.catalina.core.StandardPipeline
registerValve

INFO: Can't register valve
org.apache.catalina.core.StandardContextValve[/test]

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.jav
a:302)

at
org.apache.catalina.core.StandardPipeline.start(StandardPipeline.java:234)

at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4140)

at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
60)

at
org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:122)

at
org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.
java:144)

at java.security.AccessController.doPrivileged(Native Method)

at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:738)

at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)

at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)

at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889
)

at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)

at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)

at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)

at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:120)

at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)

at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)

at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)

at
org.apache.catalina.core.StandardService.start(StandardService.java:448)

at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)

at org.apache.catalina.startup.Catalina.start(Catalina.java:552)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)

Caused by: java.security.AccessControlException: access denied
(java.io.FilePermission /usr/lib/school/services/test/





When I input the url (http://localhost:8180/test/hello.jsp) get the msg as
follows :

HTTP Status 404 -

type Status report

message

description The requested resource () is not available.

Apache Tomcat/5.5





Do you have any experiences?



Thanks in advance

Andrew

Search Discussions

  • David Smith at Oct 3, 2009 at 6:09 pm

    I believe the relevant part of what you posted is:

    Caused by: java.security.AccessControlException: access denied
    (java.io.FilePermission
    /usr/lib/perfsonar/services/perfsonar-clmp/WEB-INF/classes/logging.propertie
    s read)
    which basically looks like the security manager is enabled and some
    class is denied the ability to read logging.properties. Take a look at
    the security manager howto for more information:

    http://tomcat.apache.org/tomcat-5.5-doc/security-manager-howto.html

    --David

    andre wrote:
    Hi all,

    i'm install over ubuntu, Tomcat5.5 and Sun Java 1.6.

    At this moment i have the follow error msg in tomcat log when try to deploy
    the plataform:





    Oct 3, 2009 2:12:08 PM org.apache.commons.modeler.Registry registerComponent

    SEVERE: Error registering
    Catalina:type=Valve,name=StandardContextValve,path=/test,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.jav
    a:302)

    at
    org.apache.catalina.core.StandardPipeline.start(StandardPipeline.java:234)

    at
    org.apache.catalina.core.StandardContext.start(StandardContext.java:4140)

    at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
    60)

    at
    org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:122)

    at
    org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.
    java:144)

    at java.security.AccessController.doPrivileged(Native Method)

    at
    org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:738)

    at
    org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)

    at
    org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)

    at
    org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889
    )

    at
    org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)

    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)

    at
    org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)

    at
    org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
    t.java:120)

    at
    org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)

    at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)

    at
    org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)

    at
    org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)

    at
    org.apache.catalina.core.StandardService.start(StandardService.java:448)

    at
    org.apache.catalina.core.StandardServer.start(StandardServer.java:700)

    at org.apache.catalina.startup.Catalina.start(Catalina.java:552)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
    )

    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
    .java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
    )

    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
    .java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at
    org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)

    Caused by: java.security.AccessControlException: access denied
    (java.io.FilePermission
    /usr/lib/perfsonar/services/perfsonar-clmp/WEB-INF/classes/logging.propertie
    s 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)

    at
    org.apache.naming.resources.FileDirContext.file(FileDirContext.java:828)

    at
    org.apache.naming.resources.FileDirContext.lookup(FileDirContext.java:211)

    at
    org.apache.naming.resources.ProxyDirContext.lookup(ProxyDirContext.java:294)

    at
    org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClas
    sLoader.java:1925)

    at
    org.apache.catalina.loader.WebappClassLoader.findResource(WebappClassLoader.
    java:937)

    at
    org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManage
    r.java:298)

    at
    org.apache.juli.ClassLoaderLogManager$2.run(ClassLoaderLogManager.java:273)

    at java.security.AccessController.doPrivileged(Native Method)

    at
    org.apache.juli.ClassLoaderLogManager.getClassLoaderInfo(ClassLoaderLogManag
    er.java:270)

    at
    org.apache.juli.ClassLoaderLogManager.getLogger(ClassLoaderLogManager.java:1
    75)

    at java.util.logging.Logger.getLogger(Logger.java:275)

    at com.sun.jmx.trace.TraceManager.getLogger(TraceManager.java:184)

    at com.sun.jmx.trace.TraceManager.isSelected(TraceManager.java:197)

    at com.sun.jmx.trace.Trace.isSelected(Trace.java:84)

    at
    javax.management.modelmbean.ModelMBeanInfoSupport.tracing(ModelMBeanInfoSupp
    ort.java:1000)

    at
    javax.management.modelmbean.ModelMBeanInfoSupport.<init>(ModelMBeanInfoSuppo
    rt.java:335)

    at
    javax.management.modelmbean.ModelMBeanInfoSupport.<init>(ModelMBeanInfoSuppo
    rt.java:276)

    at
    org.apache.commons.modeler.BaseModelMBean.createDefaultModelMBeanInfo(BaseMo
    delMBean.java:1328)

    at
    org.apache.commons.modeler.BaseModelMBean.<init>(BaseModelMBean.java:117)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
    Method)

    at
    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
    sorImpl.java:39)

    at
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
    torAccessorImpl.java:27)

    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

    at java.lang.Class.newInstance0(Class.java:355)

    at java.lang.Class.newInstance(Class.java:308)

    at
    org.apache.commons.modeler.ManagedBean.createMBean(ManagedBean.java:378)

    ... 33 more

    Oct 3, 2009 2:12:08 PM org.apache.catalina.core.StandardPipeline
    registerValve

    INFO: Can't register valve
    org.apache.catalina.core.StandardContextValve[/test]

    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.jav
    a:302)

    at
    org.apache.catalina.core.StandardPipeline.start(StandardPipeline.java:234)

    at
    org.apache.catalina.core.StandardContext.start(StandardContext.java:4140)

    at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
    60)

    at
    org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:122)

    at
    org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.
    java:144)

    at java.security.AccessController.doPrivileged(Native Method)

    at
    org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:738)

    at
    org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)

    at
    org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)

    at
    org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889
    )

    at
    org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)

    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)

    at
    org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)

    at
    org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
    t.java:120)

    at
    org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)

    at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)

    at
    org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)

    at
    org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)

    at
    org.apache.catalina.core.StandardService.start(StandardService.java:448)

    at
    org.apache.catalina.core.StandardServer.start(StandardServer.java:700)

    at org.apache.catalina.startup.Catalina.start(Catalina.java:552)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
    )

    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
    .java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
    )

    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
    .java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at
    org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)

    Caused by: java.security.AccessControlException: access denied
    (java.io.FilePermission /usr/lib/school/services/test/





    When I input the url (http://localhost:8180/test/hello.jsp) get the msg as
    follows :

    HTTP Status 404 -

    type Status report

    message

    description The requested resource () is not available.

    Apache Tomcat/5.5





    Do you have any experiences?



    Thanks in advance

    Andrew


    --
    David Smith
    Programmer/Analyst
    College of Agriculture and Life Sciences
    Cornell University
    B32 Morrison Hall
    Ithaca, NY 14853
    Phone: (607) 255-4334


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
    For additional commands, e-mail: users-help@tomcat.apache.org

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupusers @
categoriestomcat
postedOct 3, '09 at 6:25a
activeOct 3, '09 at 6:09p
posts2
users2
websitetomcat.apache.org
irc#tomcat

2 users in discussion

David Smith: 1 post Andre: 1 post

People

Translate

site design / logo © 2018 Grokbase