You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org> on 2010/04/25 17:21:50 UTC

[jira] Created: (MYFACES-2674) ClassNotFoundException when using "org.apache.myfaces.annotation.SCAN_PACKAGES" parameter with not existing package

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.


[jira] Commented: (MYFACES-2674) ClassNotFoundException when using "org.apache.myfaces.annotation.SCAN_PACKAGES" parameter with not existing package

Posted by "Martin Marinschek (JIRA)" <de...@myfaces.apache.org>.
    [ 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.


[jira] Commented: (MYFACES-2674) ClassNotFoundException when using "org.apache.myfaces.annotation.SCAN_PACKAGES" parameter with not existing package

Posted by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-2674?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12860694#action_12860694 ] 

Matthias Weßendorf commented on MYFACES-2674:
---------------------------------------------

IMO this could be a warning, especially in DEVELOPMENT mode.

> 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.