views:

43

answers:

1

I'm using JBoss Embedded version beta3.SP10 and I'm facing a persistence bug that is should be fixed in some Hibernate version. Sadly, I don't know what version of Hibernate is used in my JBoss Embedded and couldn't find a way to find this information, the hibernate-all.jar bundled in it doesn't contain a org.hibernate.Version class, nor a MANIFEST.

How can I find the currently loaded Hibernate version without using org.hibernate.Version?

A: 

Indeed, it seems hard to find what exact versions of Hibernate modules are used. Some suggestions:

  1. Check if your Hibernate JAR has a META-INF/MANIFEST.MF with the version in it. It looks like the JBoss folks were using Ant at this time and the Manifest doesn't provide the version.

  2. Dig the JBoss Embedded SVN to find out what they're doing exactly.

  3. Try with JBoss embedded beta3.SP12 (that you can get from the Maven repository).

  4. Try to replace the hibernate-all with a bundle containing Hibernate EM 3.4.0.GA.

I would give options 3 and 4 a try.

Pascal Thivent
Kawu
@Kawu Logging logs the version using the `Version` class...
Pascal Thivent