Return-Path: Delivered-To: apmail-incubator-wink-dev-archive@minotaur.apache.org Received: (qmail 21386 invoked from network); 4 Nov 2009 21:41:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Nov 2009 21:41:55 -0000 Received: (qmail 209 invoked by uid 500); 4 Nov 2009 21:41:55 -0000 Delivered-To: apmail-incubator-wink-dev-archive@incubator.apache.org Received: (qmail 118 invoked by uid 500); 4 Nov 2009 21:41: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 108 invoked by uid 99); 4 Nov 2009 21:41:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Nov 2009 21:41:55 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED 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:41:53 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5CA00234C04C for ; Wed, 4 Nov 2009 13:41:32 -0800 (PST) Message-ID: <1675497285.1257370892367.JavaMail.jira@brutus> Date: Wed, 4 Nov 2009 21:41:32 +0000 (UTC) From: "Hudson (JIRA)" To: wink-dev@incubator.apache.org Subject: [jira] Commented: (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 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/WINK-226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12773650#action_12773650 ] Hudson commented on WINK-226: ----------------------------- Integrated in Wink-Trunk-JDK1.5 #237 (See [http://hudson.zones.apache.org/hudson/job/Wink-Trunk-JDK1.5/237/]) : need fallback for Class.forName in J2EE environments > 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.