Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 63008 invoked from network); 21 Apr 2003 21:09:53 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 21 Apr 2003 21:09:53 -0000 Received: (qmail 25955 invoked by uid 97); 21 Apr 2003 21:11:55 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 25948 invoked from network); 21 Apr 2003 21:11:55 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 21 Apr 2003 21:11:55 -0000 Received: (qmail 59407 invoked by uid 500); 21 Apr 2003 21:09:16 -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 59360 invoked from network); 21 Apr 2003 21:09:16 -0000 Received: from citron.cs.clemson.edu (HELO cs.clemson.edu) (130.127.48.6) by daedalus.apache.org with SMTP; 21 Apr 2003 21:09:16 -0000 Received: from yoda.cs.clemson.edu (yoda [130.127.48.4]) by cs.clemson.edu (8.9.3p2/8.9.3) with ESMTP id RAA21628 for ; Mon, 21 Apr 2003 17:09:19 -0400 (EDT) Received: from localhost (sandaj@localhost) by yoda.cs.clemson.edu (8.9.3/8.9.3) with ESMTP id RAA24398 for ; Mon, 21 Apr 2003 17:09:19 -0400 (EDT) X-Authentication-Warning: yoda.cs.clemson.edu: sandaj owned process doing -bs Date: Mon, 21 Apr 2003 17:09:19 -0400 (EDT) From: Sanda John P To: Tomcat Users List Subject: Re: WebappClassLoader In-Reply-To: <3EA41AB0.50802@joedog.org> Message-ID: References: <399E1F52E73BD41194A800D0B74A08AB03400131@skipper.cincom.com> <3EA41AB0.50802@joedog.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I added the following to server.xml. I still wound up with the ClassCastException. I'm not really familiar with the server configuration and explicitly adding contexts, so I'm not surprised that I didn't have any luck. What else do I need to add to the nirex context entry in server.xml? Thanks. John Sanda, Clemson University Computer Science Dept. (864)656-2844 On Mon, 21 Apr 2003, Tim Funk wrote: > This is probably becasue org.apache.catalina.loader.WebappClassLoader lives > in the server classloader and is not accessible to webapps. (for security) > > You might be able to do this in server.xml for your context. > doPrivledged="true" > > > > -Tim > > Sanda John P wrote: > > The following code resulted in a ClassCastException. > > > > <% > > WebappClassLoader loader = > > (WebappClassLoader)Thread.currentThread().getContextClassLoader(); > > %> > > > > I guess Thread.currentThread().getContextClassLoader() doesn't return the > > WebappClassLoader, but when I printed out its class name, it said > > WebappClassLoader. > > > > John Sanda, Clemson University Computer Science Dept. > > (864)656-2844 > > > > > > > --------------------------------------------------------------------- > 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