Hi, looking into the sources I've found this, in org.hibernate.impl.SessionFactoryImpl:
Code:
Statistics concurrentStatistics = null;
try {
Class concurrentStatsClass = ReflectHelper.classForName("org.hibernate.stat.ConcurrentStatisticsImpl");
Constructor constructor = concurrentStatsClass.getConstructor(new Class[]{SessionFactoryImplementor.class});
concurrentStatistics = (Statistics) constructor.newInstance(new Object[]{this});
log.trace("JDK 1.5 concurrent classes present");
} catch (Exception noJava5) {
log.trace("JDK 1.5 concurrent classes missing");
}
if (concurrentStatistics != null) {
this.statistics = concurrentStatistics;
} else {
this.statistics = new StatisticsImpl(this);
}
...but NoClassDefFoundError is NOT an Exception, is an Error!!!
So, the catch block won't ever work!
I'll try asap to open an issue segnalation to Jira, but the site seems to be down.. :(
Bye!
Francesco