Hello

In order to keep all the information in one place, I have added my comments directly into the GH issue.
See https://github.com/OpenLiberty/open-liberty/issues/33940#issuecomment-3842035966

I have added not only an answer to your question but also several comments on what was stated in the issue.
Hope that helps.

Let's keep the conversation flowing there
Matej



On Tue, Feb 3, 2026 at 2:10 AM Benjamin Confino <BENJAMIC@uk.ibm.com> wrote:
Hello

I recently received the following customer issue: https://github.com/OpenLiberty/open-liberty/issues/33940

The customer is using a library with a CDI extension: https://github.com/eclipse-ee4j/krazo/blob/4.0.1/core/src/main/java/org/eclipse/krazo/cdi/KrazoCdiExtension.java

And that extension calls BeforeBeanAnnotation.addAnnotatedType (via a Utils class) on many types, one of them (KrazoConfig) has no bean defining annotations.

I've found that if I have no beans.xml in the krazo jar, this works fine, and the various injection points expecting a KrazoConfig in this jar are happy. But if I add a beans.xml file with a scanning mode of none, I get UnsatisfiedResolutionExceptions for KrazoConfig.

My question is, is this behaviour expected? And if so please can you point me to the spec that defines this behaviour? 

Regards
Benjamin
Unless otherwise stated above:

IBM United Kingdom Limited
Registered in England and Wales with number 741598
Registered office: Building C, IBM Hursley Office, Hursley Park Road, Winchester, Hampshire SO21 2JN
_______________________________________________
weld-dev mailing list -- weld-dev@lists.jboss.org
To unsubscribe send an email to weld-dev-leave@lists.jboss.org
Privacy Statement: https://www.redhat.com/en/about/privacy-policy
List Archives: https://lists.jboss.org/archives/list/weld-dev@lists.jboss.org/message/TLVRND65LNPR4YI6UFE6BGMBFT2DA727/