JBoss custom archives (like .sar or .har) are not recognized by the application.xml descriptors, so in order to deploy them in an EAR you have to declare them in jboss-app.xml. This file is located in the META-INF folder of your EAR.
For example, if you want to include an Hibernate Archive (HAR), you have to provide the following jboss-appl.xml configuration:
If you want to provide a .sar archive then you would need:
You can also add a web application module configuration, which will override the default EAR configuration:
<












