CDI inclusion in JSF 2.1.22 causes java.lang.InstantiationException: org.jboss.as.weld.webtier.jsf.WeldApplicationFactory
Issue
- In an ear application, there is a web application that uses JSF 2.1, with org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL set to true.
- The JSF implementation uses Apache Tomahawk for JSF 2.1.22.
- When trying to use CDI putting the beans.xml in the web app WEB-INF folder, the web application stops to deploy causing the following exception:
Caused by: java.lang.InstantiationException: org.jboss.as.weld.webtier.jsf.WeldApplicationFactory
Environment
- JBoss Enterprise Application Platform(EAP)
- 6.0.0
- 6.0.1
- 6.1.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.