Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 64730 invoked from network); 6 Nov 2003 19:12:46 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 6 Nov 2003 19:12:46 -0000 Received: (qmail 10113 invoked by uid 500); 6 Nov 2003 19:12:15 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 10092 invoked by uid 500); 6 Nov 2003 19:12:15 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 10079 invoked from network); 6 Nov 2003 19:12:15 -0000 Received: from unknown (HELO brmea-mail-2.sun.com) (192.18.98.43) by daedalus.apache.org with SMTP; 6 Nov 2003 19:12:15 -0000 Received: from phys-d3-ha21sca-2 ([129.145.155.165]) by brmea-mail-2.sun.com (8.12.10/8.12.9) with ESMTP id hA6JBqQR017483 for ; Thu, 6 Nov 2003 12:12:19 -0700 (MST) Received: from apache.org (vpn-129-152-201-134.East.Sun.COM [129.152.201.134]) by ha21sca-mail1.sfbay.sun.com (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTP id <0HNY00AD22ME8L@ha21sca-mail1.sfbay.sun.com> for tomcat-user@jakarta.apache.org; Thu, 06 Nov 2003 11:11:03 -0800 (PST) Date: Thu, 06 Nov 2003 14:11:31 -0500 From: Jean-Francois Arcand Subject: Re: how to get WebClassLoader Classpath ? In-reply-to: <9C5166762F311146951505C6790A9CF8013DF636@US-VS1.corp.mpi.com> To: Tomcat Users List Message-id: <3FAA9CE3.5050209@apache.org> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=us-ascii Content-transfer-encoding: 7bit X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312 References: <9C5166762F311146951505C6790A9CF8013DF636@US-VS1.corp.mpi.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Shapira, Yoav wrote: >Howdy, >Assuming you mean beyond the classpath documented in the Classloder >HOW-TO, you'd have to write some tomcat specific code. In your webapp, >you would do: > >import org.apache.catalina.Loader; >... > >ClassLoader cl = this.getClass().getClassLoader(); >Loader catalinaLoader = (Loader) cl; >String[] repositories = catalinaLoader.findRepositories(); > In Tomcat 5 + SecurityManager, this will not work ( access denied ). > >But why do you want to do this? > Yes why :-) -- Jeanfrancois > >Yoav Shapira >Millennium ChemInformatics > > > > >>-----Original Message----- >>From: mourad jaber [mailto:mjaber@centralpay.net] >>Sent: Thursday, November 06, 2003 12:25 PM >>To: Tomcat Users List >>Subject: how to get WebClassLoader Classpath ? >> >>Hi, >>I need to get the classpath used by classloader of my web app... >>System properties don't help me, as there are not used by >> >> >WebClassLoader > > >>of tomcat... >>How can I get it ? >> >>Any idea >> >>Thanks >> >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org >> >> > > > > >This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org