Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 62487 invoked from network); 2 Jul 2006 21:45:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Jul 2006 21:45:09 -0000 Received: (qmail 76711 invoked by uid 500); 2 Jul 2006 21:44:57 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 76685 invoked by uid 500); 2 Jul 2006 21:44:57 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 76674 invoked by uid 99); 2 Jul 2006 21:44:57 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Jul 2006 14:44:57 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [209.68.5.17] (HELO relay03.pair.com) (209.68.5.17) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 02 Jul 2006 14:44:56 -0700 Received: (qmail 60977 invoked from network); 2 Jul 2006 21:44:34 -0000 Received: from unknown (HELO ?192.168.2.101?) (unknown) by unknown with SMTP; 2 Jul 2006 21:44:34 -0000 X-pair-Authenticated: 24.44.60.79 Message-ID: <44A83E3E.2040906@deitcher.net> Date: Sun, 02 Jul 2006 17:44:30 -0400 From: Avi Deitcher User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: log4j in webapp hanging Tomcat? References: <20060702045358.52345.qmail@web50008.mail.yahoo.com> <44A7A2D4.1080901@deitcher.net> <44A7A7B5.2030807@gmx.net> <44A7AB37.8070204@deitcher.net> <44A7BA7D.4000404@gmx.net> <44A839D5.5030700@deitcher.net> In-Reply-To: <44A839D5.5030700@deitcher.net> X-Enigmail-Version: 0.92.0.0 Content-Type: multipart/alternative; boundary="------------000700030909020906010509" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --------------000700030909020906010509 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit To add to it: I kept two webapps running and had them System.out.println(logger), where each is in the same category/class, to check that each one is running its own; it is. I then removed every webapp I could and ran it again with just the simple filter + index.jsp to check. Same result. Sigh. Avi Deitcher wrote: >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: users-unsubscribe@tomcat.apache.org >>For additional commands, e-mail: users-help@tomcat.apache.org >> >> >> > > > -- ______________________________ Avi Deitcher avi@deitcher.net --------------000700030909020906010509--