Hibernate version:2.1.6 ant later
JBoss version: 4.0.0
Be aware, JBoss 4.0.0 comes with Hibernate 2.1.5 in the distributive. The following configurations:
all, default, standard consist hibernate2.jar and cglib-full-2.0.1.jar from Hibernate 2.1.5.
Code:
INFO [net.sf.hibernate.cfg.Environment] Hibernate 2.1.5
I tried to put Hibernate 2.1.6 jars into my har, sar, ear but JBoss used classes from its <configuration>/lib directory and it were Hibernate 2.1.5. The possible solution that I found it is a replacement of jars in <configuration>/lib by new ones.
The question:
Does anybody know how to make JBoss 4.0.0 use Hibernate jars from har, sar, ear? In production deployment it would be easier to deploy only one application.ear that consists ejb.jar, hibernate.har, needed jars and etc.