Add additional resources: components.xml, faces-config.xml, pages.xml to WEB-INF, messages.properties - to WEB-INF/classes.
Select library to package into war: to_war library should be copied to /WEB_INF/lib. Set Set the web resource directory - view folder.
On the build settings tab set the archive name to deploy or the exploded directory (note, that it should have .ear extension):
Remove Remove JPA facet to avoid redundant resources packaging into war.
4. ) Edit the components.xml :
The core:init component should be changed as follows:
5) Create JBoss run configuration: