JPA in module not working

I have some JPA entities in the module that is added to Jboss using the jboss-deployment-structure.xml.

When it runs in a high availability cluster, JPA isn’t getting initialized correctly because the JPA named queries are not present in the EntityManagerFactory.

Can somebody point me in the right direction in regards to configuring JPA correctly in this scenario?

Thank you!