duplicate class definition for name: org/jboss/weldx/persistence/EntityManager
ynusis Mar 22, 2012 10:19 AMHi,
I get some strange exception when I Inject the EntityManager:
@Singleton
@Startup
public class TestJMS {
rivate Queue test;
@Inject
private EntityManager em;
@PostConstruct
public final void setUp() {
System.out.println(this.em.isOpen());
}
}
public class Resources {
@SuppressWarnings("unused")
@Produces
@PersistenceContext(unitName = "pool")
private EntityManager em;
@Produces
public Logger produceLog(InjectionPoint injectionPoint) {
return Logger.getLogger(injectionPoint.getMember().getDeclaringClass().getName());
}
}
The Exception looks like this:
14:00:30,268 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC00001: Failed to start service jboss.deployment.subunit."server-ear.ear"."server-ejb-1.0.0-SNAPSHOT.jar".component.RandomRawPriceImporterService.START: org.jboss.msc.service.StartException in service jboss.deployment.subunit."server-ear.ear"."server-ejb-1.0.0-SNAPSHOT.jar".component.RandomRawPriceImporterService.START: Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_03]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_03]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_03]
Caused by: java.lang.IllegalStateException: JBAS011048: Failed to construct component instance
at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:163)
at org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:85)
at org.jboss.as.ejb3.component.singleton.SingletonComponent.getComponentInstance(SingletonComponent.java:116)
at org.jboss.as.ejb3.component.singleton.SingletonComponent.start(SingletonComponent.java:130)
at org.jboss.as.ee.component.ComponentStartService.start(ComponentStartService.java:44)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
... 3 more
Caused by: javax.ejb.EJBException: org.jboss.weld.exceptions.WeldException: by java.lang.LinkageError: loader (instance of org/jboss/modules/ModuleClassLoader): attempted duplicate class definition for name: "org/jboss/weldx/persistence/EntityManager$-1701224127$Proxy$_$$_Weld$Proxy$"
at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:166)
at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:230)
at org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:333)
at org.jboss.as.ejb3.tx.SingletonLifecycleCMTTxInterceptor.processInvocation(SingletonLifecycleCMTTxInterceptor.java:56)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:161)
... 9 more
Caused by: org.jboss.weld.exceptions.WeldException: by java.lang.LinkageError: loader (instance of org/jboss/modules/ModuleClassLoader): attempted duplicate class definition for name: "org/jboss/weldx/persistence/EntityManager$-1701224127$Proxy$_$$_Weld$Proxy$"
at org.jboss.weld.bean.proxy.ProxyFactory.getProxyClass(ProxyFactory.java:275)
at org.jboss.weld.bean.proxy.ProxyFactory.create(ProxyFactory.java:235)
at org.jboss.weld.bean.builtin.ee.EEResourceProducerField.create(EEResourceProducerField.java:137)
at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:61)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:616)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:681)
at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:118)
at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:703)
at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:712)
at org.jboss.weld.bean.SessionBean$1$1.proceed(SessionBean.java:176)
at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:48)
at org.jboss.weld.bean.SessionBean$1.inject(SessionBean.java:173)
at org.jboss.as.weld.injection.WeldEEInjection.inject(WeldEEInjection.java:78)
at org.jboss.as.weld.injection.WeldInjectionInterceptor.processInvocation(WeldInjectionInterceptor.java:60)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ee.component.ManagedReferenceInterceptorFactory$ManagedReferenceInterceptor.processInvocation(ManagedReferenceInterceptorFactory.java:95)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:228)
... 18 more
Caused by: javassist.CannotCompileException: by java.lang.LinkageError: loader (instance of org/jboss/modules/ModuleClassLoader): attempted duplicate class definition for name: "org/jboss/weldx/persistence/EntityManager$-1701224127$Proxy$_$$_Weld$Proxy$"
at org.jboss.weld.util.bytecode.ClassFileUtils.toClass(ClassFileUtils.java:99)
at org.jboss.weld.bean.proxy.ProxyFactory.createProxyClass(ProxyFactory.java:377)
at org.jboss.weld.bean.proxy.ProxyFactory.getProxyClass(ProxyFactory.java:273)
... 39 more
Caused by: java.lang.LinkageError: loader (instance of org/jboss/modules/ModuleClassLoader): attempted duplicate class definition for name: "org/jboss/weldx/persistence/EntityManager$-1701224127$Proxy$_$$_Weld$Proxy$"
at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_03]
at java.lang.ClassLoader.defineClass(ClassLoader.java:791) [rt.jar:1.7.0_03]
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) [:1.7.0_03]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_03]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_03]
at org.jboss.weld.util.bytecode.ClassFileUtils.toClass2(ClassFileUtils.java:118)
at org.jboss.weld.util.bytecode.ClassFileUtils.toClass(ClassFileUtils.java:95)
... 41 more
14:00:30,268 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.subunit."server-ear.ear"."server-ejb-1.0.0-SNAPSHOT.jar".component.TestJMS.START: org.jboss.msc.service.StartException in service jboss.deployment.subunit."server-ear.ear"."server-ejb-1.0.0-SNAPSHOT.jar".component.TestJMS.START: Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_03]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_03]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_03]
Caused by: java.lang.IllegalStateException: JBAS011048: Failed to construct component instance
at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:163)
at org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:85)
at org.jboss.as.ejb3.component.singleton.SingletonComponent.getComponentInstance(SingletonComponent.java:116)
at org.jboss.as.ejb3.component.singleton.SingletonComponent.start(SingletonComponent.java:130)
at org.jboss.as.ee.component.ComponentStartService.start(ComponentStartService.java:44)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
... 3 more
Caused by: javax.ejb.EJBException: org.jboss.weld.exceptions.WeldException: by java.lang.LinkageError: loader (instance of org/jboss/modules/ModuleClassLoader): attempted duplicate class definition for name: "org/jboss/weldx/persistence/EntityManager$-1701224127$Proxy$_$$_Weld$Proxy$"
at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:166)
at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:230)
at org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:333)
at org.jboss.as.ejb3.tx.SingletonLifecycleCMTTxInterceptor.processInvocation(SingletonLifecycleCMTTxInterceptor.java:56)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:161)
... 9 more
Caused by: org.jboss.weld.exceptions.WeldException: by java.lang.LinkageError: loader (instance of org/jboss/modules/ModuleClassLoader): attempted duplicate class definition for name: "org/jboss/weldx/persistence/EntityManager$-1701224127$Proxy$_$$_Weld$Proxy$"
at org.jboss.weld.bean.proxy.ProxyFactory.getProxyClass(ProxyFactory.java:275)
at org.jboss.weld.bean.proxy.ProxyFactory.create(ProxyFactory.java:235)
at org.jboss.weld.bean.builtin.ee.EEResourceProducerField.create(EEResourceProducerField.java:137)
at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:61)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:616)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:681)
at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:118)
at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:703)
at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:712)
at org.jboss.weld.bean.SessionBean$1$1.proceed(SessionBean.java:176)
at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:48)
at org.jboss.weld.bean.SessionBean$1.inject(SessionBean.java:173)
at org.jboss.as.weld.injection.WeldEEInjection.inject(WeldEEInjection.java:78)
at org.jboss.as.weld.injection.WeldInjectionInterceptor.processInvocation(WeldInjectionInterceptor.java:60)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
at org.jboss.as.ee.component.ManagedReferenceFieldInjectionInterceptorFactory$ManagedReferenceFieldInjectionInterceptor.processInvocation(ManagedReferenceFieldInjectionInterceptorFactory.java:112)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
at org.jboss.as.ee.component.ManagedReferenceFieldInjectionInterceptorFactory$ManagedReferenceFieldInjectionInterceptor.processInvocation(ManagedReferenceFieldInjectionInterceptorFactory.java:112)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
at org.jboss.as.ee.component.ManagedReferenceInterceptorFactory$ManagedReferenceInterceptor.processInvocation(ManagedReferenceInterceptorFactory.java:95)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:228)
... 18 more
Caused by: javassist.CannotCompileException: by java.lang.LinkageError: loader (instance of org/jboss/modules/ModuleClassLoader): attempted duplicate class definition for name: "org/jboss/weldx/persistence/EntityManager$-1701224127$Proxy$_$$_Weld$Proxy$"
at org.jboss.weld.util.bytecode.ClassFileUtils.toClass(ClassFileUtils.java:99)
at org.jboss.weld.bean.proxy.ProxyFactory.createProxyClass(ProxyFactory.java:377)
at org.jboss.weld.bean.proxy.ProxyFactory.getProxyClass(ProxyFactory.java:273)
... 45 more
Caused by: java.lang.LinkageError: loader (instance of org/jboss/modules/ModuleClassLoader): attempted duplicate class definition for name: "org/jboss/weldx/persistence/EntityManager$-1701224127$Proxy$_$$_Weld$Proxy$"
at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_03]
at java.lang.ClassLoader.defineClass(ClassLoader.java:791) [rt.jar:1.7.0_03]
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) [:1.7.0_03]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_03]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_03]
at org.jboss.weld.util.bytecode.ClassFileUtils.toClass2(ClassFileUtils.java:118)
at org.jboss.weld.util.bytecode.ClassFileUtils.toClass(ClassFileUtils.java:95)
... 47 more
14:00:30,268 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.subunit."server-ear.ear"."server-ejb-1.0.0-SNAPSHOT.jar".component.TccCacheBean.START: org.jboss.msc.service.StartException in service jboss.deployment.subunit."server-ear.ear"."server-ejb-1.0.0-SNAPSHOT.jar".component.TccCacheBean.START: Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_03]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_03]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_03]
Caused by: java.lang.IllegalStateException: JBAS011048: Failed to construct component instance
at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:163)
at org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:85)
at org.jboss.as.ejb3.component.singleton.SingletonComponent.getComponentInstance(SingletonComponent.java:116)
at org.jboss.as.ejb3.component.singleton.SingletonComponent.start(SingletonComponent.java:130)
at org.jboss.as.ee.component.ComponentStartService.start(ComponentStartService.java:44)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
... 3 more
Caused by: javax.ejb.EJBException: org.jboss.weld.exceptions.WeldException: by java.lang.LinkageError: loader (instance of org/jboss/modules/ModuleClassLoader): attempted duplicate class definition for name: "org/jboss/weldx/persistence/EntityManager$-1701224127$Proxy$_$$_Weld$Proxy$"
at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:166)
at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:230)
at org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:333)
at org.jboss.as.ejb3.tx.SingletonLifecycleCMTTxInterceptor.processInvocation(SingletonLifecycleCMTTxInterceptor.java:56)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:161)
... 9 more
Caused by: org.jboss.weld.exceptions.WeldException: by java.lang.LinkageError: loader (instance of org/jboss/modules/ModuleClassLoader): attempted duplicate class definition for name: "org/jboss/weldx/persistence/EntityManager$-1701224127$Proxy$_$$_Weld$Proxy$"
at org.jboss.weld.bean.proxy.ProxyFactory.getProxyClass(ProxyFactory.java:275)
at org.jboss.weld.bean.proxy.ProxyFactory.create(ProxyFactory.java:235)
at org.jboss.weld.bean.builtin.ee.EEResourceProducerField.create(EEResourceProducerField.java:137)
at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:61)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:616)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:681)
at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:118)
at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:703)
at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:712)
at org.jboss.weld.bean.SessionBean$1$1.proceed(SessionBean.java:176)
at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:48)
at org.jboss.weld.bean.SessionBean$1.inject(SessionBean.java:173)
at org.jboss.as.weld.injection.WeldEEInjection.inject(WeldEEInjection.java:78)
at org.jboss.as.weld.injection.WeldInjectionInterceptor.processInvocation(WeldInjectionInterceptor.java:60)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
at org.jboss.as.ee.component.ManagedReferenceInterceptorFactory$ManagedReferenceInterceptor.processInvocation(ManagedReferenceInterceptorFactory.java:95)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:228)
... 18 more
Caused by: javassist.CannotCompileException: by java.lang.LinkageError: loader (instance of org/jboss/modules/ModuleClassLoader): attempted duplicate class definition for name: "org/jboss/weldx/persistence/EntityManager$-1701224127$Proxy$_$$_Weld$Proxy$"
at org.jboss.weld.util.bytecode.ClassFileUtils.toClass(ClassFileUtils.java:99)
at org.jboss.weld.bean.proxy.ProxyFactory.createProxyClass(ProxyFactory.java:377)
at org.jboss.weld.bean.proxy.ProxyFactory.getProxyClass(ProxyFactory.java:273)
... 39 more
Caused by: java.lang.LinkageError: loader (instance of org/jboss/modules/ModuleClassLoader): attempted duplicate class definition for name: "org/jboss/weldx/persistence/EntityManager$-1701224127$Proxy$_$$_Weld$Proxy$"
at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_03]
at java.lang.ClassLoader.defineClass(ClassLoader.java:791) [rt.jar:1.7.0_03]
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) [:1.7.0_03]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_03]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_03]
at org.jboss.weld.util.bytecode.ClassFileUtils.toClass2(ClassFileUtils.java:118)
at org.jboss.weld.util.bytecode.ClassFileUtils.toClass(ClassFileUtils.java:95)
... 41 more
14:00:30,331 INFO [org.jboss.as] (MSC service thread 1-1) JBAS015951: Admin console listening on http://127.0.0.1:10190
14:00:30,331 ERROR [org.jboss.as] (MSC service thread 1-1) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 7258ms - Started 604 of 691 services (3 services failed or missing dependencies, 80 services are passive or on-demand)
14:00:30,346 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "server-ear.ear" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.subunit.\"server-ear.ear\".\"server-ejb-1.0.0-SNAPSHOT.jar\".component.TestJMS.START" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"server-ear.ear\".\"server-ejb-1.0.0-SNAPSHOT.jar\".component.TestJMS.START: Failed to start service","jboss.deployment.subunit.\"server-ear.ear\".\"server-ejb-1.0.0-SNAPSHOT.jar\".component.TccCacheBean.START" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"server-ear.ear\".\"server-ejb-1.0.0-SNAPSHOT.jar\".component.TccCacheBean.START: Failed to start service","jboss.deployment.subunit.\"server-ear.ear\".\"server-ejb-1.0.0-SNAPSHOT.jar\".component.RandomRawPriceImporterService.START" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"server-ear.ear\".\"server-ejb-1.0.0-SNAPSHOT.jar\".component.RandomRawPriceImporterService.START: Failed to start service"}}
14:00:30,393 INFO [org.jboss.weld.deployer] (MSC service thread 1-2) JBAS016009: Stopping weld service for deployment server-ear.ear
14:00:30,393 INFO [org.jboss.as.jpa] (MSC service thread 1-5) JBAS011403: Stopping Persistence Unit Service 'server-ear.ear/server-ejb-1.0.0-SNAPSHOT.jar#pool'
14:00:30,409 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015877: Stopped deployment server-ejb-1.0.0-SNAPSHOT.jar in 64ms
14:00:30,424 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015877: Stopped deployment server-ear.ear in 82ms
14:00:30,424 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.subunit."server-ear.ear"."server-ejb-1.0.0-SNAPSHOT.jar".component.TestJMS.START: org.jboss.msc.service.StartException in service jboss.deployment.subunit."server-ear.ear"."server-ejb-1.0.0-SNAPSHOT.jar".component.TestJMS.START: Failed to start service
service jboss.deployment.subunit."server-ear.ear"."server-ejb-1.0.0-SNAPSHOT.jar".component.RandomRawPriceImporterService.START: org.jboss.msc.service.StartException in service jboss.deployment.subunit."server-ear.ear"."server-ejb-1.0.0-SNAPSHOT.jar".component.RandomRawPriceImporterService.START: Failed to start service
service jboss.deployment.subunit."server-ear.ear"."server-ejb-1.0.0-SNAPSHOT.jar".component.TccCacheBean.START: org.jboss.msc.service.StartException in service jboss.deployment.subunit."server-ear.ear"."server-ejb-1.0.0-SNAPSHOT.jar".component.TccCacheBean.START: Failed to start service
14:00:30,424 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.subunit.\"server-ear.ear\".\"server-ejb-1.0.0-SNAPSHOT.jar\".component.TestJMS.START" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"server-ear.ear\".\"server-ejb-1.0.0-SNAPSHOT.jar\".component.TestJMS.START: Failed to start service","jboss.deployment.subunit.\"server-ear.ear\".\"server-ejb-1.0.0-SNAPSHOT.jar\".component.TccCacheBean.START" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"server-ear.ear\".\"server-ejb-1.0.0-SNAPSHOT.jar\".component.TccCacheBean.START: Failed to start service","jboss.deployment.subunit.\"server-ear.ear\".\"server-ejb-1.0.0-SNAPSHOT.jar\".component.RandomRawPriceImporterService.START" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"server-ear.ear\".\"server-ejb-1.0.0-SNAPSHOT.jar\".component.RandomRawPriceImporterService.START: Failed to start service"}}}}
Any ideas?