Return-Path: Delivered-To: apmail-jakarta-avalon-phoenix-dev-archive@apache.org Received: (qmail 16851 invoked from network); 11 Oct 2002 06:14:48 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 11 Oct 2002 06:14:48 -0000 Received: (qmail 4531 invoked by uid 97); 11 Oct 2002 06:15:43 -0000 Delivered-To: qmlist-jakarta-archive-avalon-phoenix-dev@jakarta.apache.org Received: (qmail 4378 invoked by uid 97); 11 Oct 2002 06:15:42 -0000 Mailing-List: contact avalon-phoenix-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Avalon-Phoenix Developers List" Reply-To: "Avalon-Phoenix Developers List" Delivered-To: mailing list avalon-phoenix-dev@jakarta.apache.org Received: (qmail 4250 invoked by uid 98); 11 Oct 2002 06:15:41 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Content-Type: text/plain; charset="iso-8859-1" From: Peter Donald To: "Avalon-Phoenix Developers List" Subject: Re: Phoenix and the Web Date: Fri, 11 Oct 2002 16:20:36 +1000 User-Agent: KMail/1.4.2 References: <3D98225C.6010508@denic.de> <200210071540.54392.peter@apache.org> <00a201c26dff$e5f34a50$040d1b41@mvcdev> In-Reply-To: <00a201c26dff$e5f34a50$040d1b41@mvcdev> X-Wisdom: A right is not what someone gives you; it's what no one can take from you. MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200210111620.36842.peter@apache.org> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, On Mon, 7 Oct 2002 22:48, Daniel Krieg wrote: > The way I tackled this...a bit of a hack perhaps...is to use URLClassLo= ader > to create a ClassLoader that points to Catalina's bootstrap.jar which > contains Catalina's StandardClassLoader, load this class and create an > instance of it (StandardClassLoader) using reflection, and establish th= e > classpaths for this ClassLoader instance. This seems to be working. =20 Thats usually the standard way of doing something like this but ... > How > does Phoenix's ClassLoader complicate modifying ClassLoader > hierarchies...what problems should I watch out for? Essentially the problem occurs when you try to have a Phoenix Block imple= ment=20 part of Catalinas container. So for example if you wanted to use Cornerst= ones=20 SocketManager and expose it in Catalina. The Catalina class would have to= =20 have both the cornerstone/phoenix classes and the catalina classes. As standard hierarchies only allow one parent this is not possible unless= you=20 expose Cornerstone/Phoenix to all of Catalina (including the webapps).=20 However the servlet spec requires that webapps should not be able to see = the=20 containers classloader.=20 Anyways thats why I am working on loader stuff to incorporate into Phoeni= x. --=20 Cheers, Peter Donald 'Most men would rather die than think. Many do.' Bertrand Russell -- To unsubscribe, e-mail: For additional commands, e-mail: