Affects Version/s: 6.1.1 CE GA2, 6.1.20 EE GA2
Environment:Liferay + JBoss Weld + JBoss AS 7
This issue was first reported in the forums.
The reason why it is failing, is because when running under JBoss AS, the instance is supposed to be retrieved via JNDI.
Steps to Reproduce:
1. Build the jsf2-cdi-portlet from the 3.1.x branch (see the Building Liferay Faces From Source wiki article for help)
2. Deploy the jsf2-cdi-portlet to Liferay+JBoss using the following command:
mvn -P jboss clean install liferay:deploy
3. Add the jsf2-cdi-portlet to a portal page
4. Visit the portal page in the browser
If the bug still exists, then there will be a stacktrace in the server log and the portlet will show an error message.
If the bug is fixed, then the portlet will function properly and there will be no stacktrace in the server log.