Dear Wildfly Team
I tried to add the microprofile-reactive-messaging-kafka extension into your bootable jar based application. But I am getting these errors:
Weld complains this: WELD-001334: Unsatisfied dependencies for type MediatorManager with qualifiers
12:40:37,420 INFO [org.jboss.weld.Bootstrap] (MSC service thread 1-2) WELD-000141: Falling back to the default observer method resolver due to [BackedAnnotatedMethod] io.smallrye.reactive.messaging.providers.extension.ReactiveMessagingExtension.processEmitterFactories(@Observes @WithAnnotations ProcessAnnotatedType<T extends EmitterFactory<?>>)
12:40:37,462 INFO [io.smallrye.faulttolerance] (MSC service thread 1-2) SRFTL00001: MicroProfile: Fault Tolerance activated (SmallRye Fault Tolerance version: 6.9.1)
12:40:38,075 INFO [org.jboss.weld.Bootstrap] (Weld Thread Pool -- 10) WELD-000119: Not generating any bean definitions from io.smallrye.reactive.messaging.providers.metrics.MetricDecorator because of underlying class loading error: Type org.eclipse.microprofile.metrics.MetricRegistry from [Module "io.smallrye.reactive.messaging" version 4.25.0 from local module loader @4ec4f3a0 (finder: local module finder @223191a6 (roots: C:\Develop\gitlab\ptp-rno\source\rno\rno-module-ear-prod-business\.\tmp-test-backend\modules,C:\Develop\gitlab\ptp-rno\source\rno\rno-module-ear-prod-business\.\tmp-test-backend\modules\system\layers\base))] not found. If this is unexpected, enable DEBUG logging to see the full error.
12:40:38,075 INFO [org.jboss.weld.Bootstrap] (Weld Thread Pool -- 12) WELD-000119: Not generating any bean definitions from io.smallrye.reactive.messaging.providers.metrics.MicrometerDecorator because of underlying class loading error: Type io.micrometer.core.instrument.Counter from [Module "io.smallrye.reactive.messaging" version 4.25.0 from local module loader @4ec4f3a0 (finder: local module finder @223191a6 (roots: C:\Develop\gitlab\ptp-rno\source\rno\rno-module-ear-prod-business\.\tmp-test-backend\modules,C:\Develop\gitlab\ptp-rno\source\rno\rno-module-ear-prod-business\.\tmp-test-backend\modules\system\layers\base))] not found. If this is unexpected, enable DEBUG logging to see the full error.
12:40:39,564 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.unit."rno-prod-business.ear".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."rno-prod-business.ear".WeldStartService: Failed to start service
at org.jb...@1.5.6.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1545)
at org.jb...@1.5.6.Final//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1374)
at org.jbos...@3.9.1//org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
at org.jbos...@3.9.1//org.jboss.threads.EnhancedQueueExecutor$Task.doRunWith(EnhancedQueueExecutor.java:2651)
at org.jbos...@3.9.1//org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2630)
at org.jbos...@3.9.1//org.jboss.threads.EnhancedQueueExecutor.runThreadBody(EnhancedQueueExecutor.java:1622)
at org.jbos...@3.9.1//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1589)
at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001334: Unsatisfied dependencies for type MediatorManager with qualifiers
at org.jboss...@5.1.6.Final//org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:38)
at org.jboss...@5.1.6.Final//org.jboss.weld.bootstrap.events.AfterDeploymentValidationImpl.fire(AfterDeploymentValidationImpl.java:28)
at org.jboss...@5.1.6.Final//org.jboss.weld.bootstrap.WeldStartup.validateBeans(WeldStartup.java:506)
at org.jboss...@5.1.6.Final//org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:94)
at org.jbos...@37.0.0.Final//org.jboss.as.weld.WeldStartService.start(WeldStartService.java:81)
at org.jb...@1.5.6.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1553)
at org.jb...@1.5.6.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1516)
... 7 more
Caused by: org.jboss.weld.exceptions.UnsatisfiedResolutionException: WELD-001334: Unsatisfied dependencies for type MediatorManager with qualifiers
at org.jboss...@5.1.6.Final//org.jboss.weld.bean.builtin.InstanceImpl.checkBeanResolved(InstanceImpl.java:254)
at org.jboss...@5.1.6.Final//org.jboss.weld.bean.builtin.InstanceImpl.get(InstanceImpl.java:115)
at io.smallrye.rea...@4.25.0//io.smallrye.reactive.messaging.providers.extension.ReactiveMessagingExtension.configureMediatorManager(ReactiveMessagingExtension.java:115)
at io.smallrye.rea...@4.25.0//io.smallrye.reactive.messaging.providers.extension.ReactiveMessagingExtension.afterDeploymentValidation(ReactiveMessagingExtension.java:109)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.jboss...@5.1.6.Final//org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:99)
at org.jboss...@5.1.6.Final//org.jboss.weld.injection.MethodInvocationStrategy$SpecialParamPlusBeanManagerStrategy.invoke(MethodInvocationStrategy.java:199)
at org.jboss...@5.1.6.Final//org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:350)
at org.jboss...@5.1.6.Final//org.jboss.weld.event.ExtensionObserverMethodImpl.sendEvent(ExtensionObserverMethodImpl.java:136)
at org.jboss...@5.1.6.Final//org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:328)
at org.jboss...@5.1.6.Final//org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:298)
at jakarta.enterprise.api//jakarta.enterprise.inject.spi.ObserverMethod.notify(ObserverMethod.java:142)
at org.jboss...@5.1.6.Final//org.jboss.weld.util.Observers.notify(Observers.java:176)
at org.jboss...@5.1.6.Final//org.jboss.weld.event.ObserverNotifier.notifySyncObservers(ObserverNotifier.java:307)
at org.jboss...@5.1.6.Final//org.jboss.weld.event.ObserverNotifier.notify(ObserverNotifier.java:293)
at org.jboss...@5.1.6.Final//org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:185)
at org.jboss...@5.1.6.Final//org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:179)
at org.jboss...@5.1.6.Final//org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:53)
at org.jboss...@5.1.6.Final//org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:35)
... 13 more
12:40:39,610 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "rno-prod-business.ear")]) - Stage: (VERIFY) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"rno-prod-business.ear\".WeldStartService" => "Failed to start service
Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001334: Unsatisfied dependencies for type MediatorManager with qualifiers
Caused by: org.jboss.weld.exceptions.UnsatisfiedResolutionException: WELD-001334: Unsatisfied dependencies for type MediatorManager with qualifiers "}}
12:40:39,612 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0010: Deployed "rno-prod-business.ear" (runtime-name : "rno-prod-business.ear")
12:40:39,615 INFO [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
WFLYCTL0186: Services which failed to start: service jboss.deployment.unit."rno-prod-business.ear".WeldStartService: Failed to start service
WFLYCTL0448: 145 additional services are down due to their dependencies being missing or failed
The bootable jar is created like this:
<plugin
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>5.1.3.Final</version>
<configuration>
<feature-packs>
<feature-pack>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-galleon-pack</artifactId>
<version>37.0.0.Final</version>
</feature-pack>
</feature-packs>
<layers>
<layer>jaxrs-server</layer>
<layer>ee-core-profile-server</layer>
<layer>ee</layer>
<layer>ejb</layer>
<layer>jaxrs</layer>
<layer>batch-jberet</layer>
<layer>logging</layer>
<layer>mail</layer>
<layer>datasources</layer>
<layer>jmx</layer>
<layer>micrometer</layer>
<layer>microprofile-platform</layer>
<layer>microprofile-reactive-messaging</layer>
<layer>microprofile-reactive-messaging-kafka</layer>
<layer>web-server</layer>
<layer>core-tools</layer>
<layer>h2-datasource</layer>
</layers>
<bootableJar>true</bootableJar>
<skipDeployment>true</skipDeployment>-->
</configuration>
<executions>
<execution>
<goals>
<goal>package</goal>
</goals>
</execution>
</executions>
</plugin>
I looked at the quickstart example, and that one doesn't show this error (it uses provisioning for creating the bootable jar).
Any idea what is wrong?
Best Regards,
Ralf