myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Marinschek (JIRA)" <>
Subject [jira] Commented: (MYFACES-2674) ClassNotFoundException when using "org.apache.myfaces.annotation.SCAN_PACKAGES" parameter with not existing package
Date Mon, 26 Apr 2010 04:32:32 GMT


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´t want an application to fail when you deploy it while it runs during development).

The question is if it is desired to have unknown directories here? Shouldn´t the user know
that something is amiss?

best regards,


> ClassNotFoundException when using "org.apache.myfaces.annotation.SCAN_PACKAGES" parameter
with not existing package
> -------------------------------------------------------------------------------------------------------------------
>                 Key: MYFACES-2674
>                 URL:
>             Project: MyFaces Core
>          Issue Type: Bug
>            Reporter: Matthias Weßendorf
> in web.xml have the following ctx param:
> <context-param>
>     <param-name>org.apache.myfaces.annotation.SCAN_PACKAGES</param-name>
>     <param-value>net.wessendorf</param-value>
> </context-param>
> but if this package does not exist, you'll notice this:
> Caused by: java.lang.ClassNotFoundException: No resource for net/wessendorf
> 	at org.apache.myfaces.config.annotation._PackageInfo.getClasses(
> 	at org.apache.myfaces.config.annotation.AnnotationConfigurator.packageClasses(
> 	at org.apache.myfaces.config.annotation.AnnotationConfigurator.configure(
> 	... 17 more

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message