CDI @Any annotation trouble on EAP8, JDK11 - Red Hat Customer Portal (original) (raw)

We struggle a lot to get our app running on EAP 8.0 after upgrade to Jakarta (EE10). We are using JDK11. We get the app running locally, but on the server (only difference is win vs unix) the CDI annotation @Any doesn't work for as it should.

We have this code:

@Inject
    public void setServiceFacades(@Any final Instance<ServiceFacade> serviceFacades) {
/code using serviceFacades/
    }

And we are guessing that the @Any annotation can't access classes from other modules. We used different approaches to set up this access between modules, but locally all of them works, on the unix server though, serviceFacades is always empty.