Payara Server Deployment Descriptor Files
Support of GlassFish deployment descriptors
Payara Server Enterprise supports specifying deployment configuration using GlassFish deployment descriptor files.
Payara deployment descriptors
Additionally from version 5.183, payara-web.xml
can be used instead of glassfish-web.xml
. The top level element for the payara-web.xml
file must be payara-web-app
and the schema can be refererenced by:
<!DOCTYPE payara-web-app PUBLIC "-//Payara.fish//DTD Payara Server 4 Servlet 3.0//EN" "https://raw.githubusercontent.com/payara/Payara-Enterprise-Documentation/master/docs/modules/ROOT/pages/schemas/payara-web-app_4.dtd">
Since version 5.184
payara-resources.xml
can also be used instead of glassfish-resources.xml
. The schema can be referenced by:
<!DOCTYPE resources PUBLIC "-//Payara.fish//DTD Payara Server 4 Resource Definitions//EN" "https://raw.githubusercontent.com/payara/Payara-Enterprise-Documentation/master/docs/modules/ROOT/pages/schemas/payara-resources_1_6.dtd">
See the schema reference for the list of deployment descriptor DTD files.
Allowed configuration elements
The following elements are supported in Payara Server on top of elements supported by GlassFish:
glassfish-application.xml
-
classloading-delegate
-
enable-implicit-cdi
-
default-role-mapping
(property) -
whitelist-package
-
scanning-exclude
-
scanning-include
glassfish-web.xml and payara-web.xml
-
container-initialized-enabled
-
default-role-mapping
(property) -
jaxrs-roles-allowed-enabled
-
scanning-exclude
-
scanning-include
-
jsp-config
-
whitelist-package
Deployment Descriptor Precedence Order
When multiple deployment descriptors are present in the same archive, the descriptors are processed with the following precedence order in default mode:
`WebLogic descriptor > Payara descriptor > GlassFish descriptor > Sun descriptor`
The default precedence order can be customized and configured via following system properties:
gfdd.over.wlsdd
property
This system property controls the precedence between GlassFish Server
descriptor and Weblogic Server descriptor when they are both present. When gfdd.over.wlsdd
property is set to true, the descriptors are processed with the following precedence order:
`Payara descriptor > GlassFish descriptor > WebLogic descriptor > Sun descriptor`