Hitachi

uCosminexus Application Server Application and Resource Definition Reference Guide


3.7.2 Mapping with DD

The following table describes the correspondence between the HITACHI WAR Property file and the Deployment Descriptor:

Organization of this subsection

(1) In Servlet 2.3

HITACHI WAR Property file

Deployment Descriptor

Tag name

Occurrence pattern

Tag name

Occurrence pattern

<hitachi-war-property>

Once

<web-app>

Once

<description>

Zero or once

<description>

Zero or once

<display-name>

Once

<display-name>

Zero or once

<icon>

Zero or once

<icon>

Zero or once

<small-icon>

Zero or once

<small-icon>

Zero or once

<large-icon>

Zero or once

<large-icon>

Zero or once

<distributable>

Zero or once

<distributable>

Zero or more times

<context-param>

Zero or more times

<context-param>

Zero or more times

<description>

Zero or once

<description>

Zero or once

<param-name>

Once

<param-name>

Once

<param-value>

Once

<param-value>

Once

<filter-mapping>

Zero or more times

<filter-mapping>

Zero or more times

<filter-name>

Once

<filter-name>

Once

<url-pattern>#1

Once

<url-pattern>#1

Once

<servlet-name>#1

Once

<servlet-name>#1

Once

<listener>

Zero or more times

<listener>

Zero or more times

<listener-class>

Once

<listener-class>

Once

--

--

(Omitted)

--

<session-config>

Zero or once

<session-config>

Zero or once

<session-timeout>

Zero or once

<session-timeout>

Zero or once

<mime-mapping>

Zero or more times

<mime-mapping>

Zero or more times

<extension>

Once

<extension>

Once

<mime-type>

Once

<mime-type>

Once

<welcome-file-list>

Zero or once

<welcome-file-list>

Zero or once

<welcome-file>

One or more times

<welcome-file>

One or more times

<error-page>

Zero or more times

<error-page>

Zero or more times

<error-code>#2

Once

<error-code>#2

Once

<exception-type>#2

Once

<exception-type>#2

Once

<location>

Once

<location>

Once

<taglib>

Zero or more times

<taglib>

Zero or more times

<taglib-uri>

Once

<taglib-uri>

Once

<taglib-location>

Once

<taglib-location>

Once

<security-constraint>

Zero or more times

<security-constraint>

Zero or more times

<display-name>

Zero or once

<display-name>

Zero or once

<web-resource-collection>

One or more times

<web-resource-collection>

One or more times

<description>

Zero or once

<description>

Zero or once

<web-resource-name>

Once

<web-resource-name>

Once

<url-pattern>

Zero or more times

<url-pattern>

Zero or more times

<http-method>

Zero or more times

<http-method>

Zero or more times

<auth-constraint>

Zero or once

<auth-constraint>

Zero or once

<description>

Zero or once

<description>

Zero or once

<role-name>

Zero or more times

<role-name>

Zero or more times

<user-data-constraint>

Zero or once

<user-data-constraint>

Zero or once

<description>

Zero or once

<description>

Zero or once

<transport-guarantee>

Once

<transport-guarantee>

Once

<original-name>

Once

--

--

<login-config>

Zero or once

<login-config>

Zero or once

<auth-method>

Zero or once

<auth-method>

Zero or once

<realm-name>

Zero or once

<realm-name>

Zero or once

<form-login-config>

Zero or once

<form-login-config>

Zero or once

<form-login-page>

Once

<form-login-page>

Once

<form-error-page>

Once

<form-error-page>

Once

<security-role>

Zero or more times

<security-role>

Zero or more times

<description>

Zero or once

<description>

Zero or once

<role-name>

Once

<role-name>

Once

<linked-to>

Zero or once

--

--

<env-entry>

Zero or more times

<env-entry>

Zero or more times

<description>

Zero or once

<description>

Zero or once

<env-entry-name>

Once

<env-entry-name>

Once

<env-entry-type>

Once

<env-entry-type>

Once

<env-entry-value>

Once

<env-entry-value>

Zero or once

<ejb-ref>

Zero or more times

<ejb-ref>

Zero or more times

<description>

Zero or once

<description>

Zero or once

<ejb-ref-name>

Once

<ejb-ref-name>

Once

<ejb-ref-type>

Once

<ejb-ref-type>

Once

<home>

Once

<home>

Once

<remote>

Once

<remote>

Once

<ejb-link>

Zero or once

<ejb-link>

Zero or once

<ejb-local-ref>

Zero or more times

<ejb-local-ref>

Zero or more times

<description>

Zero or once

<description>

Zero or once

<ejb-ref-name>

Once

<ejb-ref-name>

Once

<ejb-ref-type>

Once

<ejb-ref-type>

Once

<local-home>

Once

<local-home>

Once

<local>

Once

<local>

Once

<ejb-link>

Zero or once

<ejb-link>

Zero or once

<resource-ref>

Zero or more times

<resource-ref>

Zero or more times

<description>

Zero or once

<description>

Zero or once

<res-ref-name>

Once

<res-ref-name>

Once

<res-type>

Once

<res-type>

Once

<res-auth>

Once

<res-auth>

Once

<res-sharing-scope>

Zero or once

<res-sharing-scope>

Zero or once

<linked-to>

Zero or once

--

--

<resource-env-ref>

Zero or more times

<resource-env-ref>

Zero or more times

<description>

Zero or once

<description>

Zero or once

<resource-env-ref-name>

Once

<resource-env-ref-name>

Once

<resource-env-ref-type>

Once

<resource-env-ref-type>

Once

<linked-queue>

Zero or once

--

--

<resource-adapter>

Once

--

--

<queue>

Once

--

--

<linked-adminobject>

Zero or once

--

--

<resourceadapter-name>

Once

--

--

<adminobject-name>

Once

--

--

<runtime>

Zero or once

--

--

<context-root>

Once

--

--

--

--

--

--

Legend:

--: No corresponding tag. Alternatively, the description of the occurrence pattern is omitted because the corresponding tag does not exist or the tag is omitted.

(Omitted): The tag is omitted.

#1

Specify either <url-pattern> or <servlet-name>.

#2

Specify either <error-code> or <exception-type>.

(2) In Servlet 2.4

HITACHI WAR Property file

Deployment Descriptor

Tag name

Occurrence pattern

Tag name

Occurrence pattern

<hitachi-war-property>

Once

<web-app>

Once

<description>

Zero or more times

<description>

Zero or more times

<display-name>

One or more times

<display-name>

Zero or more times

<icon>

Zero or more times

<icon>

Zero or more times

<small-icon>

Zero or once

<small-icon>

Zero or once

<large-icon>

Zero or once

<large-icon>

Zero or once

<distributable>

Zero or once

<distributable>

Zero or more times

<context-param>

Zero or more times

<context-param>

Zero or more times

<description>

Zero or more times

<description>

Zero or more times

<param-name>

Once

<param-name>

Once

<param-value>

Once

<param-value>

Once

<filter-mapping>

Zero or more times

<filter-mapping>

Zero or more times

<filter-name>

Once

<filter-name>

Once

<url-pattern>#1

Once

<url-pattern>#1

Once

<servlet-name>#1

Once

<servlet-name>#1

Once

<dispatcher>

Zero, or four times or less

<dispatcher>

Zero, or four times or less

<listener>

Zero or more times

<listener>

Zero or more times

<description>

Zero or more times

<description>

Zero or more times

<display-name>

Zero or more times

<display-name>

Zero or more times

<icon>

Zero or more times

<icon>

Zero or more times

<small-icon>

Zero or once

<small-icon>

Zero or once

<large-icon>

Zero or once

<large-icon>

Zero or once

<listener-class>

Once

<listener-class>

Once

--

--

(Omitted)

--

<session-config>

Zero or more times

<session-config>

Zero or more times

<session-timeout>

Zero or once

<session-timeout>

Zero or once

<mime-mapping>

Zero or more times

<mime-mapping>

Zero or more times

<extension>

Once

<extension>

Once

<mime-type>

Once

<mime-type>

Once

<welcome-file-list>

Zero or more times

<welcome-file-list>

Zero or more times

<welcome-file>

One or more times

<welcome-file>

One or more times

<error-page>

Zero or more times

<error-page>

Zero or more times

<error-code>#2

Once

<error-code>#2

Once

<exception-type>#2

Once

<exception-type>#2

Once

<location>

Once

<location>

Once

<jsp-config>

Zero or more times

<jsp-config>

Zero or more times

<taglib>

Zero or more times

<taglib>

Zero or more times

<taglib-uri>

Once

<taglib-uri>

Once

<taglib-location>

Once

<taglib-location>

Once

<jsp-property-group>

Zero or more times

<jsp-property-group>

Zero or more times

<description>

Zero or more times

<description>

Zero or more times

<display-name>

Zero or more times

<display-name>

Zero or more times

<icon>

Zero or more times

<icon>

Zero or more times

<small-icon>

Zero or once

<small-icon>

Zero or once

<large-icon>

Zero or once

<large-icon>

Zero or once

<url-pattern>

One or more times

<url-pattern>

One or more times

<el-ignored>

Zero or once

<el-ignored>

Zero or once

<page-encoding>

Zero or once

<page-encoding>

Zero or once

<scripting-invalid>

Zero or once

<scripting-invalid>

Zero or once

<is-xml>

Zero or once

<is-xml>

Zero or once

<include-prelude>

Zero or more times

<include-prelude>

Zero or more times

<inclede-coda>

Zero or more times

<inclede-coda>

Zero or more times

<security-constraint>

Zero or more times

<security-constraint>

Zero or more times

<display-name>

Zero or more times

<display-name>

Zero or more times

<web-resource-collection>

One or more times

<web-resource-collection>

One or more times

<description>

Zero or more times

<description>

Zero or more times

<web-resource-name>

Once

<web-resource-name>

Once

<url-pattern>

One or more times

<url-pattern>

One or more times

<http-method>

Zero or more times

<http-method>

Zero or more times

<auth-constraint>

Zero or once

<auth-constraint>

Zero or once

<description>

Zero or more times

<description>

Zero or more times

<role-name>

Zero or more times

<role-name>

Zero or more times

<user-data-constraint>

Zero or once

<user-data-constraint>

Zero or once

<description>

Zero or more times

<description>

Zero or more times

<transport-guarantee>

Once

<transport-guarantee>

Once

<original-name>

Once

--

--

<login-config>

Zero or more times

<login-config>

Zero or more times

<auth-method>

Zero or once

<auth-method>

Zero or once

<realm-name>

Zero or once

<realm-name>

Zero or once

<form-login-config>

Zero or once

<form-login-config>

Zero or once

<form-login-page>

Once

<form-login-page>

Once

<form-error-page>

Once

<form-error-page>

Once

<security-role>

Zero or more times

<security-role>

Zero or more times

<description>

Zero or more times

<description>

Zero or more times

<role-name>

Once

<role-name>

Once

<linked-to>

Zero or once

--

--

<env-entry>

Zero or more times

<env-entry>

Zero or more times

<description>

Zero or more times

<description>

Zero or more times

<env-entry-name>

Once

<env-entry-name>

Once

<env-entry-type>

Once

<env-entry-type>

Once

<env-entry-value>

Once

<env-entry-value>

Zero or once

<injection-target>

Zero or more times

--

--

<injection-target-class>

Once

--

--

<injection-target-name>

Once

--

--

<ejb-ref>

Zero or more times

<ejb-ref>

Zero or more times

<description>

Zero or more times

<description>

Zero or more times

<ejb-ref-name>

Once

<ejb-ref-name>

Once

<ejb-ref-type>

Once

<ejb-ref-type>

Once

<home>

Once

<home>

Once

<remote>

Once

<remote>

Once

<ejb-link>

Zero or once

<ejb-link>

Zero or once

<injection-target>

Zero or more times

--

--

<injection-target-class>

Once

--

--

<injection-target-name>

Once

--

--

<ejb-local-ref>

Zero or more times

<ejb-local-ref>

Zero or more times

<description>

Zero or more times

<description>

Zero or more times

<ejb-ref-name>

Once

<ejb-ref-name>

Once

<ejb-ref-type>

Once

<ejb-ref-type>

Once

<local-home>

Once

<local-home>

Once

<local>

Once

<local>

Once

<ejb-link>

Zero or once

<ejb-link>

Zero or once

<injection-target>

Zero or more times

--

--

<injection-target-class>

Once

--

--

<injection-target-name>

Once

--

--

<resource-ref>

Zero or more times

<resource-ref>

Zero or more times

<description>

Zero or more times

<description>

Zero or more times

<res-ref-name>

Once

<res-ref-name>

Once

<res-type>

Once

<res-type>

Once

<res-auth>

Once

<res-auth>

Once

<res-sharing-scope>

Zero or once

<res-sharing-scope>

Zero or once

<mapped-name>

Zero or once

--

--

<injection-target>

Zero or more times

--

--

<injection-target-class>

Once

--

--

<injection-target-name>

Once

--

--

<linked-to>

Zero or once

--

--

<resource-env-ref>

Zero or more times

<resource-env-ref>

Zero or more times

<description>

Zero or more times

<description>

Zero or more times

<resource-env-ref-name>

Once

<resource-env-ref-name>

Once

<resource-env-ref-type>

Once

<resource-env-ref-type>

Once

<mapped-name>

Zero or once

--

--

<injection-target>

Zero or more times

--

--

<injection-target-class>

Once

--

--

<injection-target-name>

Once

--

--

<linked-queue>

Zero or once

--

--

<resource-adapter>

Once

--

--

<queue>

Once

--

--

<linked-adminobject>

Zero or once

--

--

<resourceadapter-name>

Once

--

--

<adminobject-name>

Once

--

--

<locale-encoding-mapping-list>

Zero or more times

<locale-encoding-mapping-list>

Zero or more times

<locale-encoding-mapping>

One or more times

<locale-encoding-mapping>

One or more times

<locale>

Once

<locale>

Once

<encoding>

Once

<encoding>

Once

<runtime>

Zero or once

--

--

<context-root>

--

--

--

--

--

--

Legend:

--: No corresponding tag. Alternatively, the description of the occurrence pattern is omitted because the corresponding tag does not exist or the tag is omitted.

(Omitted): The tag is omitted.

#1

Specify either <url-pattern> or <servlet-name>.

#2

Specify either <error-code> or <exception-type>.

(3) In Servlet 2.5

HITACHI WAR Property file

Deployment Descriptor

Tag name

Occurrence pattern

Tag name

Occurrence pattern

<hitachi-war-property>

Once

<web-app>

Once

<description>

Zero or more times

<description>

Zero or more times

<display-name>

One or more times

<display-name>

Zero or more times

<icon>

Zero or more times

<icon>

Zero or more times

<small-icon>

Zero or once

<small-icon>

Zero or once

<large-icon>

Zero or once

<large-icon>

Zero or once

<distributable>

Zero or once

<distributable>

Zero or more times

<context-param>

Zero or more times

<context-param>

Zero or more times

<description>

Zero or more times

<description>

Zero or more times

<param-name>

Once

<param-name>

Once

<param-value>

Once

<param-value>

Once

<filter-mapping>

Zero or more times

<filter-mapping>

Zero or more times

<filter-name>

Once

<filter-name>

Once

<url-pattern>#1

One or more times

<url-pattern>#1

One or more times

<servlet-name>#1

One or more times

<servlet-name>#1

One or more times

<dispatcher>

Zero, or four times or less

<dispatcher>

Zero, or four times or less

<listener>

Zero or more times

<listener>

Zero or more times

<description>

Zero or more times

<description>

Zero or more times

<display-name>

Zero or more times

<display-name>

Zero or more times

<icon>

Zero or more times

<icon>

Zero or more times

<small-icon>

Zero or once

<small-icon>

Zero or once

<large-icon>

Zero or once

<large-icon>

Zero or once

<listener-class>

Once

<listener-class>

Once

--

--

(Omitted)

--

<session-config>

Zero or more times

<session-config>

Zero or more times

<session-timeout>

Zero or once

<session-timeout>

Zero or once

<mime-mapping>

Zero or more times

<mime-mapping>

Zero or more times

<extension>

Once

<extension>

Once

<mime-type>

Once

<mime-type>

Once

<welcome-file-list>

Zero or more times

<welcome-file-list>

Zero or more times

<welcome-file>

One or more times

<welcome-file>

One or more times

<error-page>

Zero or more times

<error-page>

Zero or more times

<error-code>#2

Once

<error-code>#2

Either one once or neither

<exception-type>#2

Once

<exception-type>#2

Either one once or neither

<location>

Once

<location>

Once

<jsp-config>

Zero or more times

<jsp-config>

Zero or more times

<taglib>

Zero or more times

<taglib>

Zero or more times

<taglib-uri>

Once

<taglib-uri>

Once

<taglib-location>

Once

<taglib-location>

Once

<jsp-property-group>

Zero or more times

<jsp-property-group>

Zero or more times

<description>

Zero or more times

<description>

Zero or more times

<display-name>

Zero or more times

<display-name>

Zero or more times

<icon>

Zero or more times

<icon>

Zero or more times

<small-icon>

Zero or once

<small-icon>

Zero or once

<large-icon>

Zero or once

<large-icon>

Zero or once

<url-pattern>

One or more times

<url-pattern>

One or more times

<el-ignored>

Zero or once

<el-ignored>

Zero or once

<page-encoding>

Zero or once

<page-encoding>

Zero or once

<scripting-invalid>

Zero or once

<scripting-invalid>

Zero or once

<is-xml>

Zero or once

<is-xml>

Zero or once

<include-prelude>

Zero or more times

<include-prelude>

Zero or more times

<inclede-coda>

Zero or more times

<inclede-coda>

Zero or more times

<deferred-syntax-allowed-as-literal>

Zero or once

<deferred-syntax-allowed-as-literal>

Zero or once

<trim-directive-whitespaces>

Zero or once

<trim-directive-whitespaces>

Zero or once

<security-constraint>

Zero or more times

<security-constraint>

Zero or more times

<display-name>

Zero or more times

<display-name>

Zero or more times

<web-resource-collection>

One or more times

<web-resource-collection>

One or more times

<description>

Zero or more times

<description>

Zero or more times

<web-resource-name>

Once

<web-resource-name>

Once

<url-pattern>

Zero or more times

<url-pattern>

One or more times

<http-method>

One or more times

<http-method>

Zero or more times

<auth-constraint>

Zero or once

<auth-constraint>

Zero or once

<description>

Zero or more times

<description>

Zero or more times

<role-name>

Zero or more times

<role-name>

Zero or more times

<user-data-constraint>

Zero or once

<user-data-constraint>

Zero or once

<description>

Zero or more times

<description>

Zero or more times

<transport-guarantee>

Once

<transport-guarantee>

Once

<original-name>

Once

--

--

<login-config>

Zero or more times

<login-config>

Zero or more times

<auth-method>

Zero or once

<auth-method>

Zero or once

<realm-name>

Zero or once

<realm-name>

Zero or once

<form-login-config>

Zero or once

<form-login-config>

Zero or once

<form-login-page>

Once

<form-login-page>

Once

<form-error-page>

Once

<form-error-page>

Once

<security-role>

Zero or more times

<security-role>

Zero or more times

<description>

Zero or more times

<description>

Zero or more times

<role-name>

Once

<role-name>

Once

<linked-to>

Zero or once

--

--

<env-entry>

Zero or more times

<env-entry>

Zero or more times

<description>

Zero or more times

<description>

Zero or more times

<env-entry-name>

Once

<env-entry-name>

Once

<env-entry-type>

Zero or once

<env-entry-type>

Zero or once

<env-entry-value>

Once

<env-entry-value>

Zero or once

--

--

<mapped-name>

Zero or once

<injection-target>

Zero or more times

<injection-target>

Zero or more times

<injection-target-class>

Once

<injection-target-class>

Once

<injection-target-name>

Once

<injection-target-name>

Once

<ejb-ref>

Zero or more times

<ejb-ref>

Zero or more times

<description>

Zero or more times

<description>

Zero or more times

<ejb-ref-name>

Once

<ejb-ref-name>

Once

<ejb-ref-type>

Zero or once

<ejb-ref-type>

Zero or once

<home>

Zero or once

<home>

Zero or once

<remote>

Zero or once

<remote>

Zero or once

<ejb-link>

Zero or once

<ejb-link>

Zero or once

--

--

<mapped-name>

Zero or once

<injection-target>

Zero or more times

<injection-target>

Zero or more times

<injection-target-class>

Once

<injection-target-class>

Once

<injection-target-name>

Once

<injection-target-name>

Once

<ejb-local-ref>

Zero or more times

<ejb-local-ref>

Zero or more times

<description>

Zero or more times

<description>

Zero or more times

<ejb-ref-name>

Once

<ejb-ref-name>

Once

<ejb-ref-type>

Zero or once

<ejb-ref-type>

Zero or once

<local-home>

Zero or once

<local-home>

Zero or once

<local>

Zero or once

<local>

Zero or once

<ejb-link>

Zero or once

<ejb-link>

Zero or once

--

--

<mapped-name>

Zero or once

<injection-target>

Zero or more times

<injection-target>

Zero or more

<injection-target-class>

Once

<injection-target-class>

Once

<injection-target-name>

Once

<injection-target-name>

Once

<resource-ref>

Zero or more times

<resource-ref>

Zero or more times

<description>

Zero or more times

<description>

Zero or more times

<res-ref-name>

Once

<res-ref-name>

Once

<res-type>

Zero or once

<res-type>

Zero or once

<res-auth>

Zero or once

<res-auth>

Zero or once

<res-sharing-scope>

Zero or once

<res-sharing-scope>

Zero or once

<mapped-name>

Zero or once

<mapped-name>

Zero or once

<injection-target>

Zero or more times

<injection-target>

Once

<injection-target-class>

Once

<injection-target-class>

Once

<injection-target-name>

Once

<injection-target-name>

Once

<linked-to>

Zero or once

--

--

<resource-env-ref>

Zero or more times

<resource-env-ref>

Zero or more times

<description>

Zero or more times

<description>

Zero or more times

<resource-env-ref-name>

Once

<resource-env-ref-name>

Once

<resource-env-ref-type>

Zero or once

<resource-env-ref-type>

Zero or once

<mapped-name>

Zero or once

<mapped-name>

Zero or once

<injection-target>

Zero or more times

<injection-target>

Zero or once

<injection-target-class>

Once

<injection-target-class>

Once

<injection-target-name>

Once

<injection-target-name>

Once

<linked-queue>

Zero or once

--

--

<resource-adapter>

Once

--

--

<queue>

Once

--

--

<linked-adminobject>

Zero or once

--

--

<resourceadapter-name>

Once

--

--

<adminobject-name>

Once

--

--

<persistence-context-ref>

Zero or more times

<persistence-context-ref>

Zero or more times

<description>

Zero or more times

<description>

Zero or more times

<persistence-context-ref-name>

Once

<persistence-context-ref-name>

Once

<persistence-unit-name>

Zero or once

<persistence-unit-name>

Zero or once

<persistence-context-type>

Zero or once

<persistence-context-type>

Zero or once

<persistence-property>

Zero or more times

<persistence-property>

Zero or more times

<name>

Once

<name>

Once

<value>

Once

<value>

Once

--

--

<mapped-name>

Zero or once

<injection-target>

Zero or more times

<injection-target>

Zero or more times

<injection-target-class>

Once

<injection-target-class>

Once

<injection-target-name>

Once

<injection-target-name>

Once

<persistence-unit-ref>

Zero or more times

<persistence-unit-ref>

Zero or more times

<description>

Zero or more times

<description>

Zero or more times

<persistence-unit-ref-name>

Once

<persistence-unit-ref-name>

Once

<persistence-unit-name>

Zero or once

<persistence-unit-name>

Zero or once

--

--

<mapped-name>

Zero or once

<injection-target>

One or more times

<injection-target>

Zero or more times

<injection-target-class>

Once

<injection-target-class>

Once

<injection-target-name>

Once

<injection-target-name>

Once

<post-construct>

Zero or more times

<post-construct>

Zero or more times

<lifecycle-callback-class>

Zero or once

<lifecycle-callback-class>

Zero or once

<lifecycle-callback-method>

Once

<lifecycle-callback-method>

Once

<pre-destroy>

Zero or more times

<pre-destroy>

Zero or more times

<lifecycle-callback-class>

Zero or once

<lifecycle-callback-class>

Zero or once

<lifecycle-callback-method>

Once

<lifecycle-callback-method>

Once

<locale-encoding-mapping-list>

Zero or more times

<locale-encoding-mapping-list>

Zero or more times

<locale-encoding-mapping>

One or more times

<locale-encoding-mapping>

One or more times

<locale>

Once

<locale>

Once

<encoding>

Once

<encoding>

Once

<runtime>

Zero or once

--

--

<context-root>

Once

--

--

--

--

--

--

Legend:

--: No corresponding tag. Alternatively, the description of the occurrence pattern is omitted because the corresponding tag does not exist or the tag is omitted.

(Omitted): The tag is omitted.

#1

Specify either <url-pattern> or <servlet-name>, or both the values.

#2

Specify either <error-code> or <exception-type>.

(4) In Servlet 3.0

HITACHI WAR Property file

Deployment Descriptor

Tag name

Occurrence pattern

Tag name

Occurrence pattern

<hitachi-war-property>

Once

<web-app>

Once

<description>

Zero or more times

<description>

Zero or more times

<display-name>

One or more times

<display-name>

Zero or more times

<icon>

Zero or more times

<icon>

Zero or more times

<small-icon>

Zero or once

<small-icon>

Zero or once

<large-icon>

Zero or once

<large-icon>

Zero or once

<distributable>

Zero or once

<distributable>

Zero or more times

<context-param>

Zero or more times

<context-param>

Zero or more times

<description>

Zero or more times

<description>

Zero or more times

<param-name>

Once

<param-name>

Once

<param-value>

Once

<param-value>

Once

<filter-mapping>

Zero or more times

<filter-mapping>

Zero or more times

<filter-name>

Once

<filter-name>

Once

<url-pattern>#1

One or more times

<url-pattern>#1

One or more times

<servlet-name>#1

One or more times

<servlet-name>#1

One or more times

<dispatcher>

Zero, or four times or less

<dispatcher>

Zero, or four times or less

<listener>

Zero or more times

<listener>

Zero or more times

<description>

Zero or more times

<description>

Zero or more times

<display-name>

Zero or more times

<display-name>

Zero or more times

<icon>

Zero or more times

<icon>

Zero or more times

<small-icon>

Zero or once

<small-icon>

Zero or once

<large-icon>

Zero or once

<large-icon>

Zero or once

<listener-class>

Once

<listener-class>

Once

--

--

(Omitted)

--

<session-config>

Zero or more times

<session-config>

Zero or more times

<session-timeout>

Zero or once

<session-timeout>

Zero or once

<mime-mapping>

Zero or more times

<mime-mapping>

Zero or more times

<extension>

Once

<extension>

Once

<mime-type>

Once

<mime-type>

Once

<welcome-file-list>

Zero or more times

<welcome-file-list>

Zero or more times

<welcome-file>

One or more times

<welcome-file>

One or more times

<error-page>

Zero or more times

<error-page>

Zero or more times

<error-code>#2

Either one once or neither

<error-code>#2

Either one once or neither

<exception-type>#2

Either one once or neither

<exception-type>#2

Either one once or neither

<location>

Once

<location>

Once

<jsp-config>

Zero or more times

<jsp-config>

Zero or more times

<taglib>

Zero or more times

<taglib>

Zero or more times

<taglib-uri>

Once

<taglib-uri>

Once

<taglib-location>

Once

<taglib-location>

Once

<jsp-property-group>

Zero or more times

<jsp-property-group>

Zero or more times

<description>

Zero or more times

<description>

Zero or more times

<display-name>

Zero or more times

<display-name>

Zero or more times

<icon>

Zero or more times

<icon>

Zero or more times

<small-icon>

Zero or once

<small-icon>

Zero or once

<large-icon>

Zero or once

<large-icon>

Zero or once

<url-pattern>

One or more times

<url-pattern>

One or more times

<el-ignored>

Zero or once

<el-ignored>

Zero or once

<page-encoding>

Zero or once

<page-encoding>

Zero or once

<scripting-invalid>

Zero or once

<scripting-invalid>

Zero or once

<is-xml>

Zero or once

<is-xml>

Zero or once

<include-prelude>

Zero or more times

<include-prelude>

Zero or more times

<inclede-coda>

Zero or more times

<inclede-coda>

Zero or more times

<deferred-syntax-allowed-as-literal>

Zero or once

<deferred-syntax-allowed-as-literal>

Zero or once

<trim-directive-whitespaces>

Zero or once

<trim-directive-whitespaces>

Zero or once

<security-constraint>

Zero or more times

<security-constraint>

Zero or more times

<display-name>

Zero or more times

<display-name>

Zero or more times

<web-resource-collection>

One or more times

<web-resource-collection>

One or more times

<description>

Zero or more times

<description>

Zero or more times

<web-resource-name>

Once

<web-resource-name>

Once

<url-pattern>

One or more times

<url-pattern>

One or more times

<http-method>#3

Zero or more times

<http-method>#3

Zero or more times

<http-method-omission>#3

Zero or more times

<http-method-omission>#3

Zero or more times

<auth-constraint>

Zero or once

<auth-constraint>

Zero or once

<description>

Zero or more times

<description>

Zero or more times

<role-name>

Zero or more times

<role-name>

Zero or more times

<user-data-constraint>

Zero or once

<user-data-constraint>

Zero or once

<description>

Zero or more times

<description>

Zero or more times

<transport-guarantee>

Once

<transport-guarantee>

Once

<original-name>

Once

--

--

<login-config>

Zero or more times

<login-config>

Zero or more times

<auth-method>

Zero or once

<auth-method>

Zero or once

<realm-name>

Zero or once

<realm-name>

Zero or once

<form-login-config>

Zero or once

<form-login-config>

Zero or once

<form-login-page>

Once

<form-login-page>

Once

<form-error-page>

Once

<form-error-page>

Once

<security-role>

Zero or more times

<security-role>

Zero or more times

<description>

Zero or more times

<description>

Zero or more times

<role-name>

Once

<role-name>

Once

<linked-to>

Zero or once

--

--

<env-entry>

Zero or more times

<env-entry>

Zero or more times

<description>

Zero or more times

<description>

Zero or more times

<env-entry-name>

Once

<env-entry-name>

Once

<env-entry-type>

Zero or once

<env-entry-type>

Zero or once

<env-entry-value>

Once

<env-entry-value>

Zero or once

--

--

<mapped-name>

Zero or once

<injection-target>

Zero or more times

<injection-target>

Zero or more times

<injection-target-class>

Once

<injection-target-class>

Once

<injection-target-name>

Once

<injection-target-name>

Once

<ejb-ref>

Zero or more times

<ejb-ref>

Zero or more times

<description>

Zero or more times

<description>

Zero or more times

<ejb-ref-name>

Once

<ejb-ref-name>

Once

<ejb-ref-type>

Zero or once

<ejb-ref-type>

Zero or once

<home>

Zero or once

<home>

Zero or once

<remote>

Zero or once

<remote>

Zero or once

<ejb-link>

Zero or once

<ejb-link>

Zero or once

--

--

<mapped-name>

Zero or once

<injection-target>

Zero or more times

<injection-target>

Zero or once

<injection-target-class>

Once

<injection-target-class>

Once

<injection-target-name>

Once

<injection-target-name>

Once

<ejb-local-ref>

Zero or more times

<ejb-local-ref>

Zero or more times

<description>

Zero or more times

<description>

Zero or more times

<ejb-ref-name>

Once

<ejb-ref-name>

Once

<ejb-ref-type>

Zero or once

<ejb-ref-type>

Zero or once

<local-home>

Zero or once

<local-home>

Zero or once

<local>

Zero or once

<local>

Zero or once

<ejb-link>

Zero or once

<ejb-link>

Zero or once

--

--

<mapped-name>

Zero or once

<injection-target>

Zero or more times

<injection-target>

Zero or more

<injection-target-class>

Once

<injection-target-class>

Once

<injection-target-name>

Once

<injection-target-name>

Once

<resource-ref>

Zero or more times

<resource-ref>

Zero or more times

<description>

Zero or more times

<description>

Zero or more times

<res-ref-name>

Once

<res-ref-name>

Once

<res-type>

Zero or once

<res-type>

Zero or once

<res-auth>

Zero or once

<res-auth>

Zero or once

<res-sharing-scope>

Zero or once

<res-sharing-scope>

Zero or once

<mapped-name>

Zero or once

<mapped-name>

Zero or once

<injection-target>

Zero or more times

<injection-target>

Once

<injection-target-class>

Once

<injection-target-class>

Once

<injection-target-name>

Once

<injection-target-name>

Once

<linked-to>

Zero or once

--

--

<resource-env-ref>

Zero or more times

<resource-env-ref>

Zero or more times

<description>

Zero or more times

<description>

Zero or more times

<resource-env-ref-name>

Once

<resource-env-ref-name>

Once

<resource-env-ref-type>

Zero or once

<resource-env-ref-type>

Zero or once

<mapped-name>

Zero or once

<mapped-name>

Zero or once

<injection-target>

Zero or more times

<injection-target>

Zero or once

<injection-target-class>

Once

<injection-target-class>

Once

<injection-target-name>

Once

<injection-target-name>

Once

<linked-queue>

Zero or once

--

--

<resource-adapter>

Once

--

--

<queue>

Once

--

--

<linked-adminobject>

Zero or once

--

--

<resourceadapter-name>

Once

--

--

<adminobject-name>

Once

--

--

<persistence-context-ref>

Zero or more times

<persistence-context-ref>

Zero or more times

<description>

Zero or more times

<description>

Zero or more times

<persistence-context-ref-name>

Once

<persistence-context-ref-name>

Once

<persistence-unit-name>

Zero or once

<persistence-unit-name>

Zero or once

<persistence-context-type>

Zero or once

<persistence-context-type>

Zero or once

<persistence-property>

Zero or more times

<persistence-property>

Zero or more times

<name>

Once

<name>

Once

<value>

Once

<value>

Once

--

--

<mapped-name>

Zero or once

<injection-target>

Zero or more times

<injection-target>

Zero or more times

<injection-target-class>

Once

<injection-target-class>

Once

<injection-target-name>

Once

<injection-target-name>

Once

<persistence-unit-ref>

Zero or more times

<persistence-unit-ref>

Zero or more times

<description>

Zero or more times

<description>

Zero or more times

<persistence-unit-ref-name>

Once

<persistence-unit-ref-name>

Once

<persistence-unit-name>

Zero or once

<persistence-unit-name>

Zero or once

--

--

<mapped-name>

Zero or once

<injection-target>

One or more times

<injection-target>

Zero or more times

<injection-target-class>

Once

<injection-target-class>

Once

<injection-target-name>

Once

<injection-target-name>

Once

<post-construct>

Zero or more times

<post-construct>

Zero or more times

<lifecycle-callback-class>

Zero or once

<lifecycle-callback-class>

Zero or once

<lifecycle-callback-method>

Once

<lifecycle-callback-method>

Once

<pre-destroy>

Zero or more times

<pre-destroy>

Zero or more times

<lifecycle-callback-class>

Zero or once

<lifecycle-callback-class>

Zero or once

<lifecycle-callback-method>

Once

<lifecycle-callback-method>

Once

<locale-encoding-mapping-list>

Zero or more times

<locale-encoding-mapping-list>

Zero or more times

<locale-encoding-mapping>

One or more times

<locale-encoding-mapping>

One or more times

<locale>

Once

<locale>

Once

<encoding>

Once

<encoding>

Once

<runtime>

Zero or once

--

--

<context-root>

Once

--

--

--

--

--

--

Legend:

--: No corresponding tag. Alternatively, the description of the occurrence pattern is omitted because the corresponding tag does not exist or the tag is omitted.

(Omitted): The tag is omitted.

#1

Specify either <url-pattern> or <servlet-name>, or both.

#2

Specify either <error-code> or <exception-type>, or neither.

#3

Specify either <http-method> or <http-method-omission>. You can specify each tag zero or more times.