When you create a NetBeans JSF project from existing source and the project sources use Contexts and Dependency Injection (CDI), NetBeans indicates that the source code has errors as shown below.
The errors are due to a bug in the 8.0 versions of NetBeans. It does not include a critical library, cdi-api.jar, when it searches for import sources. This problem can be fixed by manually adding the library with the following steps.
A few seconds after adding the cdi-api.jar library the error indications should disappear.