Hi all,

I know this has been asked, but I haven't been able to find it in the
lists..  I promise to add it to the wiki!

For log4j, I load my properties, but I keep getting:
ConfigServlet::initLogging - log4j configuration str =
[C:\fortius\target\fortius\/WEB-INF/conf/log4j.properties]
log4j:ERROR setFile(null,false) call failed.
java.io.FileNotFoundException: \logs\turbine.log (The system cannot find the
path specified)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:176)
        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)
        at
org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.jav
a:645)

My relevant portion is:
#out to file
log4j.appender.application = org.apache.log4j.FileAppender
log4j.appender.application.file =${applicationRoot}/logs/turbine.log
log4j.appender.application.layout = org.apache.log4j.PatternLayout
log4j.appender.application.layout.conversionPattern = %d [%t] %-5p %c - %m%n
log4j.appender.application.append = false


I have tried file=/logs/turbine.log and logs/turbine.log etc...  Any
suggestions?

Eric Pugh

Reply via email to