java.lang.NoClassDefFoundError: rx/Subscriber

619 views
Skip to first unread message

lcolarte

unread,
Jan 23, 2020, 5:19:59 AM1/23/20
to Thorntail
Good night

i'm trying to implement a microprofile example, to test how to work, but when run a simple project with the dependency of microprofile (this is in the thorntail example of microprofile), get this error 

ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC000001: Failed to start service jboss.deployment.unit."microprofile.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."microprofile.war".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "microprofile.war"
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:151)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1738)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1700)
    at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1558)
    at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
    at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
    at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
    at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: WFLYSRV0177: Error getting reflective information for class com.netflix.hystrix.contrib.metrics.eventstream.HystrixMetricsStreamServlet with ClassLoader ModuleClassLoader for Module "com.netflix.hystrix" from BootModuleLoader@574b560f for finders [JDK Module Finder, BootstrapClasspathModuleFinder, BootstrapModuleFinder(org.wildfly.swarm.bootstrap), ClasspathModuleFinder, ContainerModuleFinder(swarm.container), ApplicationModuleFinder(thorntail.application), org.wildfly.swarm.bootstrap.modules.DynamicModuleFinder@ba54932]
    at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:78)
    at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:57)
    at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationProcessor.java:106)
    at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:91)
    at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:76)
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:144)
    ... 8 more
Caused by: java.lang.NoClassDefFoundError: rx/Subscriber
    at java.lang.Class.getDeclaredFields0(Native Method)
    at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
    at java.lang.Class.getDeclaredFields(Class.java:1916)
    at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:72)
    at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70)
    ... 13 more
Caused by: java.lang.ClassNotFoundException: rx.Subscriber from [Module "com.netflix.hystrix" from BootModuleLoader@574b560f for finders [JDK Module Finder, BootstrapClasspathModuleFinder, BootstrapModuleFinder(org.wildfly.swarm.bootstrap), ClasspathModuleFinder, ContainerModuleFinder(swarm.container), ApplicationModuleFinder(thorntail.application), org.wildfly.swarm.bootstrap.modules.DynamicModuleFinder@ba54932]]

I'm glad with your help, i think this is a noob error but i'm relative new using thorntail, thanks

Ladislav Thon

unread,
Jan 23, 2020, 5:27:14 AM1/23/20
to thor...@googlegroups.com

Hi,

this sounds weird, I'm pretty sure the Hystrix module defines a dependency on RxJava: https://github.com/thorntail/thorntail/blob/master/fractions/netflix/hystrix/src/main/resources/modules/com/netflix/hystrix/main/module.xml

Can you share a reproducer, please?

Thanks,

LT

--
You received this message because you are subscribed to the Google Groups "Thorntail" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thorntail+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/thorntail/5bcc3890-835e-4ec3-8cf6-8a23a8c3fa70%40googlegroups.com.

lcolarte

unread,
Jan 27, 2020, 2:32:33 AM1/27/20
to Thorntail
Hi

This is the java -jar exec

2020-01-24 21:55:39,594 INFO  [org.wildfly.swarm] (main) THORN0013: Installed fraction:     MicroProfile Metrics - STABLE          io.thorntail:microprofile-metrics:2.6.0.Final
2020-01-24 21:55:39,605 INFO  [org.wildfly.swarm] (main) THORN0013: Installed fraction:        CDI Configuration - STABLE          io.thorntail:cdi-config:2.6.0.Final
2020-01-24 21:55:39,605 INFO  [org.wildfly.swarm] (main) THORN0013: Installed fraction:                 Undertow - STABLE          io.thorntail:undertow:2.6.0.Final
2020-01-24 21:55:39,605 INFO  [org.wildfly.swarm] (main) THORN0013: Installed fraction:             Transactions - STABLE          io.thorntail:transactions:2.6.0.Final
2020-01-24 21:55:39,606 INFO  [org.wildfly.swarm] (main) THORN0013: Installed fraction: MicroProfile JWT RBAC Auth - STABLE          io.thorntail:microprofile-jwt:2.6.0.Final
2020-01-24 21:55:39,606 INFO  [org.wildfly.swarm] (main) THORN0013: Installed fraction:                      CDI - STABLE          io.thorntail:cdi:2.6.0.Final
2020-01-24 21:55:39,606 INFO  [org.wildfly.swarm] (main) THORN0013: Installed fraction:                  Elytron - STABLE          io.thorntail:elytron:2.6.0.Final
2020-01-24 21:55:39,606 INFO  [org.wildfly.swarm] (main) THORN0013: Installed fraction:                   JAX-RS - STABLE          io.thorntail:jaxrs:2.6.0.Final
2020-01-24 21:55:39,607 INFO  [org.wildfly.swarm] (main) THORN0013: Installed fraction: MicroProfile Rest Client - STABLE          io.thorntail:microprofile-restclient:2.6.0.Final
2020-01-24 21:55:39,607 INFO  [org.wildfly.swarm] (main) THORN0013: Installed fraction:                  Logging - STABLE          io.thorntail:logging:2.6.0.Final
2020-01-24 21:55:39,607 INFO  [org.wildfly.swarm] (main) THORN0013: Installed fraction:      MicroProfile Health - STABLE          io.thorntail:microprofile-health:2.6.0.Final
2020-01-24 21:55:39,607 INFO  [org.wildfly.swarm] (main) THORN0013: Installed fraction: MicroProfile OpenTracing - STABLE          io.thorntail:microprofile-opentracing:2.6.0.Final
2020-01-24 21:55:39,607 INFO  [org.wildfly.swarm] (main) THORN0013: Installed fraction:               Management - STABLE          io.thorntail:management:2.6.0.Final
2020-01-24 21:55:39,608 INFO  [org.wildfly.swarm] (main) THORN0013: Installed fraction:     MicroProfile OpenAPI - STABLE          io.thorntail:microprofile-openapi:2.6.0.Final
2020-01-24 21:55:39,608 INFO  [org.wildfly.swarm] (main) THORN0013: Installed fraction:                  Hystrix - STABLE          io.thorntail:hystrix:2.6.0.Final
2020-01-24 21:55:39,608 INFO  [org.wildfly.swarm] (main) THORN0013: Installed fraction: MicroProfile Fault Tolerance - STABLE          io.thorntail:microprofile-fault-tolerance:2.6.0.Final
2020-01-24 21:55:39,608 INFO  [org.wildfly.swarm] (main) THORN0013: Installed fraction:          Bean Validation - STABLE          io.thorntail:bean-validation:2.6.0.Final
2020-01-24 21:55:39,608 INFO  [org.wildfly.swarm] (main) THORN0013: Installed fraction:      MicroProfile Config - STABLE          io.thorntail:microprofile-config:2.6.0.Final
2020-01-24 21:55:39,608 INFO  [org.wildfly.swarm] (main) THORN0013: Installed fraction:             MicroProfile - STABLE          io.thorntail:microprofile:2.6.0.Final
2020-01-24 21:55:39,609 INFO  [org.wildfly.swarm] (main) THORN0013: Installed fraction:       JAX-RS with JSON-P - STABLE          io.thorntail:jaxrs-jsonp:2.6.0.Final
2020-01-24 21:55:39,609 INFO  [org.wildfly.swarm] (main) THORN0013: Installed fraction:         JAX-RS with JAXB - STABLE          io.thorntail:jaxrs-jaxb:2.6.0.Final
2020-01-24 21:55:41,577 WARN  [com.netflix.config.sources.URLConfigurationSource] (main) No URLs will be polled as dynamic configuration sources.
2020-01-24 21:55:41,577 INFO  [com.netflix.config.sources.URLConfigurationSource] (main) To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2020-01-24 21:55:42,048 INFO  [org.jboss.msc] (main) JBoss MSC version 1.4.11.Final
2020-01-24 21:55:42,055 INFO  [org.jboss.threads] (main) JBoss Threads version 2.3.3.Final
2020-01-24 21:55:42,141 INFO  [org.jboss.as] (MSC service thread 1-2) WFLYSRV0049: Thorntail 2.6.0.Final (WildFly Core 10.0.3.Final) starting
2020-01-24 21:55:42,195 INFO  [org.wildfly.swarm] (MSC service thread 1-2) THORN0019: Install MSC service for command line args: []
2020-01-24 21:55:42,431 INFO  [org.wildfly.swarm.microprofile.health] (MSC service thread 1-2) The monitoring endpoints have no security realm configuration
2020-01-24 21:55:42,710 INFO  [org.wildfly.security] (ServerService Thread Pool -- 14) ELY00001: WildFly Elytron version 1.10.4.Final
2020-01-24 21:55:42,879 WARN  [org.jboss.as.txn] (ServerService Thread Pool -- 18) WFLYTX0013: The node-identifier attribute on the /subsystem=transactions is set to the default value. This is a danger for environments running multiple servers. Please make sure the attribute value is unique.
2020-01-24 21:55:42,889 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 22) WFLYNAM0001: Activating Naming Subsystem
2020-01-24 21:55:42,894 INFO  [org.wildfly.extension.microprofile.config] (ServerService Thread Pool -- 21) EMPCONF0001: Activating Eclipse MicroProfile Config Subsystem
2020-01-24 21:55:42,901 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 16) WFLYSEC0002: Activating Security Subsystem
2020-01-24 21:55:42,908 INFO  [org.jboss.as.security] (MSC service thread 1-3) WFLYSEC0001: Current PicketBox version=5.0.3.Final
2020-01-24 21:55:42,941 INFO  [org.xnio] (ServerService Thread Pool -- 17) XNIO version 3.7.3.Final
2020-01-24 21:55:42,942 INFO  [org.jboss.as.naming] (MSC service thread 1-8) WFLYNAM0003: Starting Naming Service
2020-01-24 21:55:42,943 INFO  [org.jboss.as.jaxrs] (ServerService Thread Pool -- 20) WFLYRS0016: RESTEasy version 3.9.1.Final
2020-01-24 21:55:42,969 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0003: Undertow 2.0.27.Final starting
2020-01-24 21:55:42,977 INFO  [org.xnio.nio] (ServerService Thread Pool -- 17) XNIO NIO Implementation Version 3.7.3.Final
2020-01-24 21:55:42,995 INFO  [org.wildfly.extension.io] (ServerService Thread Pool -- 17) WFLYIO001: Worker 'default' has auto-configured to 16 core threads with 128 task threads based on your 8 available processors
2020-01-24 21:55:43,070 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0012: Started server default-server.
2020-01-24 21:55:43,380 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0018: Host default-host starting
2020-01-24 21:55:43,427 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http)
2020-01-24 21:55:43,435 WARN  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0035: No security realm or http server authentication defined for http management service; all access will be unrestricted.
2020-01-24 21:55:43,448 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-6) WFLYUT0006: Undertow HTTP listener default listening on [0:0:0:0:0:0:0:0]:8080
2020-01-24 21:55:43,454 INFO  [org.jboss.remoting] (MSC service thread 1-3) JBoss Remoting version 5.0.15.Final
2020-01-24 21:55:43,483 WARN  [org.jboss.as.remoting] (MSC service thread 1-6) ****** All authentication is ANONYMOUS for org.jboss.as.remoting.RemotingHttpUpgradeService
2020-01-24 21:55:43,557 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server
2020-01-24 21:55:43,559 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management
2020-01-24 21:55:43,560 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0054: Admin console is not enabled
2020-01-24 21:55:43,560 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: Thorntail 2.6.0.Final (WildFly Core 10.0.3.Final) started in 1630ms - Started 151 of 156 services (35 services are lazy, passive or on-demand)
2020-01-24 21:55:44,119 INFO  [org.wildfly.swarm.runtime.deployer] (main) deploying microprofile.war
2020-01-24 21:55:44,149 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0027: Starting deployment of "microprofile.war" (runtime-name: "microprofile.war")
2020-01-24 21:55:44,553 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-3) WFLYSRV0018: Deployment "deployment.microprofile.war" is using a private module ("org.jboss.jts") which may be changed or removed in future versions without notice.
2020-01-24 21:55:44,569 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC000001: Failed to start service jboss.deployment.unit."microprofile.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."microprofile.war".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "microprofile.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:183)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
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)
Caused by: java.lang.RuntimeException: WFLYSRV0177: Error getting reflective information for class com.netflix.hystrix.contrib.metrics.eventstream.HystrixMetricsStreamServlet with ClassLoader ModuleClassLoader for Module "com.netflix.hystrix" from BootModuleLoader@757acd7b for finders [JDK Module Finder, BootstrapClasspathModuleFinder, BootstrapModuleFinder(org.wildfly.swarm.bootstrap), ClasspathModuleFinder, ContainerModuleFinder(swarm.container), ApplicationModuleFinder(thorntail.application), org.wildfly.swarm.bootstrap.modules.DynamicModuleFinder@36b4fe2a]
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:78)
at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:57)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationProcessor.java:106)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:91)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:76)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:176)
... 8 more
Caused by: java.lang.NoClassDefFoundError: rx/Subscriber
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
at java.lang.Class.getDeclaredFields(Class.java:1916)
at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:72)
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70)
... 13 more
Caused by: java.lang.ClassNotFoundException: rx.Subscriber from [Module "com.netflix.hystrix" from BootModuleLoader@757acd7b for finders [JDK Module Finder, BootstrapClasspathModuleFinder, BootstrapModuleFinder(org.wildfly.swarm.bootstrap), ClasspathModuleFinder, ContainerModuleFinder(swarm.container), ApplicationModuleFinder(thorntail.application), org.wildfly.swarm.bootstrap.modules.DynamicModuleFinder@36b4fe2a]]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:255)
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)
... 18 more

2020-01-24 21:55:44,574 ERROR [org.jboss.as.controller.management-operation] (main) WFLYCTL0013: Operation ("add") failed - address: (("deployment" => "microprofile.war")) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"microprofile.war\".POST_MODULE" => "WFLYSRV0153: Failed to process phase POST_MODULE of deployment \"microprofile.war\"
    Caused by: java.lang.RuntimeException: WFLYSRV0177: Error getting reflective information for class com.netflix.hystrix.contrib.metrics.eventstream.HystrixMetricsStreamServlet with ClassLoader ModuleClassLoader for Module \"com.netflix.hystrix\" from BootModuleLoader@757acd7b for finders [JDK Module Finder, BootstrapClasspathModuleFinder, BootstrapModuleFinder(org.wildfly.swarm.bootstrap), ClasspathModuleFinder, ContainerModuleFinder(swarm.container), ApplicationModuleFinder(thorntail.application), org.wildfly.swarm.bootstrap.modules.DynamicModuleFinder@36b4fe2a]
    Caused by: java.lang.NoClassDefFoundError: rx/Subscriber
    Caused by: java.lang.ClassNotFoundException: rx.Subscriber from [Module \"com.netflix.hystrix\" from BootModuleLoader@757acd7b for finders [JDK Module Finder, BootstrapClasspathModuleFinder, BootstrapModuleFinder(org.wildfly.swarm.bootstrap), ClasspathModuleFinder, ContainerModuleFinder(swarm.container), ApplicationModuleFinder(thorntail.application), org.wildfly.swarm.bootstrap.modules.DynamicModuleFinder@36b4fe2a]]"}}
2020-01-24 21:55:44,576 ERROR [org.jboss.as.server] (main) WFLYSRV0021: Deploy of deployment "microprofile.war" was rolled back with the following failure message: 
{"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"microprofile.war\".POST_MODULE" => "WFLYSRV0153: Failed to process phase POST_MODULE of deployment \"microprofile.war\"
    Caused by: java.lang.RuntimeException: WFLYSRV0177: Error getting reflective information for class com.netflix.hystrix.contrib.metrics.eventstream.HystrixMetricsStreamServlet with ClassLoader ModuleClassLoader for Module \"com.netflix.hystrix\" from BootModuleLoader@757acd7b for finders [JDK Module Finder, BootstrapClasspathModuleFinder, BootstrapModuleFinder(org.wildfly.swarm.bootstrap), ClasspathModuleFinder, ContainerModuleFinder(swarm.container), ApplicationModuleFinder(thorntail.application), org.wildfly.swarm.bootstrap.modules.DynamicModuleFinder@36b4fe2a]
    Caused by: java.lang.NoClassDefFoundError: rx/Subscriber
    Caused by: java.lang.ClassNotFoundException: rx.Subscriber from [Module \"com.netflix.hystrix\" from BootModuleLoader@757acd7b for finders [JDK Module Finder, BootstrapClasspathModuleFinder, BootstrapModuleFinder(org.wildfly.swarm.bootstrap), ClasspathModuleFinder, ContainerModuleFinder(swarm.container), ApplicationModuleFinder(thorntail.application), org.wildfly.swarm.bootstrap.modules.DynamicModuleFinder@36b4fe2a]]"}}
2020-01-24 21:55:44,585 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0028: Stopped deployment microprofile.war (runtime-name: microprofile.war) in 9ms
2020-01-24 21:55:44,589 ERROR [stderr] (main) org.wildfly.swarm.container.DeploymentException: org.wildfly.swarm.container.DeploymentException: THORN0004: Deployment failed: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"microprofile.war\".POST_MODULE" => "WFLYSRV0153: Failed to process phase POST_MODULE of deployment \"microprofile.war\"
2020-01-24 21:55:44,589 ERROR [stderr] (main)     Caused by: java.lang.RuntimeException: WFLYSRV0177: Error getting reflective information for class com.netflix.hystrix.contrib.metrics.eventstream.HystrixMetricsStreamServlet with ClassLoader ModuleClassLoader for Module \"com.netflix.hystrix\" from BootModuleLoader@757acd7b for finders [JDK Module Finder, BootstrapClasspathModuleFinder, BootstrapModuleFinder(org.wildfly.swarm.bootstrap), ClasspathModuleFinder, ContainerModuleFinder(swarm.container), ApplicationModuleFinder(thorntail.application), org.wildfly.swarm.bootstrap.modules.DynamicModuleFinder@36b4fe2a]
2020-01-24 21:55:44,589 ERROR [stderr] (main)     Caused by: java.lang.NoClassDefFoundError: rx/Subscriber
2020-01-24 21:55:44,589 ERROR [stderr] (main)     Caused by: java.lang.ClassNotFoundException: rx.Subscriber from [Module \"com.netflix.hystrix\" from BootModuleLoader@757acd7b for finders [JDK Module Finder, BootstrapClasspathModuleFinder, BootstrapModuleFinder(org.wildfly.swarm.bootstrap), ClasspathModuleFinder, ContainerModuleFinder(swarm.container), ApplicationModuleFinder(thorntail.application), org.wildfly.swarm.bootstrap.modules.DynamicModuleFinder@36b4fe2a]]"}}
2020-01-24 21:55:44,589 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:301)
2020-01-24 21:55:44,590 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:174)
2020-01-24 21:55:44,590 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:107)
2020-01-24 21:55:44,590 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.RuntimeDeployer$Proxy$_$$_WeldClientProxy.deploy(Unknown Source)
2020-01-24 21:55:44,590 ERROR [stderr] (main) at org.wildfly.swarm.Swarm.deploy(Swarm.java:476)
2020-01-24 21:55:44,590 ERROR [stderr] (main) at org.wildfly.swarm.Swarm.main(Swarm.java:747)
2020-01-24 21:55:44,590 ERROR [stderr] (main) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2020-01-24 21:55:44,590 ERROR [stderr] (main) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2020-01-24 21:55:44,590 ERROR [stderr] (main) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2020-01-24 21:55:44,591 ERROR [stderr] (main) at java.lang.reflect.Method.invoke(Method.java:498)
2020-01-24 21:55:44,591 ERROR [stderr] (main) at org.wildfly.swarm.bootstrap.MainInvoker.invoke(MainInvoker.java:57)
2020-01-24 21:55:44,591 ERROR [stderr] (main) at org.wildfly.swarm.bootstrap.Main.run(Main.java:134)
2020-01-24 21:55:44,591 ERROR [stderr] (main) at org.wildfly.swarm.bootstrap.Main.main(Main.java:87)
2020-01-24 21:55:44,591 ERROR [stderr] (main) Caused by: org.wildfly.swarm.container.DeploymentException: THORN0004: Deployment failed: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"microprofile.war\".POST_MODULE" => "WFLYSRV0153: Failed to process phase POST_MODULE of deployment \"microprofile.war\"
2020-01-24 21:55:44,591 ERROR [stderr] (main)     Caused by: java.lang.RuntimeException: WFLYSRV0177: Error getting reflective information for class com.netflix.hystrix.contrib.metrics.eventstream.HystrixMetricsStreamServlet with ClassLoader ModuleClassLoader for Module \"com.netflix.hystrix\" from BootModuleLoader@757acd7b for finders [JDK Module Finder, BootstrapClasspathModuleFinder, BootstrapModuleFinder(org.wildfly.swarm.bootstrap), ClasspathModuleFinder, ContainerModuleFinder(swarm.container), ApplicationModuleFinder(thorntail.application), org.wildfly.swarm.bootstrap.modules.DynamicModuleFinder@36b4fe2a]
2020-01-24 21:55:44,591 ERROR [stderr] (main)     Caused by: java.lang.NoClassDefFoundError: rx/Subscriber
2020-01-24 21:55:44,591 ERROR [stderr] (main)     Caused by: java.lang.ClassNotFoundException: rx.Subscriber from [Module \"com.netflix.hystrix\" from BootModuleLoader@757acd7b for finders [JDK Module Finder, BootstrapClasspathModuleFinder, BootstrapModuleFinder(org.wildfly.swarm.bootstrap), ClasspathModuleFinder, ContainerModuleFinder(swarm.container), ApplicationModuleFinder(thorntail.application), org.wildfly.swarm.bootstrap.modules.DynamicModuleFinder@36b4fe2a]]"}}
2020-01-24 21:55:44,592 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:296)
2020-01-24 21:55:44,592 ERROR [stderr] (main) ... 12 more
2020-01-24 21:55:44,595 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-6) WFLYUT0008: Undertow HTTP listener default suspending
2020-01-24 21:55:44,595 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0019: Host default-host stopping
2020-01-24 21:55:44,597 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-6) WFLYUT0007: Undertow HTTP listener default stopped, was bound to [0:0:0:0:0:0:0:0]:8080
2020-01-24 21:55:44,606 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0004: Undertow 2.0.27.Final stopping
2020-01-24 21:55:44,620 INFO  [org.jboss.as] (MSC service thread 1-8) WFLYSRV0050: Thorntail 2.6.0.Final (WildFly Core 10.0.3.Final) stopped in 22ms

And this is the maven pom project

<?xml version="1.0" encoding="UTF-8"?>
  <modelVersion>4.0.0</modelVersion>

  <groupId>co.com.local</groupId>
  <artifactId>microprofile</artifactId>
  <version>1.0.0-SNAPSHOT</version>
  <packaging>war</packaging>

  <name>Thorntail Example</name>



  <properties>
    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target>

    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

    <failOnMissingWebXml>false</failOnMissingWebXml>

    <version.thorntail>2.6.0.Final</version.thorntail>
  </properties>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>io.thorntail</groupId>
        <artifactId>bom-all</artifactId>
        <version>${version.thorntail}</version>
        <scope>import</scope>
        <type>pom</type>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <build>
    <finalName>${project.artifactId}</finalName>
    <plugins>
      <plugin>
        <groupId>io.thorntail</groupId>
        <artifactId>thorntail-maven-plugin</artifactId>
        <version>${version.thorntail}</version>
        
        <executions>
          <execution>
            <goals>
              <goal>package</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

  <dependencies>
  
     <dependency>
      <groupId>io.thorntail</groupId>
      <artifactId>microprofile</artifactId>
    </dependency>
    <dependency>
      <groupId>joda-time</groupId>
      <artifactId>joda-time</artifactId>
      <version>2.7</version>
    </dependency>

  </dependencies>
</project>

Thanks for your help
To unsubscribe from this group and stop receiving emails from it, send an email to thor...@googlegroups.com.

Ladislav Thon

unread,
Jan 27, 2020, 2:43:48 AM1/27/20
to thor...@googlegroups.com

Hi,

by reproducer, I mean a small but complete project that would exhibit the problem. I can't see anything wrong in your POM, and if I build an empty Maven project with that POM, the uberjar starts without an issue.

One wild guess: can you try with empty local Maven repo? Perhaps some artifact got corrupted.

Thanks,

LT

To unsubscribe from this group and stop receiving emails from it, send an email to thorntail+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/thorntail/dbb42400-fb7c-47d8-80c9-81ea51b58517%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages