-
Feb 25th, 2010, 03:03 PM
#1
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
-
Feb 25th, 2010, 03:05 PM
#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
-
Feb 25th, 2010, 03:19 PM
#3
Hi Filip,
Can you please direct me to the location where this file is located and how to modify this?
Thanks
Shanthi
-
Feb 25th, 2010, 03:20 PM
#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
-
Feb 25th, 2010, 04:57 PM
#5
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules