在wildfly中部署应用程序时发生休眠错误

时间:2018-11-28 13:50:11

标签: java hibernate jboss wildfly cglib

我的耳朵在Jbos7.1服务器中可以正常工作,但是在wildfly中部署它时会出错:

  

[0m [31m14:33:12,077错误   [com.rcibanque.framework.persistance.hibernate.HibernateUtil]   (ServerService线程池-119)初始SessionFactory创建   失败。:java.lang.NoSuchMethodError:   org.objectweb.asm.ClassWriter。(Z)V at   net.sf.cglib.core.DebuggingClassWriter。(DebuggingClassWriter.java:47)     在   net.sf.cglib.core.DefaultGeneratorStrategy.getClassWriter(DefaultGeneratorStrategy.java:30)     在   net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:24)     在   net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216)     在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:162)     在   org.hibernate.tuple.entity.AbstractEntityTuplizer。(AbstractEntityTuplizer.java:135)     在   org.hibernate.tuple.entity.PojoEntityTuplizer。(PojoEntityTuplizer.java:55)     在   org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping。(EntityEntityModeToTuplizerMapping.java:56)     在   org.hibernate.tuple.entity.EntityMetamodel。(EntityMetamodel.java:295)     在   org.hibernate.persister.entity.AbstractEntityPersister。(AbstractEntityPersister.java:434)     在   org.hibernate.persister.entity.SingleTableEntityPersister。(SingleTableEntityPersister.java:109)     在   org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)     在   org.hibernate.impl.SessionFactoryImpl。(SessionFactoryImpl.java:226)     在   org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)     在   com.rcibanque.framework.persistance.hibernate.HibernateUtil。(HibernateUtil.java:45)     在   com.rcibanque.framework.persistance.hibernate.HibernateTransaction.begin(HibernateTransaction.java:62)     在   com.rcibanque.common.application.ReferencesService.loadReferences(ReferencesService.java:62)     在com.rcibanque.common.session.InitServlet.init(InitServlet.java:94)     在javax.servlet.GenericServlet.init(GenericServlet.java:244)在   io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117)     在   org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init(RunAsLifecycleInterceptor.java:78)     在   io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:103)     在   io.undertow.servlet.core.ManagedServlet $ DefaultInstanceStrategy.start(ManagedServlet.java:250)     在   io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:133)     在   io.undertow.servlet.core.DeploymentManagerImpl $ 2.call(DeploymentManagerImpl.java:546)     在   io.undertow.servlet.core.DeploymentManagerImpl $ 2.call(DeploymentManagerImpl.java:517)     在   io.undertow.servlet.core.ServletRequestContextThreadSetupAction $ 1.call(ServletRequestContextThreadSetupAction.java:42)     在   io.undertow.servlet.core.ContextClassLoaderSetupAction $ 1.call(ContextClassLoaderSetupAction.java:43)     在   io.undertow.servlet.api.LegacyThreadSetupActionWrapper $ 1.call(LegacyThreadSetupActionWrapper.java:44)     在   io.undertow.servlet.api.LegacyThreadSetupActionWrapper $ 1.call(LegacyThreadSetupActionWrapper.java:44)     在   io.undertow.servlet.api.LegacyThreadSetupActionWrapper $ 1.call(LegacyThreadSetupActionWrapper.java:44)     在   io.undertow.servlet.api.LegacyThreadSetupActionWrapper $ 1.call(LegacyThreadSetupActionWrapper.java:44)     在   io.undertow.servlet.api.LegacyThreadSetupActionWrapper $ 1.call(LegacyThreadSetupActionWrapper.java:44)     在   io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:559)     在   org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:101)     在   org.wildfly.extension.undertow.deployment.UndertowDeploymentService $ 1.run(UndertowDeploymentService.java:82)     在   java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:511)     在java.util.concurrent.FutureTask.run(FutureTask.java:266)在   java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)     在   java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)     在java.lang.Thread.run(Thread.java:748)在   org.jboss.threads.JBossThread.run(JBossThread.java:320)

有人可以帮助我吗? 谢谢!

0 个答案:

没有答案