Sun GlassFish Enterprise Server v3 Application Deployment Guide

About the Enterprise Server Deployment Descriptors

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 Enterprise Server deployment descriptors are located in the as-install/lib/dtds directory.

The Enterprise 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.


Note –

Do not edit the DTD files; their contents change only with new versions of Enterprise Server.


The following table lists the Enterprise Server deployment descriptors and their DTD files.

Table B–1 Enterprise Server Deployment Descriptors and DTDs

Deployment Descriptor 

DTD File 

Description 

sun-application.xml

sun-application_6_0-0.dtd

Configures an entire Java EE application (EAR file).  

sun-web.xml

sun-web-app_3_0-0.dtd

Configures a web application (WAR file). 

sun-ejb-jar.xml

sun-ejb-jar_3_1-0.dtd

Configures an enterprise bean (EJB JAR file). 

sun-cmp-mappings.xml

sun-cmp-mapping_1_2.dtd

Configures container-managed persistence for an EJB 2.0 or 2.1 entity bean.  

sun-application-client.xml

sun-application-client_6_0-0.dtd

Configures an Application Client Container (ACC) client (JAR file).  

sun-acc.xml

sun-application-client-container_1_2.dtd

Configures the Application Client Container. This is more of a configuration file than a deployment descriptor. Enterprise Server provides a default file in the domain-dir/config directory. Specifying a different file is optional.

sun-resources.xml

sun-resources_1_4.dtd

Configures application-scoped resources.