Announcement Announcement Module
Collapse
No announcement yet.
error writing logs to the \logs directory Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #3
      Hi Filip,

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

      Thanks
      Shanthi

      Comment


      • #4
        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

        Comment


        • #5
          thank you.

          Comment

          Working...
          X