java.lang.LinkageError

Failed to link mypackage/MyServletExtension (Module "deployment.my-app-0.0.1-SNAPSHOT.ear.my-app-ejb.jar:main" from Service Module Loader)

Samebug tips1

Check if the version of resteasy is using is the same JBoss is using. To find it out, search for resteasy-jaxrs* in JBoss/Wildfly directory and at your pom.xml.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web2058

  • via Stack Overflow by cheb1k4
    , 9 months ago
    Failed to link mypackage/MyServletExtension (Module "deployment.my-app-0.0.1-SNAPSHOT.ear.my-app-ejb.jar:main" from Service Module Loader)
  • via Stack Overflow by Manish kumar
    , 1 year ago
    Failed to link com/geo/service/GEODeleteServiceImpl (Module "deployment.CEI-GEO-EJB.jar:main" from Service Module Loader)
  • via Stack Overflow by sree
    , 1 year ago
    Failed to link org/abc/bcd/MyServiceEp (Module "deployment.My-Portlet-1.0.0.war:main" from Service Module Loader)
  • Stack trace

    • java.lang.LinkageError: Failed to link mypackage/MyServletExtension (Module "deployment.my-app-0.0.1-SNAPSHOT.ear.my-app-ejb.jar:main" from Service Module Loader) at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:85) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[rt.jar:1.8.0_60] at java.util.concurrent.FutureTask.run(FutureTask.java:266)[rt.jar:1.8.0_60] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[rt.jar:1.8.0_60] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[rt.jar:1.8.0_60] at java.lang.Thread.run(Thread.java:745)[rt.jar:1.8.0_60] at org.jboss.threads.JBossThread.run(JBossThread.java:320)[jboss-threads-2.2.0.Final.jar:2.2.0.Final] Caused by: java.lang.LinkageError: Failed to link mypackage/MyServletExtension (Module "deployment.my-app-0.0.1-SNAPSHOT.ear.my-app-ejb.jar:main" from Service Module Loader) at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:437)[jboss-modules.jar:1.4.3.Final] at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:269)[jboss-modules.jar:1.4.3.Final] at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:77)[jboss-modules.jar:1.4.3.Final] at org.jboss.modules.Module.loadModuleClass(Module.java:560)[jboss-modules.jar:1.4.3.Final] at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:197)[jboss-modules.jar:1.4.3.Final] at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:455)[jboss-modules.jar:1.4.3.Final] at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:404)[jboss-modules.jar:1.4.3.Final] at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:385)[jboss-modules.jar:1.4.3.Final] at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:130)[jboss-modules.jar:1.4.3.Final] at java.lang.Class.forName0(Native Method)[rt.jar:1.8.0_60] at java.lang.Class.forName(Class.java:348)[rt.jar:1.8.0_60] at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:370)[rt.jar:1.8.0_60] at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)[rt.jar:1.8.0_60] at java.util.ServiceLoader$1.next(ServiceLoader.java:480)[rt.jar:1.8.0_60] at io.undertow.servlet.core.DeploymentManagerImpl.handleExtensions(DeploymentManagerImpl.java:243) at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:150) at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:100) at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82) ... 6 more Caused by: java.lang.NoClassDefFoundError: io/undertow/servlet/ServletExtension at java.lang.ClassLoader.defineClass1(Native Method)[rt.jar:1.8.0_60] at java.lang.ClassLoader.defineClass(ClassLoader.java:760)[rt.jar:1.8.0_60] at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:353)[jboss-modules.jar:1.4.3.Final] at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:432)[jboss-modules.jar:1.4.3.Final] ... 23 more Caused by: java.lang.ClassNotFoundException: io.undertow.servlet.ServletExtension from [Module "deployment.my-app-0.0.1-SNAPSHOT.ear.my-app-ejb.jar:main" from Service Module Loader] at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205)[jboss-modules.jar:1.4.3.Final] at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:455)[jboss-modules.jar:1.4.3.Final] at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:404)[jboss-modules.jar:1.4.3.Final] at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:385)[jboss-modules.jar:1.4.3.Final] at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:130)[jboss-modules.jar:1.4.3.Final] ... 27 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    97 times, 9 months ago
    8 times, 10 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    81 more bugmates