I am a very newbie in CDI. This is my FIRST example and I am trying to run it. Having searched the internet I wrote the following code: Class that I want to be injected
At me worked with this command:
asadmin set configs.config.server-config.cdi-service.enable-implicit-cdi=false
So disable the enable-implicit-cdi worked for me.