← Back to team overview

dhis2-devs team mailing list archive

[Bug 711804] Re: audit-log-location

 

Audit logger removed, content logged to standard log.

** Changed in: dhis2
       Status: New => Fix Committed

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/711804

Title:
  audit-log-location

Status in DHIS 2 - District Health Information Software:
  Fix Committed

Bug description:
  Audit log attemtps to write to some location other than the default
  Tomcat log location.

  
  Feb 2, 2011 12:41:59 PM org.apache.catalina.core.AprLifecycleListener init
  INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib/jni:/lib:/usr/lib
  Feb 2, 2011 12:42:07 PM org.apache.coyote.http11.Http11Protocol init
  INFO: Initializing Coyote HTTP/1.1 on http-8080
  Feb 2, 2011 12:42:07 PM org.apache.catalina.startup.Catalina load
  INFO: Initialization processed in 8638 ms
  Feb 2, 2011 12:42:07 PM org.apache.catalina.core.StandardService start
  INFO: Starting service Catalina
  Feb 2, 2011 12:42:07 PM org.apache.catalina.core.StandardEngine start
  INFO: Starting Servlet Engine: Apache Tomcat/6.0.24
  Feb 2, 2011 12:42:07 PM org.apache.catalina.startup.HostConfig deployDescriptor
  INFO: Deploying configuration descriptor manager.xml
  Feb 2, 2011 12:42:10 PM org.apache.catalina.startup.HostConfig deployDescriptor
  INFO: Deploying configuration descriptor dhis.xml
  log4j:ERROR setFile(null,true) call failed.
  java.io.FileNotFoundException: audit.log (Permission denied)
          at java.io.FileOutputStream.openAppend(Native Method)
          at java.io.FileOutputStream.<init>(FileOutputStream.java:207)
          at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
          at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
          at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)
          at org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:215)
          at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)
          at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:132)
          at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:96)
          at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:654)
          at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:612)
          at org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(PropertyConfigurator.java:533)
          at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:417)
          at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:441)
          at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:468)
          at org.apache.log4j.LogManager.<clinit>(LogManager.java:122)
          at org.apache.log4j.Logger.getLogger(Logger.java:104)
          at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:283)
          at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:108)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
          at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
          at org.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(LogFactoryImpl.java:1040)
          at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:838)
          at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:601)
          at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:333)
          at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:307)
          at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:645)
          at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
          at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
          at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
          at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
          at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
          at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
          at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
          at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
          at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
          at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
          at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
          at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
          at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
          at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
          at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
          at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
          at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
          at org.apache.catalina.core.StandardService.start(StandardService.java:516)
          at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
          at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:616)
          at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
          at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
  log4j:ERROR Either File or DatePattern options are not set for appender [AUDIT].


References