sorry everyone,i got answer in the hibernate website
http://www.hibernate.org/119.html#A3
Unit Testing
I get a ClassCastException (or another "weird" exceptioin) when I try to call Hibernate from inside JUnit.
Fix 1 (Gareth Cronin)
Anyone using log4j/commons and JUnit should change the junit/runner/excluded.properties file inside junit.jar to look like this (it will get rid of all annoying Jakarta issues):
excluded.0=sun.*
excluded.1=com.sun.*
excluded.2=org.omg.*
excluded.3=javax.*
excluded.4=sunw.*
excluded.5=java.*
excluded.6=org.xml.sax.*
excluded.7=org.w3c.dom.*
excluded.8=org.apache.log4j.*
excluded.9=org.apache.commons.*
Fix 2 (Eric Everman)
Another fix for this is to turn off class reloading in JUnit.
and btw,what diff about adminapp 0.9 and 0.92?any change log available?