JBoss 7.1 Weld finds Managed Bean in a jar in the ear, but the war does not

爱⌒轻易说出口 提交于 2019-12-02 03:15:54
BalusC

Weld, which is a CDI implementation, doesn't scan for JSF 2 specific annotations, it only scans for CDI specific annotations like @Named. You have there a JSF 2 specific @ManagedBean annotation instead. For that you need to have a JSF 2 compatible /META-INF/faces-config.xml in the JAR in order to get a JSF 2 web application to scan for classes with JSF 2 specific annotations in the JAR file which is placed in /WEB-INF/lib.

See also:

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!