Created
January 8, 2016 21:26
-
-
Save scottmarlow/4e23e62962101b740a4a to your computer and use it in GitHub Desktop.
javassist exception call stack when hibernate doesn't find javassist in deployment classpath
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2016-01-08 16:25:07,868 INFO [org.hibernate.orm.deprecation] (ServerService Thread Pool -- 66) HHH90000001: Found usage of deprecated setting for specifying Scanner [hibernate.ejb.resource_scanner]; use [hibernate.archive.scanner] instead | |
2016-01-08 16:25:07,876 INFO [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 66) HCANN000001: Hibernate Commons Annotations {5.0.1.Final} | |
2016-01-08 16:25:07,955 INFO [org.jboss.weld.deployer] (MSC service thread 1-5) WFLYWELD0006: Starting Services for CDI deployment: hibernate4native_search_test.jar | |
2016-01-08 16:25:07,961 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 66) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated. | |
2016-01-08 16:25:07,963 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 66) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated. | |
2016-01-08 16:25:07,964 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 66) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated. | |
2016-01-08 16:25:07,964 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 66) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated. | |
2016-01-08 16:25:07,987 INFO [org.jboss.weld.Version] (MSC service thread 1-5) WELD-000900: 2.3.2 (Final) | |
2016-01-08 16:25:07,997 INFO [org.jboss.weld.deployer] (MSC service thread 1-6) WFLYWELD0009: Starting weld service for deployment hibernate4native_search_test.jar | |
2016-01-08 16:25:07,997 INFO [org.jboss.as.arquillian] (MSC service thread 1-8) Arquillian deployment detected: ArquillianConfig[service=jboss.arquillian.config."hibernate4native_search_test.jar",unit=hibernate4native_search_test.jar,tests=[org.jboss.as.test.integration.hibernate.search.HibernateSearchJPATestCase]] | |
2016-01-08 16:25:08,108 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 29) WFLYJPA0010: Starting Persistence Unit (phase 2 of 2) Service 'hibernate4native_search_test.jar#jpa-search-test-pu' | |
2016-01-08 16:25:08,217 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 66) WFLYCLINF0002: Started client-mappings cache from ejb container | |
2016-01-08 16:25:08,282 INFO [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 29) HHH000400: Using dialect: org.hibernate.dialect.H2Dialect | |
2016-01-08 16:25:08,286 WARN [org.hibernate.dialect.H2Dialect] (ServerService Thread Pool -- 29) HHH000431: Unable to determine H2 database version, certain features may not work | |
2016-01-08 16:25:08,314 INFO [org.hibernate.envers.boot.internal.EnversServiceImpl] (ServerService Thread Pool -- 29) Envers integration enabled? : true | |
2016-01-08 16:25:08,583 INFO [org.hibernate.search.engine.Version] (ServerService Thread Pool -- 29) HSEARCH000034: Hibernate Search 5.5.1.Final | |
2016-01-08 16:25:08,610 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 29) MSC000001: Failed to start service jboss.persistenceunit."hibernate4native_search_test.jar#jpa-search-test-pu": org.jboss.msc.service.StartException in service jboss.persistenceunit."hibernate4native_search_test.jar#jpa-search-test-pu": javax.persistence.PersistenceException: [PersistenceUnit: jpa-search-test-pu] Unable to build Hibernate SessionFactory | |
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:172) | |
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:117) | |
at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:667) | |
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:182) | |
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) | |
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) | |
at java.lang.Thread.run(Thread.java:745) | |
at org.jboss.threads.JBossThread.run(JBossThread.java:320) | |
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: jpa-search-test-pu] Unable to build Hibernate SessionFactory | |
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.persistenceException(EntityManagerFactoryBuilderImpl.java:954) | |
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:882) | |
at org.jboss.as.jpa.hibernate5.TwoPhaseBootstrapImpl.build(TwoPhaseBootstrapImpl.java:44) | |
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:154) | |
... 7 more | |
Caused by: org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister | |
at org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:123) | |
at org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:77) | |
at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:346) | |
at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:444) | |
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:879) | |
... 9 more | |
Caused by: org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer] | |
at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:91) | |
at org.hibernate.tuple.entity.EntityTuplizerFactory.constructDefaultTuplizer(EntityTuplizerFactory.java:116) | |
at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:388) | |
at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:509) | |
at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:124) | |
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | |
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) | |
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) | |
at java.lang.reflect.Constructor.newInstance(Constructor.java:422) | |
at org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:96) | |
... 13 more | |
Caused by: java.lang.reflect.InvocationTargetException | |
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | |
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) | |
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) | |
at java.lang.reflect.Constructor.newInstance(Constructor.java:422) | |
at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:88) | |
... 22 more | |
Caused by: java.lang.RuntimeException: by java.lang.NoClassDefFoundError: javassist/util/proxy/ProxyObject | |
at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:515) | |
at javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:492) | |
at javassist.util.proxy.ProxyFactory.createClass1(ProxyFactory.java:428) | |
at javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:400) | |
at org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.postInstantiate(JavassistProxyFactory.java:72) | |
at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:177) | |
at org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:157) | |
at org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:63) | |
... 27 more | |
Caused by: javassist.CannotCompileException: by java.lang.NoClassDefFoundError: javassist/util/proxy/ProxyObject | |
at javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:170) | |
at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:507) | |
... 34 more | |
Caused by: java.lang.NoClassDefFoundError: javassist/util/proxy/ProxyObject | |
at java.lang.ClassLoader.defineClass1(Native Method) | |
at java.lang.ClassLoader.defineClass(ClassLoader.java:760) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:497) | |
at javassist.util.proxy.FactoryHelper.toClass2(FactoryHelper.java:182) | |
at javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:164) | |
... 35 more | |
Caused by: java.lang.ClassNotFoundException: javassist.util.proxy.ProxyObject from [Module "deployment.hibernate4native_search_test.jar:main" from Service Module Loader] | |
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:198) | |
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363) | |
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351) | |
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93) | |
... 43 more | |
2016-01-08 16:25:08,615 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "hibernate4native_search_test.jar")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.persistenceunit.\"hibernate4native_search_test.jar#jpa-search-test-pu\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"hibernate4native_search_test.jar#jpa-search-test-pu\": javax.persistence.PersistenceException: [PersistenceUnit: jpa-search-test-pu] Unable to build Hibernate SessionFactory | |
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: jpa-search-test-pu] Unable to build Hibernate SessionFactory | |
Caused by: org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister | |
Caused by: org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer] | |
Caused by: java.lang.reflect.InvocationTargetException | |
Caused by: java.lang.RuntimeException: by java.lang.NoClassDefFoundError: javassist/util/proxy/ProxyObject | |
Caused by: javassist.CannotCompileException: by java.lang.NoClassDefFoundError: javassist/util/proxy/ProxyObject | |
Caused by: java.lang.NoClassDefFoundError: javassist/util/proxy/ProxyObject | |
Caused by: java.lang.ClassNotFoundException: javassist.util.proxy.ProxyObject from [Module \"deployment.hibernate4native_search_test.jar:main\" from Service Module Loader]"}} | |
2016-01-08 16:25:08,616 ERROR [org.jboss.as.server] (management-handler-thread - 1) WFLYSRV0021: Deploy of deployment "hibernate4native_search_test.jar" was rolled back with the following failure message: | |
{"WFLYCTL0080: Failed services" => {"jboss.persistenceunit.\"hibernate4native_search_test.jar#jpa-search-test-pu\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"hibernate4native_search_test.jar#jpa-search-test-pu\": javax.persistence.PersistenceException: [PersistenceUnit: jpa-search-test-pu] Unable to build Hibernate SessionFactory | |
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: jpa-search-test-pu] Unable to build Hibernate SessionFactory | |
Caused by: org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister | |
Caused by: org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer] | |
Caused by: java.lang.reflect.InvocationTargetException | |
Caused by: java.lang.RuntimeException: by java.lang.NoClassDefFoundError: javassist/util/proxy/ProxyObject | |
Caused by: javassist.CannotCompileException: by java.lang.NoClassDefFoundError: javassist/util/proxy/ProxyObject | |
Caused by: java.lang.NoClassDefFoundError: javassist/util/proxy/ProxyObject | |
Caused by: java.lang.ClassNotFoundException: javassist.util.proxy.ProxyObject from [Module \"deployment.hibernate4native_search_test.jar:main\" from Service Module Loader]"}} | |
2016-01-08 16:25:08,620 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 66) WFLYJPA0011: Stopping Persistence Unit (phase 1 of 2) Service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@scottmarlow Thank you for sharing this gist.
I have bumped into this while looking for a solution for the problem described in my question in SO.
I have tried adding the
javassist-3.20.0-GA.jar
from my.m2
directory to my webapp'sWebContent\WEB-INF\lib
and then adding the same to build path. However, it didn't work for my case.Additionally, I have also added the same to
Web Deployment Assembly
, but that too didn't work.May I request you to please take a look into my question?