Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 92641 invoked from network); 2 Jul 2009 09:59:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Jul 2009 09:59:05 -0000 Received: (qmail 22421 invoked by uid 500); 2 Jul 2009 09:59:15 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 22389 invoked by uid 500); 2 Jul 2009 09:59:15 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 22373 invoked by uid 99); 2 Jul 2009 09:59:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jul 2009 09:59:15 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jul 2009 09:59:04 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MMJ40-0002cz-2a for user@geronimo.apache.org; Thu, 02 Jul 2009 02:58:44 -0700 Message-ID: <24304125.post@talk.nabble.com> Date: Thu, 2 Jul 2009 02:58:44 -0700 (PDT) From: Greythorn To: user@geronimo.apache.org Subject: ClassCastException with Log4J when Running Multiple Ears MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: steve.diesner@barclays.com X-Virus-Checked: Checked by ClamAV on apache.org Scenario: I deploy two ear files. The first application I can access successfully, the application's logging working fine (to console and log file). When I access the second application I get a class cast exception on the very first call to Log4J's Logger.getLogger(). The first application still works. If I restart Geronimo and access the applications in the REVERSE order, I get the same error, i.e. the first application I hit works (and continues to work) but the second fails. Also, the Server Log Viewer now gives an ArrayIndexOutOfBoundsException exception: java.lang.ArrayIndexOutOfBoundsException: 0 at org.apache.geronimo.console.logmanager.LogViewerPortlet.doView(LogViewerPortlet.java:107) at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:247) at javax.portlet.GenericPortlet.render(GenericPortlet.java:175) at org.apache.geronimo.console.BasePortlet.render(BasePortlet.java:125) at org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:208) at org.apache.pluto.core.PortletServlet.doGet(PortletServlet.java:139) Both ears contain a single web module each using its own log4j.jar (same version as Geronimo). I have tried using the hidden-classes tag in geronimo-application.xml for the org.apache.log4j packages. Same error. I have added the inverse-classloading tag to the geronimo-application.xml. Same error. I have tried removing the log4j jars from the applications to force them to use Geronimo's log4j jar. Same error. Have deployed via the console. Same error. I'm obviously missing something (hopefully something straight forward) but what? Any ideas? -- View this message in context: http://www.nabble.com/ClassCastException-with-Log4J-when-Running-Multiple-Ears-tp24304125s134p24304125.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.