Each deployment descriptor XML file has a corresponding Document Type Definition (DTD) file, which defines the elements, data, and attributes that the deployment descriptor file can contain. The DTD files for the GlassFish Server deployment descriptors are located in the as-install/lib/dtds directory.
The GlassFish Server deployment descriptor files must be readable and writable by the file owners. In each deployment descriptor file, subelements must be defined in the order in which they are listed under each Subelements heading, unless otherwise noted. For general information about DTD files and XML, see the XML specification at http://www.w3.org/TR/REC-xml.
Do not edit the DTD files; their contents change only with new versions of GlassFish Server.
The following table lists the GlassFish Server deployment descriptors and their DTD files.
Table B–1 GlassFish Server Deployment Descriptors and DTDs
Deployment Descriptor |
DTD File |
Description |
---|---|---|
Configures an entire Java EE application (EAR file). |
||
Configures a web application (WAR file). |
||
Configures an enterprise bean (EJB JAR file). |
||
Configures container-managed persistence for an EJB 2.0 or 2.1 entity bean. |
||
Configures an Application Client Container (ACC) client (JAR file). |
||
Configures the Application Client Container. This is more of a configuration file than a deployment descriptor. GlassFish Server provides a default file in the domain-dir/config directory. Specifying a different file is optional. |
||
Configures application-scoped resources. |