When you create a new NetBeans JSF project you will want to use Contexts and Dependency Injection (CDI). Unfortunately there is a defect in the 8.0 versions of NetBeans. It does not include a critical library, cdi-api.jar when it searches for import sources. This causes problems when you create new JSF managed beans. This problems can be avoided by manually adding the library before you create them.
First check to see if the library is missing by expanding the
"Libraries" item in the project as shown below.
If there is a file cdi-api.jar
then you do not need to add
it.
If it is missing it can be added with the following steps.
After a few seconds the cdi-api.jar library should appear.