[ 
https://issues.apache.org/jira/browse/OWB-894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13791512#comment-13791512
 ] 

Howard W. Smith, Jr. commented on OWB-894:
------------------------------------------

CONFIRMED/verified the fix for you. please see below.

1. Prior to your fix, Mark, this issue occurred while using OmniFaces '1.6' and 
tomee+ 2013-Oct-05
2. Earlier (my previous comment), I learned that this issue is fixed when using 
OmniFaces '1.6.1' and tomee+ 2013-Oct-05
3. Today, I did the following:

a. Downloaded tomee+ 2013-Oct-10, which includes the following OWB files:

C:\apache-tomee-plus-1.6.0-SNAPSHOT\lib>dir /b openwebbeans*.jar
openwebbeans-ee-1.2.1-20131009.155420-54.jar
openwebbeans-ee-common-1.2.1-20131009.155420-54.jar
openwebbeans-ejb-1.2.1-20131009.155420-54.jar
openwebbeans-el22-1.2.1-20131009.155420-54.jar
openwebbeans-impl-1.2.1-20131009.155420-55.jar
openwebbeans-jsf-1.2.1-20131009.155420-54.jar
openwebbeans-spi-1.2.1-20131009.155420-54.jar
openwebbeans-web-1.2.1-20131009.155420-54.jar

b. Modified my project libs/classpath to use OmniFaces 1.6
c. deployed WAR to tomee+, started tomee+, and the following is in the log 
(which shows that it is fixed):

Oct 10, 2013 1:14:20 AM org.apache.openejb.cdi.OpenEJBLifecycle startApplication
INFO: OpenWebBeans Container is starting...
Oct 10, 2013 1:14:20 AM org.apache.webbeans.plugins.PluginLoader startUp
INFO: Adding OpenWebBeansPlugin : [CdiPlugin]
Oct 10, 2013 1:14:20 AM org.apache.webbeans.plugins.PluginLoader startUp
INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin]
Oct 10, 2013 1:14:23 AM org.apache.webbeans.config.BeansDeployer 
validateInjectionPoints
INFO: All injection points were validated successfully.

4. Earlier, when I was running scenario mentioned in #1 (above), this issue 
still persisted; see log below:

<snip>

Oct 05, 2013 1:32:13 AM org.apache.openejb.cdi.OpenEJBLifecycle startApplication
INFO: OpenWebBeans Container is starting...
Oct 05, 2013 1:32:13 AM org.apache.webbeans.plugins.PluginLoader startUp
INFO: Adding OpenWebBeansPlugin : [CdiPlugin]
Oct 05, 2013 1:32:13 AM org.apache.webbeans.plugins.PluginLoader startUp
INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin]
Oct 05, 2013 1:32:14 AM org.apache.webbeans.config.BeansDeployer 
isValidManagedBean
INFO: skipped deployment of: org.omnifaces.component.validator.ValidateOrder 
reason: java.lang.reflect.UndeclaredThrowableException
Oct 05, 2013 1:32:14 AM org.apache.webbeans.config.BeansDeployer 
isValidManagedBean
INFO: skipped deployment of: org.omnifaces.component.validator.ValidateAll 
reason: java.lang.reflect.UndeclaredThrowableException

</snip>

Per everything I mentioned above, this issue is definitely fixed or does not 
occur with previous versions of OmniFaces (which includes OmniFaces 1.6).

> 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 was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to