Hi!
I encountered a very mysterious problem using log4j with tomcat 5.5.9.
I have the file "commons-logging.properties" in my WEB-INF/classes directory
with the following content:
orr.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JCategory
Log
I did not notice my mistake in wri
From: Kent Boogaart [mailto:[EMAIL PROTECTED]
Sent: 18 December 2003 04:45
To: '[EMAIL PROTECTED]'
Subject: RE: Tomcat and Log4J
> Howdy, Your problem is not log4j, it's commons-logging, which is nearly
always the culprit. The issue arises if log4j is in a classloader be
Howdy,
I could rant on this issue for a long time, but I'll stick to three
points.
>Thanks for the advice. I tried using Log4J directly by one of my
classes
>and, like you said, it worked.
Ahh, good, a simple setup that works.
>However, I wanted to stick with commons
>logging since this is (sup
> Howdy, Your problem is not log4j, it's commons-logging, which is nearly
always the culprit. The issue arises if log4j is in a classloader below
commons-logging, so
> commons-logging doesn't know log4j is there. You're configuring log4j OK,
and if you used a log4j Logger rather than a commons-logg
ogaart [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, December 17, 2003 12:07 AM
>To: '[EMAIL PROTECTED]'
>Subject: Tomcat and Log4J
>
>All,
>
>I have been trying all day to get Tomcat and Log4J to cooperate. I have
>looked through many posts to this mailing list but ha
eful,
Lucian.
> All,
>
> I have been trying all day to get Tomcat and Log4J to cooperate. I have
> looked through many posts to this mailing list but have been unable to
> find
> any extra information that helps me.
>
> I am running Tomcat 4.1.27 on a Windows 2000 machine.
All,
I have been trying all day to get Tomcat and Log4J to cooperate. I have
looked through many posts to this mailing list but have been unable to find
any extra information that helps me.
I am running Tomcat 4.1.27 on a Windows 2000 machine. My web app has
log4j-1.2.8.jar in its WEB-INF/lib
anual.
There's no magic here ;)
Yoav Shapira
Millennium ChemInformatics
>-Original Message-
>From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, July 02, 2003 3:30 PM
>To: Tomcat Users List
>Subject: Re: tomcat and log4j
>
>Did that, don't se
l see them there.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 2:34 PM
To: Tomcat Users List
Subject: Re: tomcat and log4j
OK, so I changed the file to /tmp/xxx.log
and it still does not show up.
PM
>To: Tomcat Users List
>Subject: Re: tomcat and log4j
>
>OK, so I changed the file to /tmp/xxx.log
>and it still does not show up. Any other
>suggestions?
>
>Dean
>
>Shapira, Yoav wrote:
>
>>Howdy,
>>You're not going to have file write access to
ation.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
Sent: Monday, June 30, 2003 8:03 PM
To: Tomcat Users List
Subject: Re: tomcat and log4j
Thanks for responding. I'm just going by what it says in the log4j
manual:
"Th
L PROTECTED]
>Sent: Monday, June 30, 2003 8:03 PM
>To: Tomcat Users List
>Subject: Re: tomcat and log4j
>
>Thanks for responding. I'm just going by what it says in the log4j
>manual:
>
>"The default log4j initialization is particularly useful in web-server
>environm
Am Dienstag, 1. Juli 2003 02:03 schrieb Dean A. Hoover:
> Thanks for responding. I'm just going by what it says in the log4j
> manual:
>
> "The default log4j initialization is particularly useful in web-server
> environments. Under Tomcat 3.x and 4.x, you should place the
>
> |log4j.properties| und
Thanks for responding. I'm just going by what it says in the log4j
manual:
"The default log4j initialization is particularly useful in web-server
environments. Under Tomcat 3.x and 4.x, you should place the
|log4j.properties| under the |WEB-INF/classes| directory of your
web-applications. Log4j
Howdy,
It does work if you place logj4.properties in WEB-INF/classes and log4j.jar in
WEB-INF/lib. If you could please be a bit more explicity when you say "This
does not seem to be working" perhaps I could help more.
Yoav Shapira
--- "Dean A. Hoover" <[EMAIL PROTECTED]> wrote:
> I want to use l
I want to use log4j inside a tomcat application. According
to the log4j short manual, all I have to do is drop my
log4j.properties file into WEB-INF/classes and then I can
just use it. This does not seem to be working. Can someone
help?
Thanks.
Dean Hoover
Hello there
This is a little question regarding tomcat, and
logging while using it.
I am currently using Log4j with Tomcat with an
external log4j.properties file that holds logging
priority information(eg log only warn priority
statements and below or log only error priority
statments and above)
17 matches
Mail list logo