tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Piller S├ębastien <pi...@hmcrecord.ch>
Subject Weird AccessControlException -mod_jk related?
Date Thu, 25 Sep 2008 09:24:12 GMT
Hello guys,

I've a project that runs fine on almost every config (Tomcat5.5, 6, 
windows, linux, ...).

But since I've installed mod_jk, I receive this quite weird exception:

    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)
            at
    org.apache.catalina.core.StandardContext.start(StandardContext.java:4140)
            at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
            at
    org.apache.catalina.core.ContainerBase.access$0(ContainerBase.java:744)
            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.deployWAR(HostConfig.java:825)
            at
    org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:515)
            at
    org.apache.catalina.startup.HostConfig.check(HostConfig.java:1220)
            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:585)
            at
    org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:458)
            at
    com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
            at
    com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
            at
    com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
            at
    com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
            at
    org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1394)
            at
    org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:213)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
            at sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source)
            at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at
    org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
            at java.security.AccessController.doPrivileged(Native Method)
            at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
            at
    org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
            at
    org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
            at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:262)
            at
    org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterChain.java:192)
            at
    org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:171)
            at java.security.AccessController.doPrivileged(Native Method)
            at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:167)
            at
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
            at
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
            at
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
            at
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
            at
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
            at
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
            at
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
            at
    org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
            at
    org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
            at
    org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
            at
    org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
            at
    org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
            at
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
            at java.lang.Thread.run(Thread.java:595)
    Caused by: java.security.AccessControlException: access denied
    (java.io.FilePermission
    /var/lib/tomcat5.5/webapps/testservlet/WEB-INF/classes/logging.properties
    read)
            at
    java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
            at
    java.security.AccessController.checkPermission(AccessController.java:427)
            at
    java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
            at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
            at java.io.File.exists(File.java:700)
            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(WebappClassLoader.java:1924)
            at
    org.apache.catalina.loader.WebappClassLoader.findResource(WebappClassLoader.java:936)
            at
    org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:299)
            at
    org.apache.juli.ClassLoaderLogManager$2.run(ClassLoaderLogManager.java:273)
            at java.security.AccessController.doPrivileged(Native Method)
            at
    org.apache.juli.ClassLoaderLogManager.getClassLoaderInfo(ClassLoaderLogManager.java:270)
            at
    org.apache.juli.ClassLoaderLogManager.getLogger(ClassLoaderLogManager.java:175)
            at java.util.logging.Logger.getLogger(Logger.java:255)
            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(ModelMBeanInfoSupport.java:966)
            at
    javax.management.modelmbean.ModelMBeanInfoSupport.<init>(ModelMBeanInfoSupport.java:319)
            at
    javax.management.modelmbean.ModelMBeanInfoSupport.<init>(ModelMBeanInfoSupport.java:260)
            at
    org.apache.commons.modeler.BaseModelMBean.createDefaultModelMBeanInfo(BaseModelMBean.java:1328)
            at
    org.apache.commons.modeler.BaseModelMBean.<init>(BaseModelMBean.java:117)
            at
    sun.reflect.GeneratedConstructorAccessor5.newInstance(Unknown Source)
            at
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
            at
    java.lang.reflect.Constructor.newInstance(Constructor.java:494)
            at java.lang.Class.newInstance0(Class.java:350)
            at java.lang.Class.newInstance(Class.java:303)
            at
    org.apache.commons.modeler.ManagedBean.createMBean(ManagedBean.java:378)
            ... 53 more

No idea what's going on... The rights are "777" on the whole 
directory... Tried to run tomcat as root too, didn't fix it...

Is it mod_jk related?
Any idea will be appreciated ;)

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


Mime
View raw message