[
https://issues.apache.org/jira/browse/MYFACES-2674?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12860803#action_12860803
]
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,
Martin
> ClassNotFoundException when using
> "org.apache.myfaces.annotation.SCAN_PACKAGES" 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ß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(_PackageInfo.java:102)
> at
> org.apache.myfaces.config.annotation.AnnotationConfigurator.packageClasses(AnnotationConfigurator.java:332)
> at
> org.apache.myfaces.config.annotation.AnnotationConfigurator.configure(AnnotationConfigurator.java:186)
> ... 17 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.