Return-Path: Delivered-To: apmail-incubator-wink-dev-archive@minotaur.apache.org Received: (qmail 29326 invoked from network); 4 Nov 2009 21:46:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Nov 2009 21:46:36 -0000 Received: (qmail 56720 invoked by uid 500); 4 Nov 2009 21:19:55 -0000 Delivered-To: apmail-incubator-wink-dev-archive@incubator.apache.org Received: (qmail 56666 invoked by uid 500); 4 Nov 2009 21:19:55 -0000 Mailing-List: contact wink-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: wink-dev@incubator.apache.org Delivered-To: mailing list wink-dev@incubator.apache.org Received: (qmail 56656 invoked by uid 99); 4 Nov 2009 21:19:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Nov 2009 21:19:55 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Nov 2009 21:19:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 62037234C04C for ; Wed, 4 Nov 2009 13:19:32 -0800 (PST) Message-ID: <1720075532.1257369572386.JavaMail.jira@brutus> Date: Wed, 4 Nov 2009 21:19:32 +0000 (UTC) From: "Mike Rheinheimer (JIRA)" To: wink-dev@incubator.apache.org Subject: [jira] Resolved: (WINK-226) need fallback for Class.forName in J2EE environments In-Reply-To: <19412552.1257369033174.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/WINK-226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mike Rheinheimer resolved WINK-226. ----------------------------------- Resolution: Fixed Committed in SVN rev 832873. > need fallback for Class.forName in J2EE environments > ---------------------------------------------------- > > Key: WINK-226 > URL: https://issues.apache.org/jira/browse/WINK-226 > Project: Wink > Issue Type: Bug > Components: Server > Affects Versions: 1.1 > Reporter: Mike Rheinheimer > Fix For: 1.1 > > Attachments: WINK-226.patch > > > In J2EE environments, the Wink libraries may be managed by a different classloader (A) than the Application subclass (B). In these cases, (A) needs to load (B) by way of Class.forName(B). However, due to the J2EE environment, and classloader hierarchies, (A) does not have visibility into (B). > The solution is to use the thread context classloader instead of Class.forName, which uses the system classloader. This "try thread context classloader first, then fallback to system classloader" functionality is built into org.apache.commons.lang.ClassUtils.getClass(String). We already have a dependency on Apache commons in wink-server, so I figure we can just use that. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.