java.lang.LinkageError: Failed to link SampleMdb (Module "deployment.mdb-1.0-SNAPSHOT.jar:main" from Service Module Loader)

JBoss Issue Tracker | Tom Ross | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Cannot deploy a MDB that bounds to genericjms RA. The following warning is logged in the server log file: {noformat} 2015-05-17 18:55:11,370 WARN [org.jboss.modules] (MSC service thread 1-4) Failed to define class org.jboss.tibco.mdb.OutQueueSimpleMDB in Module "deployment.jboss-as-jms-tibco-int-ear-1.0.ear.jboss-as-jms-tibco-int-mdb-1.0.jar:main" from Service Module Loader: java.lang.LinkageError: Failed to link org/jboss/tibco/mdb/OutQueueSimpleMDB (Module "deployment.jboss-as-jms-tibco-int-ear-1.0.ear.jboss-as-jms-tibco-int-mdb-1.0.jar:main" from Service Module Loader) at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:437) at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:269) at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:77) at org.jboss.modules.Module.loadModuleClass(Module.java:560) at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:197) at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:455) at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:404) at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:385) at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:130) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at org.jboss.as.server.deployment.reflect.DeploymentClassIndex.classIndex(DeploymentClassIndex.java:54) at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:85) at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:77) at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:156) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) 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) Caused by: java.lang.NoClassDefFoundError: javax/jms/MessageListener at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:760) at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:353) at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:432) ... 19 more Caused by: java.lang.ClassNotFoundException: javax.jms.MessageListener from [Module "deployment.jboss-as-jms-tibco-int-ear-1.0.ear.jboss-as-jms-tibco-int-mdb-1.0.jar:main" from Service Module Loader] at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:455) at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:404) at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:385) at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:130) ... 23 more 2015-05-17 18:55:11,371 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.subunit."jboss-as-jms-tibco-int-ear-1.0.ear"."jboss-as-jms-tibco-int-mdb-1.0.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."jboss-as-jms-tibco-int-ear-1.0.ear"."jboss-as-jms-tibco-int-mdb-1.0.jar".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of subdeployment "jboss-as-jms-tibco-int-mdb-1.0.jar" of deployment "jboss-as-jms-tibco-int-ear-1.0.ear" at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:163) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) 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) Caused by: java.lang.LinkageError: Failed to link org/jboss/tibco/mdb/OutQueueSimpleMDB (Module "deployment.jboss-as-jms-tibco-int-ear-1.0.ear.jboss-as-jms-tibco-int-mdb-1.0.jar:main" from Service Module Loader) at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:437) at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:269) at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:77) at org.jboss.modules.Module.loadModuleClass(Module.java:560) at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:197) at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:455) at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:404) at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:385) at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:130) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at org.jboss.as.server.deployment.reflect.DeploymentClassIndex.classIndex(DeploymentClassIndex.java:54) at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:85) at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:77) at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:156) ... 5 more Caused by: java.lang.NoClassDefFoundError: javax/jms/MessageListener at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:760) at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:353) at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:432) ... 19 more Caused by: java.lang.ClassNotFoundException: javax.jms.MessageListener from [Module "deployment.jboss-as-jms-tibco-int-ear-1.0.ear.jboss-as-jms-tibco-int-mdb-1.0.jar:main" from Service Module Loader] at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:455) at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:404) at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:385) at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:130) ... 23 more {noformat} The deployment works in EAP 6.4.

    JBoss Issue Tracker | 2 years ago | Tom Ross
    java.lang.LinkageError: Failed to link SampleMdb (Module "deployment.mdb-1.0-SNAPSHOT.jar:main" from Service Module Loader)
  2. 0

    Ejb3 not deploying on wildfly server

    Stack Overflow | 2 years ago | Manish kumar
    java.lang.LinkageError: Failed to link com/geo/service/GEODeleteServiceImpl (Module "deployment.CEI-GEO-EJB.jar:main" from Service Module Loader)
  3. 0

    Jboss WAR deploys succesfully but EAR fails classNotFoundException

    Stack Overflow | 5 months ago | Mark Set
    java.lang.LinkageError: Failed to link org/jboss/resteasy/plugins/spring/SpringContextLoaderListener (Module "deployment.myear-1.0-SNAPSHOT.ear:main" from Service Module Loader)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Wildfly 9.0.1.Final: EAR deployment failed

    Stack Overflow | 1 year ago | mahendra kawde
    java.lang.LinkageError: Failed to link AuditMDB (Module "deployment.webapp.ear.EJB.jar:main" from Service Module Loader)
  6. 0

    Share util jar file with war deployments in Wildfly

    Stack Overflow | 2 years ago | Marcos
    java.lang.RuntimeException: java.lang.RuntimeException: java.lang.LinkageError: Failed to link br/edu/ufca/web/FalhaValidacaoParametroVisao (Module "br.edu.ufca:main" from local module loader @16e9adb (finder: local module finder @121714c (roots: C:\wildfly-8.1.0.Final\modules,C:\wildfly-8.1.0.Final\modules\system\layers\base)))
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    javax.jms.MessageListener from [Module "deployment.mdb-1.0-SNAPSHOT.jar:main" from Service Module Loader]

    at org.jboss.modules.ModuleClassLoader.findClass()
  2. JBoss Modules
    ConcurrentClassLoader.loadClass
    1. org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205)
    2. org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:455)
    3. org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:404)
    4. org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:385)
    5. org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:130)
    5 frames
  3. Java RT
    ClassLoader.defineClass
    1. java.lang.ClassLoader.defineClass1(Native Method)
    2. java.lang.ClassLoader.defineClass(ClassLoader.java:760)
    2 frames
  4. JBoss Modules
    ConcurrentClassLoader.loadClass
    1. org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:353)
    2. org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:432)
    3. org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:269)
    4. org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:77)
    5. org.jboss.modules.Module.loadModuleClass(Module.java:560)
    6. org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:197)
    7. org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:455)
    8. org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:404)
    9. org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:385)
    10. org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:130)
    10 frames
  5. Java RT
    Class.forName
    1. java.lang.Class.forName0(Native Method)
    2. java.lang.Class.forName(Class.java:348)
    2 frames
  6. JBoss Application Server: Server
    DeploymentClassIndex.classIndex
    1. org.jboss.as.server.deployment.reflect.DeploymentClassIndex.classIndex(DeploymentClassIndex.java:54)
    1 frame
  7. JBoss Application Server: EE
    InterceptorAnnotationProcessor.deploy
    1. org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:85)
    2. org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:77)
    2 frames
  8. JBoss Application Server: Server
    DeploymentUnitPhaseService.start
    1. org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:156)
    1 frame
  9. JBoss Modular Service Container
    ServiceControllerImpl$StartTask.run
    1. org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
    2. org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
    2 frames
  10. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    3. java.lang.Thread.run(Thread.java:745)
    3 frames