|
Hi Jens,
I created simple SE app reproducer wrt what I guess it's the problem about. You can simply run java -cp target/weld-se.jar:target/cdi-se-app1.jar com.redhat.tremes.Main. This reproducer fails with:
Exception in thread "main" org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type MockFile with qualifiers @Default
|
at injection point [BackedAnnotatedParameter] Parameter 2 of [BackedAnnotatedMethod] private static com.redhat.tremes.MockFileObserver.lambda$onFile$0(@Observes MockFile, MockFile)
|
at com.redhat.tremes.MockFileObserver.lambda$onFile$0(MockFileObserver.java:0)
|
|
at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:359)
|
at org.jboss.weld.bootstrap.ConcurrentValidator$4.doWork(ConcurrentValidator.java:108)
|
at org.jboss.weld.bootstrap.ConcurrentValidator$4.doWork(ConcurrentValidator.java:103)
|
at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:60)
|
at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:53)
|
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
|
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
|
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
|
at java.lang.Thread.run(Thread.java:745)
|
This is related to https://issues.jboss.org/browse/WELD-2019. If you try to change Weld version to 2.2.16.SP1 then you shouldn't see any failures and you should see "I HAVE 1 MATCHING MOCK FILES". Can you please verify or provide more details?
|