It seems the problematic use-case is an EAR with multiple WARs and @ApplicationScoped bean deployed to a shared lib and injecting the ServletContext. Application context is shared accross the whole app and so the first ServletContext requested will be injected into all injection points with ServletContext required type.
|