Hey guys...please help me ? Vinit N wrote: > > Hi I am getting FileNotFoundException > > log4j: Setting property [append] to [true]. > log4j: setFile called: /log/reguser_log.html, true > log4j: Parsed "reguser" options. > log4j: Finished configuring. > org.springframework.beans.factory.BeanDefinitionStoreException: > IOException parsing XML document from class path resource [hello.xml]; > nested exception is java.io.FileNotFoundException: class path resource > [hello.xml] cannot be opened because it does not exist > log4j:ERROR setFile(null,true) call failed. > java.io.FileNotFoundException: \log\reguser_log.html (The system cannot > find the path specified) > at java.io.FileOutputStream.openAppend(Native Method) > at java.io.FileOutputStream.<init>(FileOutputStream.java:177) > at java.io.FileOutputStream.<init>(FileOutputStream.java:102) > at org.apache.log4j.FileAppender.setFile(FileAppender.java:272) > at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:151) > at > org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:247) > at > org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:123) > at > org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:87) > > My configuration is like this: > > log4j.debug=true > log4j.rootLogger=info, reguser > log4j.appender.reguser=org.apache.log4j.FileAppender > log4j.appender.reguser.layout=org.apache.log4j.HTMLLayout > log4j.appender.reguser.layout.LocationInfo=true > log4j.appender.reguser.layout.Title='User Registration' Log > log4j.appender.reguser.File=${catalina.home}/log/reguser_log.html > log4j.appender.reguser.ImmediateFlush=true > log4j.appender.reguser.Append=true > > >
-- View this message in context: http://www.nabble.com/How-to-use-tomcat-system-path-in-log4j.properties-tf3609468.html#a10086546 Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]