Simplified structure:
- myapp.ear
- - lib/hibernate-x.x.x.jar
- - lib/xpto.jar <- this one uses hibernate directly (previous jar), and it's only used on the war classloader context
- - lib/...
- - ejb1.jar (business layer, services)
- - ejb2.jar (data layer, DAOs)
- - web.war (skinny war... no jars on WEB-INF/lib)