I have an ear (Selene.ear
) which contains a war (SeleneWar.war
).
When I put primefaces-5.0.jar
inside the Selene.war
assembly (in WEB-INF/lib
) I have no issues using the functionality. Anyway, I am a fan of thin deployments and I have been tried to setup primefaces as a WildFly module.
1) In wildfly/modules, I did create the folder org/primefaces/main
. There I put primefaces-5.0.jar
and the following module.xml
<module xmlns="urn:jboss:module:1.3" name="org.primefaces">
<resources>
<resource-root path="primefaces-5.0.jar"/>
</resources>
<dependencies>
<module name="javaee.api"/>
<module name="javax.faces.api"/>
</dependencies>
</module>
2) In selene.ear
, in META-INF
, I have added the following jboss-deployment-structure.xml
:
<jboss-deployment-structure>
<ear-subdeployments-isolated>true</ear-subdeployments-isolated>
<sub-deployment name="SeleneWar.war">
<dependencies>
<module name="org.primefaces"/>
</dependencies>
<local-last value="true" />
</sub-deployment>
</jboss-deployment-structure>
It seems that everything is ok (Wildfly starts with no errors; if I remove the module folder then it start complaining about the missing dependencies). Yet, if I remove the primefaces jar from the war assembly the primefaces tags are not being processed, so it looks like the classes are not available.
I am using WildFly 8.1 on Java 7 on Linux.
What am I missing?