Return-Path: Delivered-To: apmail-shale-issues-archive@locus.apache.org Received: (qmail 95510 invoked from network); 17 Jul 2006 05:23:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Jul 2006 05:23:35 -0000 Received: (qmail 42533 invoked by uid 500); 17 Jul 2006 05:23:35 -0000 Delivered-To: apmail-shale-issues-archive@shale.apache.org Received: (qmail 42507 invoked by uid 500); 17 Jul 2006 05:23:35 -0000 Mailing-List: contact issues-help@shale.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@shale.apache.org Delivered-To: mailing list issues@shale.apache.org Received: (qmail 42498 invoked by uid 99); 17 Jul 2006 05:23:35 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Jul 2006 22:23:35 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Jul 2006 22:23:33 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4239A7141E8 for ; Mon, 17 Jul 2006 05:21:21 +0000 (GMT) Message-ID: <11355196.1153113681253.JavaMail.jira@brutus> Date: Sun, 16 Jul 2006 22:21:21 -0700 (PDT) From: "Craig McClanahan (JIRA)" To: issues@shale.apache.org Subject: [jira] Updated: (SHALE-196) Shale should notify me if two beans are configured with the same name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/struts/browse/SHALE-196?page=all ] Craig McClanahan updated SHALE-196: ----------------------------------- Issue Type: New Feature (was: Bug) Switching the issue type to "new feature", as the right long term approach to this is some sort of auditing capabilities that detects this particular problem (two managed beans with the same name) as well as a host of other potential configuration problems that could be detected by a static analysis of the entire web application. > Shale should notify me if two beans are configured with the same name > --------------------------------------------------------------------- > > Key: SHALE-196 > URL: http://issues.apache.org/struts/browse/SHALE-196 > Project: Shale > Issue Type: New Feature > Components: Tiger > Affects Versions: 1.0.3 > Reporter: Adam Brod > > Shale-Tiger should throw an error if multiple beans are configured with the same name. Twice I have had very frustrating problems where I thought my changes weren't being picked up. It turned out this was because two beans had the same name and the second one was being silently ignored. > I can't imagine that anyone would ever want two beans with the same name since they won't both work, so an error at startup would be a great resolution. If not that, then at least a severe warning to let the developer know that (s)he could be in for a surprise would be very helpful. > I guess this really should be in the JSF impl of the managed beans facility; however, this problem is more likely to occur with the managed bean definitions being spread through the classpath. > Note: this happened because I use Weblogic/Tomcat autodeploy features. When I rename a class (or move it), the old class isn't always deleted. So the old class is still in the autodeploy directory, even though my editor says the file is deleted. I'm sure this isn't too uncommon for other developers to run into the same problem... -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira