The Java EE 6 Tutorial, Volume I

Configuration Files

You must create an empty beans.xml file to indicate to Sun GlassFishTM Enterprise Server v3 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: