RE: logger and access

From: Jason Bedell (jason.bedel..igitalevergreen.com)
Date: Fri Apr 18 2003 - 14:06:44 EDT

  • Next message: Andrus Adamchik: "Re: logger and access"

    After looking at it a little longer is seems like the servlet container is looking in the user's home directory (the user who owns the Tomcat instance) for the configuration file instead of looking in the webapp's context (in the cayenne.jar). Is there a way to disable logging? Is there a way to force it to look somewhere else?

    > -----Original Message-----
    > From: Jason Bedell
    > Sent: Friday, April 18, 2003 12:54 PM
    > To: Cayenne-User List (E-mail)
    > Subject: logger and access
    >
    >
    > We are attempting to deploy a webapp using Cayenne to an
    > environment on a shared server therefore we do not have
    > access to most of the filesystem including the Tomcat files.
    > When deploying I am getting the following error because (at
    > least it looks like) Cayenne is attempting to read a file
    > from the tomcat directory. Of course the process does not
    > have permission. Is this a fair assesment? Is there a work
    > around here? thx, jason
    >
    >
    > 22136 [Thread-3] ERROR conf.Configuration - Error initializing shared
    > Configuration
    > java.security.AccessControlException: access denied
    > (java.io.FilePermission /home/tomcat/.cayenne/cayenne-log.properties
    > read)
    > at
    > java.security.AccessControlContext.checkPermission(AccessContr
    > olContext.java:270)
    > at
    > java.security.AccessController.checkPermission(AccessControlle
    > r.java:401)
    > at
    > java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
    > at
    > java.lang.SecurityManager.checkRead(SecurityManager.java:887)
    > at java.io.File.exists(File.java:677)
    > at
    > org.objectstyle.cayenne.util.ResourceLocator.findFileInHomeDir
    > (ResourceLocator.java:133)
    > at
    > org.objectstyle.cayenne.util.ResourceLocator.findResource(Reso
    > urceLocator.java:217)
    > at
    > org.objectstyle.cayenne.conf.Configuration.configCommonLogging
    > (Configuration.java:137)
    > at
    > org.objectstyle.cayenne.conf.Configuration.configLogging(Confi
    > guration.java:272)
    > at
    > org.objectstyle.cayenne.conf.Configuration.init(Configuration.
    > java:238)
    > at
    > org.objectstyle.cayenne.conf.Configuration.initSharedConfig(Co
    > nfiguration.java:214)
    > at
    > org.objectstyle.cayenne.conf.BasicServletConfiguration.initCon
    > fig(BasicServletConfiguration.java:82)
    > at
    > com.deint.frameworkx.struts.bridge.cayenne.action.CayenneActio
    > nServlet.init(CayenneActionServlet.java:50)
    > at
    > org.apache.catalina.core.StandardWrapper.loadServlet(StandardW
    > rapper.java:934)
    > at
    > org.apache.catalina.core.StandardWrapper.allocate(StandardWrap
    > per.java:666)
    > at
    > org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
    > rapperValve.java:214)
    > at
    > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
    > eContext.invokeNext(StandardPipeline.java:643)
    > at
    > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
    > ine.java:480)
    > at
    > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    > at
    > org.apache.catalina.core.StandardContextValve.invoke(StandardC
    > ontextValve.java:191)
    > at
    > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
    > eContext.invokeNext(StandardPipeline.java:643)
    > at
    > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
    > ine.java:480)
    > at
    > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    > at
    > org.apache.catalina.core.StandardContext.invoke(StandardContex
    > t.java:2415)
    > at
    > org.apache.catalina.core.StandardHostValve.invoke(StandardHost
    > Valve.java:180)
    > at
    > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
    > eContext.invokeNext(StandardPipeline.java:643)
    > at
    > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
    > spatcherValve.java:170)
    > at
    > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
    > eContext.invokeNext(StandardPipeline.java:641)
    > at
    > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
    > Valve.java:172)
    > at
    > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
    > eContext.invokeNext(StandardPipeline.java:641)
    > at
    > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
    > e.java:509)
    > at
    > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
    > eContext.invokeNext(StandardPipeline.java:641)
    > at
    > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
    > ine.java:480)
    > at
    > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    > at
    > org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
    > gineValve.java:174)
    > at
    > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
    > eContext.invokeNext(StandardPipeline.java:643)
    > at
    > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
    > ine.java:480)
    > at
    > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    > at
    > org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.
    > java:223)
    > at
    > org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261)
    > at
    > org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360)
    > at
    > org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:632)
    > at
    > org.apache.jk.common.ChannelSocket.processConnection(ChannelSo
    > cket.java:590)
    > at
    > org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:707)
    > at
    > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
    > ThreadPool.java:530)
    > at java.lang.Thread.run(Thread.java:536)
    >
    >
    >



    This archive was generated by hypermail 2.0.0 : Fri Apr 18 2003 - 14:13:48 EDT