Today I traced nasty error when using PrimeFaces 5.2 and JSF 2.2.12
CDI @ViewScoped bean functionality unavailable
It was caused by missing dependency on CDI-API. See also StackOverflow.