我已将我的war文件从jboss 4.2部署到jboss 7.1
部署后显示以下错误(java.lang.NoClassDefFoundError: org/hibernate/proxy/HibernateProxy
)
10:59:04,786 ERROR [org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer] (MSC service thread 1-3) HHH000142: Javassist Enhancement failed: org.jboss.security.acl.ACLEntryImpl: java.lang.RuntimeException: by java.lang.NoClassDefFoundError: org/hibernate/proxy/HibernateProxy
at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:510) [javassist-3.15.0-GA.jar:3.15.0.GA]
at javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:487) [javassist-3.15.0-GA.jar:3.15.0.GA]
at javassist.util.proxy.ProxyFactory.createClass1(ProxyFactory.java:423) [javassist-3.15.0-GA.jar:3.15.0.GA]
at javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:395) [javassist-3.15.0-GA.jar:3.15.0.GA]
at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxyFactory(JavassistLazyInitializer.java:163) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]
at org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.postInstantiate(JavassistProxyFactory.java:66) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]
at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:221) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]
at org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:212) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]
at org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:82) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [:1.7.0_25]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [:1.7.0_25]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [:1.7.0_25]
at java.lang.reflect.Constructor.newInstance(Constructor.java:526) [:1.7.0_25]
at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:135) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]
at org.hibernate.tuple.entity.EntityTuplizerFactory.constructDefaultTuplizer(EntityTuplizerFactory.java:188) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]
at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:336) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]
at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:498) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]
at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:142) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [:1.7.0_25]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [:1.7.0_25]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [:1.7.0_25]