1 Reply Latest reply on Oct 10, 2011 7:02 AM by Adam Warski

    Envers JRebel catfight on JBoss AS 7

    Nicklas Karlsson Master

      Anyone tried JRebel on an AS7 with an Envers-enabled deployment. For some strange reason I get a deployment failure with

       

      Caused by: java.lang.LinkageError: loader (instance of  org/jboss/modules/ModuleClassLoader): attempted  duplicate class definition for name: "com/acme/envers/AuditRevisionEntity"

                at java.lang.ClassLoader.defineClass1(Native Method) [:1.7.0]

                at java.lang.ClassLoader.defineClass(ClassLoader.java:791) [:1.7.0]

                at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) [:1.7.0]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [:1.7.0]

                at java.lang.reflect.Method.invoke(Method.java:601) [:1.7.0]

                at com.zeroturnaround.javarebel.qh.defineRebelClass(JRebel:118) [:201109201828]

                at com.zeroturnaround.javarebel.ok.a(JRebel:634) [:201109201828]

                at com.zeroturnaround.javarebel.gT.a(JRebel:169) [:201109201828]

                at com.zeroturnaround.javarebel.mO.a(JRebel:168) [:201109201828]

                at com.zeroturnaround.javarebel.gT.loadReloadableClass(JRebel:209) [:201109201828]

                at com.zeroturnaround.javarebel.SDKIntegrationImpl.findReloadableClass(JRebel:220) [:201109201828]

                at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java)

                at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:76)

                at org.jboss.modules.Module.loadModuleClass(Module.java:590)

                at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:183)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310)

                at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103)

                at org.jboss.as.jpa.hibernate4.HibernateAnnotationScanner.getClassesInJar(HibernateAnnotationScanner.java:148)

                at org.hibernate.ejb.Ejb3Configuration.addScannedEntries(Ejb3Configuration.java:479)

                at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:846)

                at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:591)

                at org.hibernate.ejb.HibernatePersistence.__createContainerEntityManagerFactory(HibernatePersistence.java:72)

                at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java)

                at org.jboss.as.jpa.service.PersistenceUnitService.createContainerEntityManagerFactory(PersistenceUnitService.java:143)

                at org.jboss.as.jpa.service.PersistenceUnitService.start(PersistenceUnitService.java:77)

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

                ... 3 more

       

      for my custom AuditRevisionEntity whenever I try to enable JRebel. Is there anything in the integration that could be causing this because this is the only class that has troubles?