wildfly-extras / wildfly-mp-reactive-feature-pack

A galleon feature pack to add the MicroProfile reactive subsystems to your WildFly installation
Apache License 2.0
2 stars 10 forks source link

Unsatisfied dependencies for type ExecutionHolder #35

Closed lorenzleutgeb closed 3 years ago

lorenzleutgeb commented 3 years ago

Hi!

I am trying to use WildFly 21.0.2 together with the MicroProfile Reactive Feature Pack 1.0.1.

To be precise, the Galleon coordinates I use, are

wildfly@maven(org.jboss.universe:community-universe):current#21.0.2.Final
org.wildfly.extras.reactive:wildfly-microprofile-reactive-feature-pack:1.0.1.Final

For a rather simple setup, I fail to deploy with

Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type ExecutionHolder with qualifiers @Default
  at injection point [BackedAnnotatedField] @Inject io.smallrye.reactive.messaging.kafka.KafkaConnector.executionHolder
  at io.smallrye.reactive.messaging.kafka.KafkaConnector.executionHolder(KafkaConnector.java:0)
    at org.jboss.weld.core@3.1.5.Final//org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:378)
    at org.jboss.weld.core@3.1.5.Final//org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:290)
    at org.jboss.weld.core@3.1.5.Final//org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:143)
    at org.jboss.weld.core@3.1.5.Final//org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:164)
    at org.jboss.weld.core@3.1.5.Final//org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:526)
    at org.jboss.weld.core@3.1.5.Final//org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:64)
    at org.jboss.weld.core@3.1.5.Final//org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:62)
    at org.jboss.weld.core@3.1.5.Final//org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:62)
    at org.jboss.weld.core@3.1.5.Final//org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:55)
    at org.jboss.weld.core@3.1.5.Final//org.zeroturnaround.jrebel.weld2.Weld2ReloadLock$CallableParentThreadWrapper.call(Weld2ReloadLock.java:103)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:834)
    at org.jboss.threads@2.4.0.Final//org.jboss.threads.JBossThread.run(JBossThread.java:513)

Any hints as to how to resolve this? Should the selected versions be compatible? The same application code deploys with WildFly 20.0.1 and 1.0.0.Beta2, but I'd really like to move to the final release...

kabir commented 3 years ago

Can you try with 1.0.2 of the feature pack? I released it a few days ago. I don't know if that fixes this problem but it would be nice to debug with the latest version :)

lorenzleutgeb commented 3 years ago

Judging from the compile time dependencies of 1.0.2.Final, it is meant for WildFly 22. I was reluctant to test that against WildFly 20, fearing compatibility issues. Do you think these versions would work together?

Also, do you have any reason to hope that this resolves the issue (e.g. you changed related code), or is it just "let's try a newer version and see" approach to the problem (which is completely fine, I am just trying to understand a bit more)?

kabir commented 3 years ago

1.0.2 should work with 21 and 22. Something changed in WildFly between 20 and 22. If it does not work, let me know

kabir commented 3 years ago

I see what I wrote didn't totally make sense but I have just verified I can deploy a Reactive Messaging + Kafka application to a server provisioned with:

~/libs/galleon-4.2.5.Final/bin/galleon.sh install wildfly:current#21.0.2.Final --dir=wildfly
~/libs/galleon-4.2.5.Final/bin/galleon.sh install org.wildfly.extras.reactive:wildfly-microprofile-reactive-feature-pack:1.0.2.Final  --layers=microprofile-reactive-all --dir=wildfly 
kabir commented 3 years ago

@lorenzleutgeb closing since I heard nothing back. If you still have problems let me know