我正在使用一个带有hibernate的mysql数据库,它在本地完美运行。 但是当我在我的服务器上部署它时,我得到以下堆栈跟踪。 请帮忙:
引起:org.hibernate.HibernateException:无法实例化默认的tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer] 在org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:110) 在org.hibernate.tuple.entity.EntityTuplizerFactory.constructDefaultTuplizer(EntityTuplizerFactory.java:135) 在org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping。(EntityEntityModeToTuplizerMapping.java:56) 在org.hibernate.tuple.entity.EntityMetamodel。(EntityMetamodel.java:323) 在org.hibernate.persister.entity.AbstractEntityPersister。(AbstractEntityPersister.java:433) 在org.hibernate.persister.entity.SingleTableEntityPersister。(SingleTableEntityPersister.java:109) 在org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55) 在org.hibernate.impl.SessionFactoryImpl。(SessionFactoryImpl.java:231) 在org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1313) 在org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915) 在com.miiatech.tautona.red.patternindexer.util.HibernateUtil。(HibernateUtil.java:12) ......还有42个 引起:java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) 在org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:107) ......还有52个 引起:java.lang.NoSuchMethodError:org.objectweb.asm.ClassWriter。(Z)V 在net.sf.cglib.core.DebuggingClassWriter。(DebuggingClassWriter.java:47) at net.sf.cglib.core.DefaultGeneratorStrategy.getClassWriter(DefaultGeneratorStrategy.java:30) at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:24) at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216) at net.sf.cglib.core.KeyFactory $ Generator.create(KeyFactory.java:145) 在net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117) 在net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108) 在net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104) 在net.sf.cglib.proxy.Enhancer。(Enhancer.java:69) 在org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:117) 在org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:43) 在org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:188) 在org.hibernate.tuple.entity.AbstractEntityTuplizer。(AbstractEntityTuplizer.java:128) 在org.hibernate.tuple.entity.PojoEntityTuplizer。(PojoEntityTuplizer.java:78)
答案 0 :(得分:2)
“引起: java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter”。
您的已部署应用程序的类路径似乎存在问题。