Is then when running inside the servlet container?  If so, which
container are you using?  What is in your web.xml?

--------------------------------------------
Quinton McCombs
NequalsOne - HealthCare marketing tools
mailto:[EMAIL PROTECTED]
http://www.NequalsOne.com 

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 10, 2003 8:27 AM
> To: [EMAIL PROTECTED]
> Subject: Correct path name for logging in 2.3?
> 
> 
> 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(PropertyS
> etter.java:123
> )
>       at
> org.apache.log4j.config.PropertySetter.setProperties(PropertyS
> etter.java:87)
>       at
> org.apache.log4j.PropertyConfigurator.parseAppender(PropertyCo
> nfigurator.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
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to