Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 58174 invoked from network); 23 Jan 2006 11:03:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Jan 2006 11:03:05 -0000 Received: (qmail 46316 invoked by uid 500); 23 Jan 2006 11:02:54 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 46295 invoked by uid 500); 23 Jan 2006 11:02:54 -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 46276 invoked by uid 99); 23 Jan 2006 11:02:54 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jan 2006 03:02:53 -0800 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=MAILTO_TO_SPAM_ADDR X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [211.29.132.185] (HELO mail04.syd.optusnet.com.au) (211.29.132.185) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jan 2006 03:02:53 -0800 Received: from [127.0.0.1] (d220-237-192-159.dsl.nsw.optusnet.com.au [220.237.192.159]) (authenticated sender gianny.damour) by mail04.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id k0NB2OTv015526 for ; Mon, 23 Jan 2006 22:02:29 +1100 Message-ID: <43D4B7BE.6090502@optusnet.com.au> Date: Mon, 23 Jan 2006 22:02:22 +1100 From: Gianny Damour User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: user@geronimo.apache.org Subject: Re: class loading issue References: <20060123075611.100.qmail@web34908.mail.mud.yahoo.com> In-Reply-To: <20060123075611.100.qmail@web34908.mail.mud.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello Tyler, Could you please try this configuration? 1. set context-priority-classloader to true; and 2. put your own jdom, axis and commons-httpclient jars in WEB-INF/lib. I think that it should work with this approach. If not (due to Log4J initialization problem?), then could you please provide a stack-trace of the error? Thanks, Gianny tbot55@yahoo.com wrote: >I must be misunderstanding something. Here's my >problem. I'm trying to use an application that >requires a different version of jdom.jar and axis.jar, >and it also uses commons-httpclient.jar, which isn't >found in the geronimo repository. > >It does some webservices stuff. So I replace the >jdom.jar in the repository directory and I bypass one >of my problems. Then I have to somewhat merge the >axis.jar it comes with and the one in the geronimo >repository, and I overcome another problem (though now >the daytrader example is breaking). After this, I'm >getting a commons-httpclient class-not-found error, >even though I've manually added it to the repository. > >So, I figure out another workaround: I set the >context-priority-classloader variable to true in the >geronimo-web.xml, and I modify the >TomcatClassLoader.java file to this (full modified >TomcatClassLoader.java file attached): >------------------------------------------------------ >TomcatClassLoader.ResourceClassLoader.getResource:---- >------------------------------------------------------ > if ((contextPriorityClassLoader && > name.startsWith("org/apache/axis")) || > (contextPriorityClassLoader && > >name.startsWith("org/apache/commons/httpclient"))){ > } > else if (true >||//!contextPriorityClassLoader || >... > return super.loadClass(name); > } >------------------------------------------------------ >TomcatClassLoader.loadClass: ------------------------- >------------------------------------------------------ > if ((contextPriorityClassLoader && > name.startsWith("org.apache.axis")) || > (contextPriorityClassLoader && > >name.startsWith("org.apache.commons.httpclient"))){ > } > else if (true >||//!contextPriorityClassLoader || >... > return super.loadClass(name); > } >----------------------------------------------------------- >----------------------------------------------------------- > >This makes the application work. Now, I did try just >setting context-priority-classloader to true without >doing these modifications, and I got errors about not >initializing log4j properly. Is there a better way to >make the class loader do what I want to do? > >Tyler > >__________________________________________________ >Do You Yahoo!? >Tired of spam? Yahoo! Mail has the best spam protection around >http://mail.yahoo.com >