[ 
https://issues.apache.org/jira/browse/OWB-894?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bauke Scholtz updated OWB-894:
------------------------------

    Description: 
Deployment of a project with JSF utility library OmniFaces 
(https://code.google.com/p/omnifaces/) on TomEE 1.6.0 SNAPSHOT results in the 
following log, whereby all @FacesComponent annotated classes are been validated 
as managed beans:

INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin]
aug 21, 2013 3:31:57 PM org.apache.webbeans.config.BeansDeployer 
isValidManagedBean
INFO: skipped deployment of: org.omnifaces.component.tree.TreeNodeItem reason: 
java.lang.reflect.UndeclaredThrowableException
aug 21, 2013 3:31:57 PM org.apache.webbeans.config.BeansDeployer 
isValidManagedBean
INFO: skipped deployment of: org.omnifaces.component.output.OutputFormat 
reason: java.lang.reflect.UndeclaredThrowableException
aug 21, 2013 3:31:57 PM org.apache.webbeans.config.BeansDeployer 
isValidManagedBean
INFO: skipped deployment of: org.omnifaces.component.tree.TreeNode reason: 
java.lang.reflect.UndeclaredThrowableException
aug 21, 2013 3:31:57 PM org.apache.webbeans.config.BeansDeployer 
isValidManagedBean
INFO: skipped deployment of: 
org.omnifaces.component.validator.ValidateAllOrNone reason: 
java.lang.reflect.UndeclaredThrowableException
[etc...]

This is wrong in 2 ways:

1. Why are @FacesComponent classes validated as managed beans in first place? 
They are nowhere in OmniFaces registered as managed beans.
2. The UndeclaredThrowableException in reason is unhelpful. It is hiding the 
real reason.

  was:
Deployment of a project with JSF utility library OmniFaces 
(https://code.google.com/p/omnifaces/) results in the following log of TomEE 
1.6.0 SNAPSHOT, whereby all @FacesComponent annotated classes are been 
validated as managed beans:

INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin]
aug 21, 2013 3:31:57 PM org.apache.webbeans.config.BeansDeployer 
isValidManagedBean
INFO: skipped deployment of: org.omnifaces.component.tree.TreeNodeItem reason: 
java.lang.reflect.UndeclaredThrowableException
aug 21, 2013 3:31:57 PM org.apache.webbeans.config.BeansDeployer 
isValidManagedBean
INFO: skipped deployment of: org.omnifaces.component.output.OutputFormat 
reason: java.lang.reflect.UndeclaredThrowableException
aug 21, 2013 3:31:57 PM org.apache.webbeans.config.BeansDeployer 
isValidManagedBean
INFO: skipped deployment of: org.omnifaces.component.tree.TreeNode reason: 
java.lang.reflect.UndeclaredThrowableException
aug 21, 2013 3:31:57 PM org.apache.webbeans.config.BeansDeployer 
isValidManagedBean
INFO: skipped deployment of: 
org.omnifaces.component.validator.ValidateAllOrNone reason: 
java.lang.reflect.UndeclaredThrowableException
[etc...]

This is wrong in 2 ways:

1. Why are @FacesComponent classes validated as managed beans in first place? 
They are nowhere in OmniFaces registered as managed beans.
2. The UndeclaredThrowableException in reason is unhelpful. It is hiding the 
real reason.

    
> OpenWebBeansJsfPlugin logs "skipped deployment" on all @FacesComponent 
> classes with an UndeclaredThrowableException
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: OWB-894
>                 URL: https://issues.apache.org/jira/browse/OWB-894
>             Project: OpenWebBeans
>          Issue Type: Bug
>    Affects Versions: 1.2.1
>            Reporter: Bauke Scholtz
>
> Deployment of a project with JSF utility library OmniFaces 
> (https://code.google.com/p/omnifaces/) on TomEE 1.6.0 SNAPSHOT results in the 
> following log, whereby all @FacesComponent annotated classes are been 
> validated as managed beans:
> INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin]
> aug 21, 2013 3:31:57 PM org.apache.webbeans.config.BeansDeployer 
> isValidManagedBean
> INFO: skipped deployment of: org.omnifaces.component.tree.TreeNodeItem 
> reason: java.lang.reflect.UndeclaredThrowableException
> aug 21, 2013 3:31:57 PM org.apache.webbeans.config.BeansDeployer 
> isValidManagedBean
> INFO: skipped deployment of: org.omnifaces.component.output.OutputFormat 
> reason: java.lang.reflect.UndeclaredThrowableException
> aug 21, 2013 3:31:57 PM org.apache.webbeans.config.BeansDeployer 
> isValidManagedBean
> INFO: skipped deployment of: org.omnifaces.component.tree.TreeNode reason: 
> java.lang.reflect.UndeclaredThrowableException
> aug 21, 2013 3:31:57 PM org.apache.webbeans.config.BeansDeployer 
> isValidManagedBean
> INFO: skipped deployment of: 
> org.omnifaces.component.validator.ValidateAllOrNone reason: 
> java.lang.reflect.UndeclaredThrowableException
> [etc...]
> This is wrong in 2 ways:
> 1. Why are @FacesComponent classes validated as managed beans in first place? 
> They are nowhere in OmniFaces registered as managed beans.
> 2. The UndeclaredThrowableException in reason is unhelpful. It is hiding the 
> real reason.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to