Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 97820 invoked from network); 26 Apr 2010 04:32:57 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Apr 2010 04:32:57 -0000 Received: (qmail 20738 invoked by uid 500); 26 Apr 2010 04:32:57 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 20590 invoked by uid 500); 26 Apr 2010 04:32:57 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 20581 invoked by uid 99); 26 Apr 2010 04:32:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Apr 2010 04:32:56 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Apr 2010 04:32:53 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3Q4WWhX004308 for ; Mon, 26 Apr 2010 04:32:32 GMT Message-ID: <31391102.751272256352291.JavaMail.jira@thor> Date: Mon, 26 Apr 2010 00:32:32 -0400 (EDT) From: "Martin Marinschek (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Commented: (MYFACES-2674) ClassNotFoundException when using "org.apache.myfaces.annotation.SCAN_PACKAGES" parameter with not existing package In-Reply-To: <23712480.182591272208910521.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MYFACES-2674?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D12= 860803#action_12860803 ]=20 Martin Marinschek commented on MYFACES-2674: -------------------------------------------- Hi Matthias, well, the logging/exception should certainly be more strict in development = than in production mode (you don=C2=B4t want an application to fail when yo= u deploy it while it runs during development). The question is if it is desired to have unknown directories here? Shouldn= =C2=B4t the user know that something is amiss? best regards, Martin > ClassNotFoundException when using "org.apache.myfaces.annotation.SCAN_PAC= KAGES" parameter with not existing package > -------------------------------------------------------------------------= ------------------------------------------ > > Key: MYFACES-2674 > URL: https://issues.apache.org/jira/browse/MYFACES-2674 > Project: MyFaces Core > Issue Type: Bug > Reporter: Matthias We=C3=9Fendorf > > in web.xml have the following ctx param: > > org.apache.myfaces.annotation.SCAN_PACKAGES > net.wessendorf > > but if this package does not exist, you'll notice this: > Caused by: java.lang.ClassNotFoundException: No resource for net/wessendo= rf > =09at org.apache.myfaces.config.annotation._PackageInfo.getClasses(_Packa= geInfo.java:102) > =09at org.apache.myfaces.config.annotation.AnnotationConfigurator.package= Classes(AnnotationConfigurator.java:332) > =09at org.apache.myfaces.config.annotation.AnnotationConfigurator.configu= re(AnnotationConfigurator.java:186) > =09... 17 more --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.