2009年1月6日 星期二

Upgrade Hibernate 3.2 to 3.3.1 GA

Today I try to upgrade my Hibernate 3.2 to 3.3.1 GA in Appfuse 1.9.4,
At first I think this should be a easy task. All I have to do is modification the lib.properties and copy the Hibernate 3.3.1 GA library to the lib folder.
But I was wrong.... After the first dao test startup.
The junit report a error said NoClassDefFoundError when initiate the org.hibernate.cfg.Configuration.
After few hours investiagtion, I found Hibernate 3.3.1 GA requires slf4j.jar v1.5.2.
I downloaded the same version of slf4j from here: http://www.slf4j.org/dist/
and then the problem is gone.
Ps: don't use the latest version (1.5.6), it not works. I know because I did this.

沒有留言: