I have successfully been using Hibernate as the persistence layer in my .ear project for some time.
I have an .ear project containing a .sar hibernate mapping and a .war webapp. The classes common for these are simply located on my .ear root.
So far so good, but If I try to deploy my app on 4.0.2 instead of 4.0.2rc1, I get this error:
ERROR [MainDeployer] could not create deployment: file:/D:/Java/JBoss/jboss-4.0.2/server/default/deploy/MyApp.ear/hibernatemapping.sar org.jboss.deployment.DeploymentException: No ClassLoaders found for: net.sf.hibernate.jmx.HibernateService; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: net.sf.hibernate.jmx.HibernateService) at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:143)
Moved to user forum.