Results 1 to 5 of 5

Thread: error writing logs to the \logs directory

  1. #1
    Join Date
    Feb 2010
    Posts
    26

    Default error writing logs to the \logs directory

    Hi,
    I'm seeing the below error in catalina.out file , can somebody please help me figure out this? application startup logs are writing to the \logs directory.

    Feb 23, 2010 2:08:12 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 1299 ms
    the logdirectory is../logs
    Feb 23, 2010 2:08:22 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 10092 ms
    the url is..http://usildaml.ca.com:1088
    the url is..http://usildaml.ca.com:1088
    the url is..http://usildaml.ca.com:1088
    the url is..http://usildaml.ca.com:1088
    the url is..http://usildaml.ca.com:1088
    the url is..http://usildaml.ca.com:1088
    log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
    Feb 23, 2010 4:04:23 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 1455 ms
    the logdirectory is../logs
    log4j:ERROR setFile(null,true) call failed.
    java.io.FileNotFoundException: /logs/supportservices.log (Permission denied)
    at java.io.FileOutputStream.openAppend(Native Method)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at org.apache.log4j.FileAppender.setFile(FileAppender .java:290)
    at org.apache.log4j.RollingFileAppender.setFile(Rolli ngFileAppender.java:194)
    at org.apache.log4j.FileAppender.activateOptions(File Appender.java:164)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.PojoMetaMetho dSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke( PojoMetaMethodS
    ite.java:229)

    Thanks
    Shanthi

  2. #2

    Default

    java.io.FileNotFoundException: /logs/supportservices.log (Permission denied)

    This is your application trying to write a log, and receives an error since you either don't have permissions to this directory or it doesn't exist.

    modify your log4j configuration file, and log to a location where the user running the process has permissions to write to

  3. #3
    Join Date
    Feb 2010
    Posts
    26

    Default

    Hi Filip,

    Can you please direct me to the location where this file is located and how to modify this?

    Thanks
    Shanthi

  4. #4

    Default

    I wouldn't know the location of this file since it's part of your app. but my guess is that you look for it somewhere under the 'webapps' directory, most often its found under

    webapps/<your-app-name>/WEB-INF/classes/

    Filip

  5. #5
    Join Date
    Feb 2010
    Posts
    26

    Default

    thank you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •