Return-Path: Delivered-To: apmail-jakarta-avalon-dev-archive@jakarta.apache.org Received: (qmail 23909 invoked by uid 500); 23 Oct 2001 15:49:59 -0000 Mailing-List: contact avalon-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: "Avalon Development" Delivered-To: mailing list avalon-dev@jakarta.apache.org Received: (qmail 23849 invoked from network); 23 Oct 2001 15:49:58 -0000 Message-ID: <002401c15bda$5e730940$6a1bfbc0@sierrasys.com> From: "Mircea Toma" To: "Avalon Development" References: <3BD16349.7020800@yahoo.com> <3BD3597A.6090506@yahoo.com> <3BD369F7.3010605@yahoo.com> <3BD52C9F.5070909@yahoo.com> Subject: Re: App instantiation problem - advice needed. Date: Tue, 23 Oct 2001 09:49:51 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-Spam-Rating: localhost.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ----- Original Message ----- From: "Paul Hammant" To: "Avalon Development" Sent: Tuesday, October 23, 2001 2:38 AM Subject: Re: App instantiation problem - advice needed. > Folks, > > I am fairly sure that we need to add the following to BlockContext. > > URLStreamHandlerFactory getDefaultURLStreamHandlerFactory(); > > Reason? Phoenix apps that host sub apps in separate classloaders fail > to traverse the parent classloader tree correctly. I'll check it out! It might be enough to set URL.setURLSr...... within that classloader. Mircea > I would just add it, but Phoenix is an area of minor activity for me, > and major for others. > > Regards, > > - Paul H > > > > >> I think it should be : > >> > >> public class JesktopURLClassLoader extends URLClassLoader { > >> protected JesktopURLClassLoader(final URL[] urls) { > >> super(urls, JesktopURLClassLoader.class.getClassLoader(), > >> Phoenix.getURLStreamHandlerFactory()); > >> } > >> } > > > > > > I can confirm that that fixes the bug I have. > > I had to add... > > > > URLStreamHandlerFactory getDefaultURLStreamHandlerFactory(); > > > > .. to BlockContext to get it working. I have not comitted any changes, > > because I think this needs discussion. > > > > Regards, > > > > - Paul H > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: avalon-dev-help@jakarta.apache.org > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: avalon-dev-help@jakarta.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: avalon-dev-help@jakarta.apache.org