I have the same problem with Turbine 2.2
the thing is that when Log4j encounters a path that has a "${", it tries to
look for it in the Sysetem properties, if that fails it tries to load it
from the properties file, but guess which one? : log4j.properties and since
${ApplicationRoot} is written on Turbine start up to TR.properties, log4j
returns simply an empty String.
regards
Akmal
----- Original Message -----
From: "Quinton McCombs" <[EMAIL PROTECTED]>
To: "'Turbine Users List'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Wednesday, June 11, 2003 11:09 PM
Subject: RE: Correct path name for logging in 2.3?
> This also works fine for me. I use it on WinXP and Linux.
>
> --------------------------------------------
> Quinton McCombs
> NequalsOne - HealthCare marketing tools
> mailto:[EMAIL PROTECTED]
> http://www.NequalsOne.com
>
> > -----Original Message-----
> > From: Henning P. Schmiedehausen [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, June 11, 2003 4:06 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Correct path name for logging in 2.3?
> >
> >
> > [EMAIL PROTECTED] writes:
> >
> > >------_=_NextPart_001_01C32F53.F9C69D00
> > >Content-Type: text/plain;
> > > charset="iso-8859-1"
> >
> > Hi,
> >
> > this is Java, so you might end up forward slashes even under
> > Windows. I haven't tried that yet but I will have to deploy
> > on Windows pretty soon so I will get some more information on that.
> >
> > This works:
> >
> > web.xml:
> >
> > <servlet>
> > <servlet-name>demoapp</servlet-name>
> > <servlet-class>org.apache.turbine.Turbine</servlet-class>
> > <init-param>
> > <param-name>properties</param-name>
> >
> > <param-value>/WEB-INF/conf/TurbineResources.properties</param-value>
> > </init-param>
> > </servlet>
> >
> > TurbineResources.properties:
> >
> > log4j.file = /WEB-INF/conf/Log4j.properties
> >
> > Log4j.properties:
> >
> > log4j.appender.turbine = org.apache.log4j.FileAppender
> > log4j.appender.turbine.file = ${applicationRoot}/logs/turbine.log
> > log4j.appender.turbine.layout =
> > org.apache.log4j.PatternLayout
> > log4j.appender.turbine.layout.conversionPattern = %d [%t]
> > %-5p %c - %m%n log4j.appender.turbine.append = false
> >
> > I use this all the time and it never gave me any trouble.
> > Running with JDK 1.3.1 and 1.4.1 under RedHat Linux 7.3
> >
> > I will add "Testing under Windows 2k" for my list of things
> > to do before we push 2.3 out of the door.
> >
> > But this above _should_ work without changes (even without
> > changing the "/" to "\" on Windows 2k). This is how the Java
> > platform is defined.
> >
> > Regards
> > Henning
> > --
> > Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH
> > [EMAIL PROTECTED] +49 9131 50 654 0 http://www.intermeta.de/
> >
> > Java, perl, Solaris, Linux, xSP Consulting, Web Services
> > freelance consultant -- Jakarta Turbine Development -- hero for hire
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]