Hitachi

Hitachi Application Server V10 Definition Reference Guide (For UNIX® Systems)


3.12 glassfish-web.xml

glassfish-web.xml is the Java EE RI DD used to specify the web application (WAR) settings.

Description

glassfish-web.xml is the DD used to specify the web application (WAR) settings, which are unique to Java EE RI.

The root element of the glassfish-web.xml file is glassfish-web-app. The element glassfish-web-app contains child elements and attributes as indicated by the "Element hierarchy". These child elements and attributes may further contain their child elements and attributes.

Schema

<!DOCTYPE glassfish-web-app PUBLIC 
"-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN" 
"http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd">

Storage location

The DD file is stored in the following location:

war_name/WEB-INF directory.

war_name: Represents the archive name of the web application.

Element hierarchy

glassfish-web-app
. context-root
. security-role-mapping
. . role-name
. . principal-name
. . group-name
. servlet
. . servlet-name
. . principal-name
. . webservice-endpoint
. . . port-component-name
. . . endpoint-address-uri
. . . login-config
. . . . auth-method
. . . message-security-binding
. . . . message-security
. . . . . message
. . . . . . java-method
. . . . . . . method-name
. . . . . . . method-params
. . . . . . . . method-param
. . . . . . operation-name
. . . . . request-protection
. . . . . response-protection
. . . transport-guarantee
. . . service-qname
. . . . namespaceURI
. . . . localpart
. . . tie-class
. . . servlet-impl-class
. . . debugging-enabled
. idempotent-url-pattern
. session-config
. . session-manager
. . . manager-properties
. . . . property
. . . . . description
. . session-properties
. . . property
. . . . description
. . cookie-properties
. . . property
. . . . description
. ejb-ref
. . ejb-ref-name
. . jndi-name
. resource-ref
. . res-ref-name
. . jndi-name
. . default-resource-principal
. . . name
. . . password
. resource-env-ref
. . resource-env-ref-name
. . jndi-name
. service-ref
. . service-ref-name
. . port-info
. . . service-endpoint-interface
. . . wsdl-port
. . . . namespaceURI
. . . . localpart
. . . stub-property
. . . call-property
. . . message-security-binding
. . . . message-security
. . . . . message
. . . . . . java-method
. . . . . . . method-name
. . . . . . . method-params
. . . . . . . . method-param
. . . . . . operation-name
. . . . . request-protection
. . . . . response-protection
. . call-property
. . wsdl-override
. . service-impl-class
. . service-qname
. . . namespaceURI
. . . localpart
. message-destination-ref
. . message-destination-ref-name
. . jndi-name
. class-loader
. . property 
. . . description
. jsp-config
. . property
. . . description
. property 
. . description
. valve
. . description
. . property
. . . description
. message-destination
. . message-destination-name
. . jndi-name
. webservice-description
. . webservice-description-name
. . wsdl-publish-location
. version-identifier

Examples

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE glassfish-web-app PUBLIC 
"-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN" 
"http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd">
<glassfish-web-app>
     <session-config>
         <session-manager/>
     </session-config>
     <resource-ref>
         <res-ref-name>mail/Session</res-ref-name>
         <jndi-name>mail/Session</jndi-name>
     </resource-ref>
     <jsp-config/>
</glassfish-web-app>