hibernate报错ERROR Javassist Enhancement failed: com.entity.Role

是因为多个一个Javassist的包,删除掉就好了

CGLIB Enhancement failed??

07-20

用MyEclipse6.0写了一个spring2.0+struts1.2+hibernate3.0的工程,在没有加入log4j.properties时运行一切正常.该配置文件加入后启动tomcat时报以下异常: rnERROR [org.hibernate.proxy.BasicLazyInitializer] - CGLIB Enhancement failed: com.movie.model.UserInfo rnjava.lang.ExceptionInInitializerError rnat org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:116) rnat org.hibernate.proxy.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:41) rnat org.hibernate.tuple.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:161) rnat org.hibernate.tuple.AbstractEntityTuplizer.(AbstractEntityTuplizer.java:131) rnat org.hibernate.tuple.PojoEntityTuplizer.(PojoEntityTuplizer.java:55) rnat org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:64) rnat org.hibernate.tuple.EntityMetamodel.(EntityMetamodel.java:257) rnat org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:412) rnat org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:108) rn.................. rnCaused by: java.lang.SecurityException: class "org.objectweb.asm.CodeVisitor"'s signer information does not match signer information of other classes in the same package rnat java.lang.ClassLoader.checkCerts(Unknown Source) rnat java.lang.ClassLoader.preDefineClass(Unknown Source) rnat java.lang.ClassLoader.defineClass(Unknown Source) rnat java.security.SecureClassLoader.defineClass(Unknown Source) rnat org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1634) rnat org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:860) rnat org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307) rnat org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189) rnat java.lang.ClassLoader.loadClassInternal(Unknown Source) rn...............等异常 rnlog4j.properties文件配置如下: rnlog4j.rootLogger=WARN, stdout rnlog4j.appender.stdout=org.apache.log4j.ConsoleAppender rnlog4j.appender.stdout.layout=org.apache.log4j.PatternLayout rnlog4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - %m%n rn这个是按书上的示例抄的,应该问题不大.

没有更多推荐了,返回首页

私密
私密原因:
请选择设置私密原因
  • 广告
  • 抄袭
  • 版权
  • 政治
  • 色情
  • 无意义
  • 其他
其他原因:
120
出错啦
系统繁忙,请稍后再试