Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-14494

Failed to define class org.jboss.resteasy.microprofile.config.ServletConfigSourceImpl

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 23.0.0.Final
    • 23.0.0.Final
    • REST
    • None
    • Undefined
    • ---
    • ---

      I'm using the ee-dist of WildFly.

      Version information:

      2021-02-25 19:18:27,843 INFO [org.jboss.as] (MSC service thread 1-2) WFLYSRV0049: WildFly EE 23.0.0.Final-SNAPSHOT (WildFly Core 15.0.0.Beta1) starting

      During startup this warning is shown now:

      25.02. 19:19:23,268 WARN  [org.jboss.modules.define#defineClass] Failed to define class org.jboss.resteasy.microprofile.config.ServletConfigSourceImpl in Module "org.jboss.resteasy.resteasy-jaxrs" version 3.15.0.Final from local module loader @4883b407 (finder: local module finder @7d9d1a19 (roots: /mbi/tools/jboss/23.x/modules,/mbi/tools/jboss/23.x/modules/system/layers/base)):
      java.lang.NoClassDefFoundError: Failed to link org/jboss/resteasy/microprofile/config/ServletConfigSourceImpl (Module "org.jboss.resteasy.resteasy-jaxrs" version 3.15.0.Final from local module loader @4883b407 (finder: local module finder @7d9d1a19 (roots: /mbi/tools/jboss/23.x/modules,/mbi/tools/jboss/23.x/modules/system/layers/base))): org/eclipse/microprofile/config/spi/ConfigSource25.02. 19:19:23,268 WARN  [org.jboss.modules.define#defineClass] Failed to define class org.jboss.resteasy.microprofile.config.ServletConfigSourceImpl in Module "org.jboss.resteasy.resteasy-jaxrs" version 3.15.0.Final from local module loader @4883b407 (finder: local module finder @7d9d1a19 (roots: /mbi/tools/jboss/23.x/modules,/mbi/tools/jboss/23.x/modules/system/layers/base)): java.lang.NoClassDefFoundError: Failed to link org/jboss/resteasy/microprofile/config/ServletConfigSourceImpl (Module "org.jboss.resteasy.resteasy-jaxrs" version 3.15.0.Final from local module loader @4883b407 (finder: local module finder @7d9d1a19 (roots: /mbi/tools/jboss/23.x/modules,/mbi/tools/jboss/23.x/modules/system/layers/base))): org/eclipse/microprofile/config/spi/ConfigSource
       at java.lang.ClassLoader.defineClass1(Native Method)
       at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
       at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:423)
       at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:555)
       at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:339)
       at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:126)
       at org.jboss.modules.Module.loadModuleClass(Module.java:753)
       at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:247)
       at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
       at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
       at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
       at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348)
       at org.jboss.resteasy.microprofile.config.ResteasyConfig.<clinit>(ResteasyConfig.java:36)
       at org.jboss.resteasy.microprofile.config.ResteasyConfigFactory.getConfig(ResteasyConfigFactory.java:19)
       at org.jboss.resteasy.plugins.server.servlet.ConfigurationBootstrap.<init>(ConfigurationBootstrap.java:24)
       at org.jboss.resteasy.plugins.server.servlet.ListenerBootstrap.<init>(ListenerBootstrap.java:26)
       at org.jboss.resteasy.plugins.server.servlet.ServletBootstrap.<init>(ServletBootstrap.java:21)
       at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:41)
       at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117)
       at org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init(RunAsLifecycleInterceptor.java:78)
       at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:103)
       at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:305)
       at io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:145)
       at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:588)
       at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:559)
       at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
       at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
       at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
       at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
       at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
       at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
       at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
       at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:601)
       at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:97)
       at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:78)
       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
       at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
       at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
       at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
       at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
       at java.lang.Thread.run(Thread.java:748) at org.jboss.threads.JBossThread.run(JBossThread.java:513)

      Module "org.jboss.resteasy.resteasy-jaxrs" references

      <module name="org.eclipse.microprofile.config.api" optional="true"/>

      which is not there using the ee-dist.

       

              rsigal@redhat.com Ronald Sigal
              langfr Frank Langelage (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: