The Java EE 6 Tutorial

Configuration Files

You must create an empty beans.xml file to indicate to GlassFish Server that your application is a CDI application. This file can have content in some situations, but not in simple applications like this one.

Your application also needs the basic web application deployment descriptors web.xml and sun-web.xml. These configuration files are located in the following directory:

tut-install/examples/cdi/simplegreeting/web/WEB-INF