org.apache.webbeans.exception.WebBeansConfigurationException: Bean implementation class can not implement javax.enterprise.inject.spi.Extension.!

Apache's JIRA Issue Tracker | Bauke Scholtz | 4 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    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.

    Apache's JIRA Issue Tracker | 4 years ago | Bauke Scholtz
    org.apache.webbeans.exception.WebBeansConfigurationException: Bean implementation class can not implement javax.enterprise.inject.spi.Extension.!

    Root Cause Analysis

    1. org.apache.webbeans.exception.WebBeansConfigurationException

      Bean implementation class can not implement javax.enterprise.inject.spi.Extension.!

      at org.apache.webbeans.util.WebBeansUtil.checkManagedBean()
    2. OpenWebBeans Core
      BeansDeployer.isValidManagedBean
      1. org.apache.webbeans.util.WebBeansUtil.checkManagedBean(WebBeansUtil.java:286)
      2. org.apache.webbeans.config.BeansDeployer.isValidManagedBean(BeansDeployer.java:657)
      2 frames