Hello Boris,

Not much luck. I verified that I am running the latest versions of
commons-logging and log4j. I kept log4j direct in the webapp to avoid
any chance of commons-logging getting confused, as described in the
article below. I also removed any reference to log4j or commons-logging
from shared/ and common/.

I tried something even simpler: a single Web app in its own context with
*nothing* but a /index.jsp and a single Filter class. No JSF, no
facelets, no EL, nothing in WEB-INF/lib except for log4j-1.2.13.jar,
which is the latest.... and it still hangs.

This leaves the unavoidable conclusion that it *must* be some
interaction between log4j and Tomcat. I can think of nothing else to try
except following the commons-logging FUD page below, but I am unsure how
that would impact.

Help? :-(

Boris Unckel wrote:

> Hello Avi,
>
> Avi Deitcher wrote:
>
>> Boris,
>>
>> Thank you, too. The main issue here is that I *do* want to separate my
>> webapp's logging from Tomcat's, so it can be fully self-contained.
>> Hence, I included log4j.jar and log4j.properties within my own webapp,
>> which should make a lot of sense. In the development case, I am pushing
>> the logs to the console, which end up intermixes with Tomcat's logs, but
>> that is an easy switch in log4j.properties. Also, it appears that
>> x4juli, according to the Website, is not quite ready for production.
>>
>> Any idea why this would cause hanging?
>> Avi
>
> If there is really a conflict between el and logj4j, try out the
> following to be sure:
> Please use the highest available version of log4j and commons-logging:
> http://logging.apache.org/log4j/docs/download.html
> http://jakarta.apache.org/site/downloads/downloads_commons-logging.cgi
>
> Follow the instructions in
> http://wiki.apache.org/jakarta-commons/Commons_Logging_FUD
> to separate container commons-logging and webapps commons-logging.
>
> Put log4j.jar in $CATALINA_HOME/server/lib and a log4j.properties in
> $CATALINA_HOME/server/classes
>
> Take care to remove any log4j.jar and commons-logging-xx.jar from
> $CATALINA_HOME/common/lib
> or $CATALINA_HOME/shared/lib
>
> Take care that commons-logging or log4j is not present at
> system-classpath due to your startup with Netbeans,
> this may cause the problem. (Does the problem only occur with startup
> in Netbeans? Does it occur standalone, too?)
>
> Put in logj4.jar in WEB-INF/lib and log4j.properties in
> WEB-INF/classes as you desired with a webapp specific
> configuration.
>
> Regards
> Boris
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

-- 
______________________________
Avi Deitcher
[EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to