现在用hibernate3.1,用Ant编译ok,配制好并用JB运行时,蹦出上述的框,并出现了这个异常:
log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).log4j:WARN Please initialize the log4j system properly.java.lang.NoClassDefFoundError: org/objectweb/asm/Type at net.sf.cglib.core.TypeUtils.parseType(TypeUtils.java:180) at net.sf.cglib.core.KeyFactory.<clinit>(KeyFactory.java:66) at org.hibernate.impl.SessionFactoryImpl.<clinit>(SessionFactoryImpl.java:362) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1145) at Test.main(Test.java:11)Exception in thread "main"
log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).log4j:WARN Please initialize the log4j system properly.java.lang.NoClassDefFoundError: org/objectweb/asm/Type at net.sf.cglib.core.TypeUtils.parseType(TypeUtils.java:180) at net.sf.cglib.core.KeyFactory.<clinit>(KeyFactory.java:66) at org.hibernate.impl.SessionFactoryImpl.<clinit>(SessionFactoryImpl.java:362) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1145) at Test.main(Test.java:11)Exception in thread "main"
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货