Return-Path: Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 4162 invoked from network); 15 Jun 2000 10:50:37 -0000 Received: from threshold3.jpmorgan.com (HELO jpmorgan.com) (169.71.1.12) by locus.apache.org with SMTP; 15 Jun 2000 10:50:37 -0000 Received: (from uucp@localhost) by jpmorgan.com (8.8.5/8.8.5) id GAA03151 for ; Thu, 15 Jun 2000 06:50:36 -0400 (EDT) Received: from jpmmailhost4.ny.jpmorgan.com(198.75.231.102) by threshold3.jpmorgan.com via smap (V4.2) id xma003144; Thu, 15 Jun 00 06:50:34 -0400 Received: from nyc-ntgw-n01.ny.jpmorgan.com (nyc_smtpmta_02.ny.jpmorgan.com [146.149.150.22]) by jpmmailhost4.ny.jpmorgan.com (8.9.1a/8.9.1) with SMTP id GAA09067 for ; Thu, 15 Jun 2000 06:50:34 -0400 (EDT) Received: by nyc-ntgw-n01.ny.jpmorgan.com(Lotus SMTP MTA v4.6.4 (830.2 3-23-1999)) id 852568FF.003B8A34 ; Thu, 15 Jun 2000 06:50:19 -0400 X-Lotus-FromDomain: JPMORGAN@SMTP From: "Ken X Horn" To: tomcat-dev@jakarta.apache.org Message-ID: <852568FF.003B892F.00@nyc-ntgw-n01.ny.jpmorgan.com> Date: Thu, 15 Jun 2000 11:49:55 +0100 Subject: Re: [integration in jBoss] class loader question Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N When constructing the ACL without passing the parent class loader, it has to set the parent to null. I tried to set it to this.getClass().getClassLoader() - cos it seemed to make sense - but ran into constructor init sequence problems (since the Object constructor hasn't run yet I think). I suppose later in the constructor, it could have been set but only just thought of that ... ;o) (can do this since we're not using the JDK1.2 classloader, parent attribute/constructor) Best solution though is to pass the parent constructor on instantiation IMO. Ken. costin@eng.sun.com on 15/06/2000 00:22:40 Please respond to tomcat-dev@jakarta.apache.org To: tomcat-dev@jakarta.apache.org cc: (bcc: Ken X Horn) Subject: Re: [integration in jBoss] class loader question Hi, I think parent should be set - if it isn't we need to fix that. Costin Sylvain Laurent wrote: > Hi ! > > I'm currently working on integrating Tomcat in JBoss 2. Tomcat will be a JMX > MBean... > > I fought a couple of hours with class loaders, but I finally managed to make > it work. > I just have one question : Why is the ACL's parent class loader always null > ? Why not set it as the current context class loader ? > > Tomcat needs its own classes to be present in the system class loader > (CLASSPATH env variable, or -classpath vm argument), but it's not very clean > when implementing Tomcat as a MBean. I know it's working for now, but that's > just a design question. > > Sylvain > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan & Co. Incorporated, its subsidiaries and affiliates.