I am using jboss3.2.6.
The structure of my ear looks like this:
MyApp.ear
----META-INF
----application.xml
----jboss-app.xml
----MyEjb.jar
----MyWeb.war
----MyHibernate.har
application.xml:
<?xml version="1.0" encoding="ISO-8859-1"?> <application> <display-name>MyApp</display-name> <module> <web> <web-uri>MyWeb.war</web-uri> <context-root>/MyWeb</context-root> </web> </module> <module> <ejb>MyEjb.jar</ejb> </module> </application>
<?xml version='1.0' encoding='UTF-8' ?> <jboss-app> <loader-repository>jboss.test:loader=MyApp.ear</loader-repository> <module> <har>MyHibernate.har</har> </module> </jboss-app>