1 2 Previous Next 16 Replies Latest reply on Jan 27, 2016 7:37 AM by salvuzzo

    Wildfly 8.1 - Javassist Enhancement failed

    salvuzzo Novice

      Hello,

      Sorry for my English. I have one problem. I have a EJB and also a web application. This WebApplication have a client to connect to ejb.When the query into ejb the end, and result return my application, I get the following error:



      [org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer] (default task-13) HHH000142: Javassist Enhancement failed: mymodel.object: java.lang.RuntimeException: by java.lang.NoClassDefFoundError: org/hibernate/proxy/HibernateProxy

          at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:515) [javassist-3.12.1.GA.jar:3.12.0.GA]

          at javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:492) [javassist-3.12.1.GA.jar:3.12.0.GA]

          at javassist.util.proxy.ProxyFactory.createClass1(ProxyFactory.java:428) [javassist-3.12.1.GA.jar:3.12.0.GA]

          at javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:400) [javassist-3.12.1.GA.jar:3.12.0.GA]

       

      How can I solve this problem? I want to avoid putting the FetchMode, and I would like to avoid creating objects assembly. someone can help me?

        • 1. Re: Wildfly 8.1 - Javassist Enhancement failed
          Tomaz Cerar Master

          remove javaassit jar from your deployment

          • 2. Re: Wildfly 8.1 - Javassist Enhancement failed
            salvuzzo Novice

            Yes, in my pom (EJB) i put:

             

               <dependency> 
            <groupId>org.jboss.seam</groupId>
              <artifactId>jboss-seam</artifactId>
              <version>2.2.0.GA</version>
                 <exclusions> 
                      <exclusion> 
                           <groupId>javassist</groupId> 
                           <artifactId>javassist</artifactId> 
                      </exclusion> 
                 </exclusions> 
            </dependency> 

             

            but I always get the same error. Also exclude from jboss-deployment-structure.xml?

            • 3. Re: Wildfly 8.1 - Javassist Enhancement failed
              salvuzzo Novice

              I remove javaassit jar from my deployment.

               

                 <exclusions>
                <module name="org.javassist" />
                 </exclusions>

              but now i get another error:

               

              Caused by: java.lang.ClassNotFoundException: javassist.util.proxy.ProxyObject from [Module "deployment.user-dal.jar:main" from Service Module Loader]

                  at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.3.Final]

                  at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]

                  at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]

                  at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]

                  at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]

                  ... 45 more

              • 4. Re: Wildfly 8.1 - Javassist Enhancement failed
                Scott Marlow Master

                Can you post a complete exception call stack?

                 

                Is your application using JPA or the Hibernate API?

                • 5. Re: Wildfly 8.1 - Javassist Enhancement failed
                  salvuzzo Novice

                  Yes, i have an application web and this application web calling an EJB that use API Hibernate. My web application, called an EJB with a remote call. Leaving the file deployment with dependency "javassist" i get the error:



                  [org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer] (default task-17) HHH000142: Javassist Enhancement failed: com.model.User: java.lang.RuntimeException: by java.lang.NoClassDefFoundError: org/hibernate/proxy/HibernateProxy

                      at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:515) [javassist-3.18.1-GA.jar:3.18.0-GA]

                      at javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:492) [javassist-3.18.1-GA.jar:3.18.0-GA]

                      at javassist.util.proxy.ProxyFactory.createClass1(ProxyFactory.java:428) [javassist-3.18.1-GA.jar:3.18.0-GA]

                      at javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:400) [javassist-3.18.1-GA.jar:3.18.0-GA]

                      at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxy(JavassistLazyInitializer.java:102) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]

                      at org.hibernate.proxy.pojo.javassist.SerializableProxy.readResolve(SerializableProxy.java:76) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]

                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_45]

                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_45]

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_45]

                      at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_45]

                      at org.jboss.marshalling.reflect.SerializableClass.callReadResolve(SerializableClass.java:413) [jboss-marshalling-1.4.3.Final.jar:1.4.3.Final]

                      at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1270) [jboss-marshalling-river-1.4.3.Final.jar:1.4.3.Final]

                      at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:272) [jboss-marshalling-river-1.4.3.Final.jar:1.4.3.Final]

                      at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209) [jboss-marshalling-river-1.4.3.Final.jar:1.4.3.Final]

                      at org.jboss.marshalling.river.RiverUnmarshaller.readFields(RiverUnmarshaller.java:1712) [jboss-marshalling-river-1.4.3.Final.jar:1.4.3.Final]

                      at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1628) [jboss-marshalling-river-1.4.3.Final.jar:1.4.3.Final]

                      at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1269) [jboss-marshalling-river-1.4.3.Final.jar:1.4.3.Final]

                      at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:272) [jboss-marshalling-river-1.4.3.Final.jar:1.4.3.Final]

                      at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209) [jboss-marshalling-river-1.4.3.Final.jar:1.4.3.Final]

                      at org.jboss.marshalling.river.RiverUnmarshaller.readFields(RiverUnmarshaller.java:1712) [jboss-marshalling-river-1.4.3.Final.jar:1.4.3.Final]

                      at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1628) [jboss-marshalling-river-1.4.3.Final.jar:1.4.3.Final]

                      at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1269) [jboss-marshalling-river-1.4.3.Final.jar:1.4.3.Final]

                      at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:272) [jboss-marshalling-river-1.4.3.Final.jar:1.4.3.Final]

                      at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209) [jboss-marshalling-river-1.4.3.Final.jar:1.4.3.Final]

                      at org.jboss.marshalling.river.RiverUnmarshaller.doReadCollectionObject(RiverUnmarshaller.java:180) [jboss-marshalling-river-1.4.3.Final.jar:1.4.3.Final]

                      at org.jboss.marshalling.river.RiverUnmarshaller.readCollectionData(RiverUnmarshaller.java:773) [jboss-marshalling-river-1.4.3.Final.jar:1.4.3.Final]

                      at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:649) [jboss-marshalling-river-1.4.3.Final.jar:1.4.3.Final]

                      at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209) [jboss-marshalling-river-1.4.3.Final.jar:1.4.3.Final]

                      at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:41) [jboss-marshalling-1.4.3.Final.jar:1.4.3.Final]

                      at org.jboss.ejb.client.remoting.MethodInvocationResponseHandler$MethodInvocationResultProducer.getResult(MethodInvocationResponseHandler.java:103) [jboss-ejb-client-2.0.1.Final.jar:2.0.1.Final]

                      at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:276) [jboss-ejb-client-2.0.1.Final.jar:2.0.1.Final]

                      at org.jboss.ejb.client.EJBObjectInterceptor.handleInvocationResult(EJBObjectInterceptor.java:64) [jboss-ejb-client-2.0.1.Final.jar:2.0.1.Final]

                      at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:290) [jboss-ejb-client-2.0.1.Final.jar:2.0.1.Final]

                      at org.jboss.ejb.client.EJBHomeInterceptor.handleInvocationResult(EJBHomeInterceptor.java:88) [jboss-ejb-client-2.0.1.Final.jar:2.0.1.Final]

                      at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:290) [jboss-ejb-client-2.0.1.Final.jar:2.0.1.Final]

                      at org.jboss.ejb.client.TransactionInterceptor.handleInvocationResult(TransactionInterceptor.java:46) [jboss-ejb-client-2.0.1.Final.jar:2.0.1.Final]

                      at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:290) [jboss-ejb-client-2.0.1.Final.jar:2.0.1.Final]

                      at org.jboss.ejb.client.ReceiverInterceptor.handleInvocationResult(ReceiverInterceptor.java:129) [jboss-ejb-client-2.0.1.Final.jar:2.0.1.Final]

                      at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:265) [jboss-ejb-client-2.0.1.Final.jar:2.0.1.Final]

                      at org.jboss.ejb.client.EJBClientInvocationContext.awaitResponse(EJBClientInvocationContext.java:453) [jboss-ejb-client-2.0.1.Final.jar:2.0.1.Final]

                      at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:202) [jboss-ejb-client-2.0.1.Final.jar:2.0.1.Final]

                      at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:181) [jboss-ejb-client-2.0.1.Final.jar:2.0.1.Final]

                      at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:144) [jboss-ejb-client-2.0.1.Final.jar:2.0.1.Final]

                      at com.sun.proxy.$Proxy40.findById(Unknown Source)

                      at com.test.Delegate.findById(Delegate.java:101) [classes:]

                      at com.test.util.UtilsAction.isLogged(UtilsAction.java) [classes:]

                      at com.test..portal.actions.MainAction.execute(MainAction.java:92) [classes:]

                      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419) [struts-1.2.8.jar:1.2.8]

                      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224) [struts-1.2.8.jar:1.2.8]

                      at com.test..portal.action.ControllerRequestProcessor.process(ControllerRequestProcessor.java:59) [classes:]

                      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) [struts-1.2.8.jar:1.2.8]

                      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) [struts-1.2.8.jar:1.2.8]

                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]

                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]

                      at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:82) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:229) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.servlet.handlers.ServletInitialHandler.dispatchToPath(ServletInitialHandler.java:172) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.servlet.spec.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:159) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

                      at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1062) [struts-1.2.8.jar:1.2.8]

                      at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386) [struts-1.2.8.jar:1.2.8]

                      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229) [struts-1.2.8.jar:1.2.8]

                      at com.test.portal.action.ControllerRequestProcessor.process(ControllerRequestProcessor.java:59) [classes:]

                      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) [struts-1.2.8.jar:1.2.8]

                      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) [struts-1.2.8.jar:1.2.8]

                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]

                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]

                      at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:130) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

                      at com.test.portal.filters.XSSPreventionFilter.doFilter(XSSPreventionFilter.java:158) [classes:]

                      at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

                      at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)

                      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

                      at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

                      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.server.Connectors.executeRootHandler(Connectors.java:177) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:727) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

                      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_45]

                      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_45]

                      at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_45]

                  Caused by: javassist.CannotCompileException: by java.lang.NoClassDefFoundError: org/hibernate/proxy/HibernateProxy

                      at javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:170) [javassist-3.18.1-GA.jar:3.18.0-GA]

                      at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:507) [javassist-3.18.1-GA.jar:3.18.0-GA]

                      ... 104 more

                  Caused by: java.lang.NoClassDefFoundError: org/hibernate/proxy/HibernateProxy

                      at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.8.0_45]

                      at java.lang.ClassLoader.defineClass(ClassLoader.java:760) [rt.jar:1.8.0_45]

                      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) [:1.8.0_45]

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_45]

                      at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_45]

                      at javassist.util.proxy.FactoryHelper.toClass2(FactoryHelper.java:182) [javassist-3.18.1-GA.jar:3.18.0-GA]

                      at javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:164) [javassist-3.18.1-GA.jar:3.18.0-GA]

                      ... 105 more

                  Caused by: java.lang.ClassNotFoundException: org.hibernate.proxy.HibernateProxy from [Module "my.ejb:main" from local module loader @6737fd8f (finder: local module finder @72b6cbcc (roots: C:\wildfly-8.1.0.Final\modules,C:\wildfly-8.1.0.Final\modules\system\layers\base))]

                      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.3.Final]

                      at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]

                      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]

                      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]

                      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]

                      ... 112 more

                   

                  02:02:42,354 WARN  [org.apache.struts.action.RequestProcessor] (default task-17) Unhandled Exception thrown: class org.hibernate.HibernateException

                  02:02:42,356 ERROR [io.undertow.request] (default task-17) UT005023: Exception handling request to /portal/index.do: javax.servlet.ServletException: org.hibernate.HibernateException: HHH000142: Javassist Enhancement failed: com.model.User

                      at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:523) [struts-1.2.8.jar:1.2.8]

                      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421) [struts-1.2.8.jar:1.2.8]

                      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224) [struts-1.2.8.jar:1.2.8]

                      at com.test.portal.action.ControllerRequestProcessor.process(ControllerRequestProcessor.java:59) [classes:]

                      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) [struts-1.2.8.jar:1.2.8]

                      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) [struts-1.2.8.jar:1.2.8]

                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]

                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]

                      at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:82) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:229) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.servlet.handlers.ServletInitialHandler.dispatchToPath(ServletInitialHandler.java:172) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.servlet.spec.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:159) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

                      at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1062) [struts-1.2.8.jar:1.2.8]

                      at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386) [struts-1.2.8.jar:1.2.8]

                      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229) [struts-1.2.8.jar:1.2.8]

                      at com.test..portal.action.ControllerRequestProcessor.process(ControllerRequestProcessor.java:59) [classes:]

                      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) [struts-1.2.8.jar:1.2.8]

                      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) [struts-1.2.8.jar:1.2.8]

                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]

                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]

                      at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

                      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:130) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

                  • 6. Re: Wildfly 8.1 - Javassist Enhancement failed
                    salvuzzo Novice

                    The query is made on an object person. This Object Person have into model hibernate, @ManyToOne(fetch = FetchType.LAZY) . The response of the method,without still arriving to the web application, i get this error.

                    • 7. Re: Wildfly 8.1 - Javassist Enhancement failed
                      Scott Marlow Master

                      I think that you need to add an application dependency on the Javassist static module in WildFly.  Does your application have a MANIFEST.MF?  Perhaps you have something like the following already in your MANIFEST.MF:

                      Dependencies: org.hibernate

                       

                      You probably need to add the org.javassist static module to your MANIFEST.MF file.  See example below:

                       

                      Dependencies: org.hibernate, org.javassist

                       

                      Your other changes to avoid adding the Javassist classes directly into the application are correct.

                       

                      Documentation link that describes the "Dependencies" in MANIFEST.MF is here.

                       

                      Scott

                      • 8. Re: Wildfly 8.1 - Javassist Enhancement failed
                        salvuzzo Novice

                        Yes, into my jboss-deployment-structure.xml i have dependencies with module "org.hibernate". I should remove org.javassist ? My deployment my ejb is:


                        <jboss-deployment-structure>

                            <deployment>

                                <dependencies>

                                    <module name="org.hibernate" />

                                </dependencies>

                                <exclusions>

                                    <module name="org.javassist" />

                                </exclusions>

                            </deployment>

                        </jboss-deployment-structure>

                         

                        but not having worked the JavassistLazyInitializer (my query go without FetchMode.JOIN)

                         

                        at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.8.0_45]

                            at java.lang.ClassLoader.defineClass(ClassLoader.java:760) [rt.jar:1.8.0_45]

                            at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source) [:1.8.0_45]

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_45]

                            at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_45]

                            at javassist.util.proxy.FactoryHelper.toClass2(FactoryHelper.java:182) [javassist-3.18.1-GA.jar:3.18.0-GA]

                            at javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:164) [javassist-3.18.1-GA.jar:3.18.0-GA]

                            ... 38 more

                        Caused by: java.lang.ClassNotFoundException: javassist.util.proxy.ProxyObject from [Module "deployment.ejb-test-dal.jar:main" from Service Module Loader]

                            at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.3.Final]

                            at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]

                            at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]

                            at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]

                            at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]

                            ... 45 more

                         

                        10:55:35,105 ERROR [org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer] (ServerService Thread Pool -- 187) HHH000142: Javassist Enhancement failed: com.test.dal.model.model.Person: java.lang.RuntimeException: by java.lang.NoClassDefFoundError: javassist/util/proxy/ProxyObject

                            at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:515) [javassist-3.18.1-GA.jar:3.18.0-GA]

                            at javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:492) [javassist-3.18.1-GA.jar:3.18.0-GA]

                            at javassist.util.proxy.ProxyFactory.createClass1(ProxyFactory.java:428) [javassist-3.18.1-GA.jar:3.18.0-GA]

                            at javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:400) [javassist-3.18.1-GA.jar:3.18.0-GA]

                            at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxyFactory(JavassistLazyInitializer.java:162) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]

                            at org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.postInstantiate(JavassistProxyFactory.java:67) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]

                            at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:224) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]

                            at org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:212) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]

                            at org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:80) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]

                            at sun.reflect.GeneratedConstructorAccessor26.newInstance(Unknown Source) [:1.8.0_45]

                            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.8.0_45]

                            at java.lang.reflect.Constructor.newInstance(Constructor.java:422) [rt.jar:1.8.0_45]

                            at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:135) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]

                            at org.hibernate.tuple.entity.EntityTuplizerFactory.constructDefaultTuplizer(EntityTuplizerFactory.java:188) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]

                            at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:403) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]

                            at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:520) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]

                            at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:148) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]

                            at sun.reflect.GeneratedConstructorAccessor25.newInstance(Unknown Source) [:1.8.0_45]

                            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.8.0_45]

                            at java.lang.reflect.Constructor.newInstance(Constructor.java:422) [rt.jar:1.8.0_45]

                            at org.hibernate.persister.internal.PersisterFactoryImpl.create(PersisterFactoryImpl.java:163) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]

                            at org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:135) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]

                            at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:401) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]

                            at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1857) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]

                            at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:850) [hibernate-entitymanager-4.3.5.Final.jar:4.3.5.Final]

                            at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:843) [hibernate-entitymanager-4.3.5.Final.jar:4.3.5.Final]

                            at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.withTccl(ClassLoaderServiceImpl.java:397) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]

                            at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:842) [hibernate-entitymanager-4.3.5.Final.jar:4.3.5.Final]

                            at org.jboss.as.jpa.hibernate4.TwoPhaseBootstrapImpl.build(TwoPhaseBootstrapImpl.java:44) [jipijapa-hibernate4-3-1.0.1.Final.jar:]

                            at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:154) [wildfly-jpa-8.1.0.Final.jar:8.1.0.Final]

                            at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:117) [wildfly-jpa-8.1.0.Final.jar:8.1.0.Final]

                            at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.8.0_45]

                            at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:474) [wildfly-security-manager-1.0.0.Final.jar:1.0.0.Final]

                            at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:182) [wildfly-jpa-8.1.0.Final.jar:8.1.0.Final]

                            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_45]

                            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_45]

                            at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_45]

                            at org.jboss.threads.JBossThread.run(JBossThread.java:122)

                        Caused by: javassist.CannotCompileException: by java.lang.NoClassDefFoundError: javassist/util/proxy/ProxyObject

                            at javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:170) [javassist-3.18.1-GA.jar:3.18.0-GA]

                            at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:507) [javassist-3.18.1-GA.jar:3.18.0-GA]

                            ... 37 more

                        Caused by: java.lang.NoClassDefFoundError: javassist/util/proxy/ProxyObject

                            at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.8.0_45]

                            at java.lang.ClassLoader.defineClass(ClassLoader.java:760) [rt.jar:1.8.0_45]

                            at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source) [:1.8.0_45]

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_45]

                            at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_45]

                            at javassist.util.proxy.FactoryHelper.toClass2(FactoryHelper.java:182) [javassist-3.18.1-GA.jar:3.18.0-GA]

                            at javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:164) [javassist-3.18.1-GA.jar:3.18.0-GA]

                            ... 38 more

                        Caused by: java.lang.ClassNotFoundException: javassist.util.proxy.ProxyObject from [Module "deployment.ejb-test-dal.jar:main" from Service Module Loader]

                            at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.3.Final]

                            at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]

                            at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]

                            at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]

                            at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]

                            ... 45 more

                         

                        10:55:35,114 WARN  [org.hibernate.tuple.entity.PojoEntityTuplizer] (ServerService Thread Pool -- 187) HHH000305: Could not create proxy factory for:com.test.dal.model.model.Person: org.hibernate.HibernateException: HHH000142: Javassist Enhancement failed: com.test.dal.model.model.Person

                            at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxyFactory(JavassistLazyInitializer.java:166) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]

                            at org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.postInstantiate(JavassistProxyFactory.java:67) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]

                            at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:224) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]

                            at org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:212) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]

                            at org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:80) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]

                            at sun.reflect.GeneratedConstructorAccessor26.newInstance(Unknown Source) [:1.8.0_45]

                            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.8.0_45]

                            at java.lang.reflect.Constructor.newInstance(Constructor.java:422) [rt.jar:1.8.0_45]

                            at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:135) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]

                            at org.hibernate.tuple.entity.EntityTuplizerFactory.constructDefaultTuplizer(EntityTuplizerFactory.java:188) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]

                            at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:403) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]

                            at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:520) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]

                            at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:148) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]

                            at sun.reflect.GeneratedConstructorAccessor25.newInstance(Unknown Source) [:1.8.0_45]

                            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.8.0_45]

                            at java.lang.reflect.Constructor.newInstance(Constructor.java:422) [rt.jar:1.8.0_45]

                            at org.hibernate.persister.internal.PersisterFactoryImpl.create(PersisterFactoryImpl.java:163) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]

                            at org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:135) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]

                            at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:401) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]

                            at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1857) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]

                            at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:850) [hibernate-entitymanager-4.3.5.Final.jar:4.3.5.Final]

                            at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:843) [hibernate-entitymanager-4.3.5.Final.jar:4.3.5.Final]

                            at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.withTccl(ClassLoaderServiceImpl.java:397) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]

                            at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:842) [hibernate-entitymanager-4.3.5.Final.jar:4.3.5.Final]

                            at org.jboss.as.jpa.hibernate4.TwoPhaseBootstrapImpl.build(TwoPhaseBootstrapImpl.java:44) [jipijapa-hibernate4-3-1.0.1.Final.jar:]

                            at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:154) [wildfly-jpa-8.1.0.Final.jar:8.1.0.Final]

                            at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:117) [wildfly-jpa-8.1.0.Final.jar:8.1.0.Final]

                            at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.8.0_45]

                            at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:474) [wildfly-security-manager-1.0.0.Final.jar:1.0.0.Final]

                            at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:182) [wildfly-jpa-8.1.0.Final.jar:8.1.0.Final]

                            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_45]

                            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_45]

                            at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_45]

                            at org.jboss.threads.JBossThread.run(JBossThread.java:122)

                        Caused by: java.lang.RuntimeException: by java.lang.NoClassDefFoundError: javassist/util/proxy/ProxyObject

                            at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:515) [javassist-3.18.1-GA.jar:3.18.0-GA]

                            at javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:492) [javassist-3.18.1-GA.jar:3.18.0-GA]

                            at javassist.util.proxy.ProxyFactory.createClass1(ProxyFactory.java:428) [javassist-3.18.1-GA.jar:3.18.0-GA]

                            at javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:400) [javassist-3.18.1-GA.jar:3.18.0-GA]

                            at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxyFactory(JavassistLazyInitializer.java:162) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]

                            ... 33 more

                         

                        10:55:35,445 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS018559: Deployed "ejb-test-dal.jar" (runtime-name : "ejb-test-dal.jar")

                        • 9. Re: Wildfly 8.1 - Javassist Enhancement failed
                          Scott Marlow Master

                          Your application needs a dependency on the "org.hibernate" module and the "org.javassist" module.  Both of which are required for Hibernate applications.  You can try the below change:

                           

                           

                          <jboss-deployment-structure>

                              <deployment>

                                  <dependencies>

                                      <module name="org.hibernate" />

                                      <module name="org.javassist" />

                                  </dependencies>

                              </deployment>

                          </jboss-deployment-structure>

                          • 10. Re: Wildfly 8.1 - Javassist Enhancement failed
                            salvuzzo Novice

                            still does not work now my application web into : jboss-deployment-structure.xml have

                             

                            <jboss-deployment-structure>

                                <deployment>

                                    <dependencies>

                                        <module name="javax.servlet.jstl.api" />

                                        <module name="org.hibernate" />

                                         <module name="org.javassist" />

                                        <module name="org.apache.commons.logging" />

                                    </dependencies>

                                </deployment>

                            </jboss-deployment-structure>

                             

                            and my EJB (Jar) into jboss-deployment-structure.xml have have:

                             

                            <jboss-deployment-structure>

                                <deployment>

                                    <dependencies>

                                        <module name="org.hibernate" />

                                        <module name="org.javassist" />

                                    </dependencies>

                                </deployment>

                            </jboss-deployment-structure>

                            • 11. Re: Wildfly 8.1 - Javassist Enhancement failed
                              Scott Marlow Master

                              Have you tried adding the dependencies via your MANIFEST-MF?  Not sure if that will make help. 

                               

                              Can you also check that your not including the same dependencies in your application (e.g. "jar tf yourapp.war" will show the contents).

                              • 12. Re: Wildfly 8.1 - Javassist Enhancement failed
                                salvuzzo Novice

                                Yes.. my Manifest is:

                                Manifest-Version: 1.0

                                Archiver-Version: Plexus Archiver

                                Built-By: DIamanteNero

                                Created-By: Apache Maven 3.1.1

                                Build-Jdk: 1.8.0_45

                                Dependencies: org.javassist, org.apache.velocity

                                • 13. Re: Wildfly 8.1 - Javassist Enhancement failed
                                  Scott Marlow Master

                                  Can you remove Javassist from the jboss-deployment-structure (doesn't need to be in the manifest + jboss-deployment-structure). 

                                   

                                  Please show us the contents of your application.war,  You can use the "jar tf yourApp.war" command to get the contents. 

                                  • 14. Re: Wildfly 8.1 - Javassist Enhancement failed
                                    salvuzzo Novice

                                    I do not know what it means that command, however I do not understand because putting "@Fetch(FetchMode.JOIN)"  in @ManyToOne works. And 'as if he needed the transaction, even if I do not make use of the object

                                    1 2 Previous Next