You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Christian Gruber <ch...@gmail.com> on 2007/09/12 16:01:17 UTC
[5.0.6-SNAPSHOT] Bug? isTraceEnabled missing when I switch to slf4j
Hi,
I just started using Tapestry, and was working a little past the
tutorial. I pulled in the snapshot code and my app broke,
particularly around commons-logging no longer being imported as a
transative dependency.
I declared
public RequestFilter buildTimingFilter(final Logger log)
using the slf4j version.
I tried the latter, and I ended up with:
HTTP ERROR: 500
org.apache.log4j.Logger.isTraceEnabled()Z
RequestURI=/person/create
Powered by Jetty://
at
org
.slf4j.impl.Log4jLoggerAdapter.isTraceEnabled(Log4jLoggerAdapter.java:
81)
which is defined by:
public boolean isTraceEnabled() {
return logger.isTraceEnabled();
}
It seems that Log4J's Logger/Category at version 1.2.9 doesn't include
an isTraceEnabled() method. I upped the version to 1.2.12 and it's the
same. My setup is the exact same as the svn trunk version of the
tutorial. What am I missing here?
Christian.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [5.0.6-SNAPSHOT] Bug? isTraceEnabled missing when I switch to slf4j
Posted by Howard Lewis Ship <hl...@gmail.com>.
I ran into this myself; I've updated the docs to explain, but haven't
republished. I'm republishing now. Expect updates on the web site in an
hour or two.
On 9/12/07, Massimo Lusetti <ml...@gmail.com> wrote:
>
> On 9/12/07, Christian Koeberl <ch...@porsche.co.at> wrote:
>
> > > followup. Strange thing is - looking at the actuall log4j.Logger - it
> > > has an isTraceEnabled, so I'm really unclear as to why this would
> > > happen.
> > The problem is the log4j lib in the Jetty ext directory - replace it
> with
> > the newer log4j (1.2.12 or higher) version.
>
> Or the same in other containers... like Geronimo.
>
> --
> Massimo
> http://meridio.blogspot.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Howard M. Lewis Ship
Partner and Senior Architect at Feature50
Creator Apache Tapestry and Apache HiveMind
Re: [5.0.6-SNAPSHOT] Bug? isTraceEnabled missing when I switch to slf4j
Posted by Massimo Lusetti <ml...@gmail.com>.
On 9/12/07, Christian Koeberl <ch...@porsche.co.at> wrote:
> > followup. Strange thing is - looking at the actuall log4j.Logger - it
> > has an isTraceEnabled, so I'm really unclear as to why this would
> > happen.
> The problem is the log4j lib in the Jetty ext directory - replace it with
> the newer log4j (1.2.12 or higher) version.
Or the same in other containers... like Geronimo.
--
Massimo
http://meridio.blogspot.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [5.0.6-SNAPSHOT] Bug? isTraceEnabled missing when I switch
to slf4j
Posted by Francois Armand <fa...@linagora.com>.
Christian Koeberl wrote:
>> followup. Strange thing is - looking at the actuall log4j.Logger - it
>> has an isTraceEnabled, so I'm really unclear as to why this would
>> happen.
>>
> The problem is the log4j lib in the Jetty ext directory - replace it with
> the newer log4j (1.2.12 or higher) version.
>
>
I just spent a moment in this very problem, but the solution was
something else, so if it may help other...
I use Jetty 6.1.5 with jetty launcher, and for that configuration you
have to DL and drop "slf4j-api-1.4.3.jar" and "slf4j-simple-1.4.3.jar"
to lib/jsp-2.1 directory. And to set my mind at rest, I also deleted
previous version of slf4j from lib/jsp-2.0 directory.
--
Francois Armand
Etudes & Développements J2EE
Groupe Linagora - http://www.linagora.com
Tél.: +33 (0)1 58 18 68 28
-----------
InterLDAP - http://interldap.org
FederID - http://www.federid.org/
Open Source identities management and federation
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [5.0.6-SNAPSHOT] Bug? isTraceEnabled missing when I switch to slf4j
Posted by Christian Koeberl <ch...@porsche.co.at>.
> followup. Strange thing is - looking at the actuall log4j.Logger - it
> has an isTraceEnabled, so I'm really unclear as to why this would
> happen.
The problem is the log4j lib in the Jetty ext directory - replace it with
the newer log4j (1.2.12 or higher) version.
--
Chris
Re: [5.0.6-SNAPSHOT] Bug? isTraceEnabled missing when I switch to slf4j
Posted by Christian Gruber <ch...@gmail.com>.
followup. Strange thing is - looking at the actuall log4j.Logger - it
has an isTraceEnabled, so I'm really unclear as to why this would
happen.
Christian.
On 12-Sep-07, at 10:01 AM, Christian Gruber wrote:
> Hi,
>
> I just started using Tapestry, and was working a little past the
> tutorial. I pulled in the snapshot code and my app broke,
> particularly around commons-logging no longer being imported as a
> transative dependency.
>
> I declared
>
> public RequestFilter buildTimingFilter(final Logger log)
>
> using the slf4j version.
>
> I tried the latter, and I ended up with:
>
> HTTP ERROR: 500
>
> org.apache.log4j.Logger.isTraceEnabled()Z
> RequestURI=/person/create
>
> Powered by Jetty://
>
> at
> org
> .slf4j
> .impl.Log4jLoggerAdapter.isTraceEnabled(Log4jLoggerAdapter.java:81)
>
> which is defined by:
>
> public boolean isTraceEnabled() {
> return logger.isTraceEnabled();
> }
>
> It seems that Log4J's Logger/Category at version 1.2.9 doesn't
> include an isTraceEnabled() method. I upped the version to 1.2.12
> and it's the same. My setup is the exact same as the svn trunk
> version of the tutorial. What am I missing here?
>
> Christian.
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org