en.help.ref-uploaddev.html Maven / Gradle / Ivy
Deploy Applications or Modules
Use the Deploy Applications or Modules page to deploy an application.
The Deploy Applications or Modules page contains the following options for all applications.
Additional options appear only after you specify the Location field for the application.
- Location
The location of the archive for the application that you are deploying.
The following options specify from where the archive is accessible and whether the archive is a file or a directory.
- Packaged File to Be Uploaded to the Server
The archive is in a file that resides on or is accessible from the client machine.
The client machine is the host on which you are viewing the Administration Console through a browser.
- Local Packaged File or Directory That Is Accessible From the GlassFish Server
The archive is a file that resides on the server machine, or is an unpackaged application in an exploded directory.
The server machine is the host that is running the GlassFish Server domain administration server.
- Type
The type of the application. Available choices are:
Web Application
Enterprise Application
Application Client
Connector Module
EJB Jar
Ruby Application
Other
Additional options for the various application types are described in the following sections.
Additional Options for a Web Application
If the application type is Web Application, the following options appear.
- Context Root
The path to the application. In the URL of the web application, the context root immediately follows the port number (http://host:port/context-root/...). The context root must start with a forward slash, for example, /hello.
- Application Name
The name of the application.
- Virtual Servers
The virtual servers associated with this application.
- Status
If this option is selected, the application is enabled. This option is selected by default.
- Precompile JSPs
If this option is selected, JavaServer PagesTM (JSPTM) files are precompiled. If this option is disabled, JSP files are compiled at runtime when they are first accessed. This option is disabled by default.
- Run Verifier
If this option is selected, the verifier is run before deployment. If verification fails, deployment is not performed. The verifier examines the structure and content of the file. Verification of large applications is often time-consuming. This option is disabled by default.
- Force Redeploy
If this option is selected, the application is redeployed if it is already deployed. If this option is not selected, an attempt to deploy an application that is already deployed results in an error. This option is disabled by default.
- Libraries
A comma-separated list of library JAR files specific to this module or application. The paths may be absolute or relative. A relative path is relative to domain-dir/lib/applibs. If the path is absolute, the path must be accessible to the domain administration server (DAS), which means it must be under domain-dir. The libraries are made available to the application in the order in which they are specified.
- Description
A description of the application.
Additional Options for an Enterprise Application
If the application type is Enterprise Application, the following options appear.
- Application Name
The name of the application.
- Virtual Servers
The virtual servers associated with this application.
- Status
If this option is selected, the application is enabled. This option is selected by default.
- Precompile JSPs
If this option is selected, JavaServer Pages (JSP) files are precompiled. If this option is disabled, JSP files are compiled at runtime when they are first accessed. This option is disabled by default.
- Run Verifier
If this option is selected, the verifier is run before deployment. If verification fails, deployment is not performed. The verifier examines the structure and content of the file. Verification of large applications is often time-consuming. This option is disabled by default.
- Force Redeploy
If this option is selected, the application is redeployed if it is already deployed. If this option is not selected, an attempt to deploy an application that is already deployed results in an error. This option is disabled by default.
- Java Web Start
If this option is selected, Java Web Start access is permitted for an application client module. This option is disabled by default.
- Libraries
A comma-separated list of library JAR files specific to this application. Specifies an absolute or relative path. A relative path is relative to domain-dir/lib/applibs. If the path is absolute, the path must be accessible to the domain administration server (DAS), which means it must be under domain-dir. The libraries are made available to the application in the order in which they are specified.
- Description
A description of the application.
Additional Options for an Application Client
If the application type is Application Client, the following options appear.
- Application Name
The name of the application.
- Run Verifier
If this option is selected, the verifier is run before deployment. If verification fails, deployment is not performed. The verifier examines the structure and content of the file. Verification of large applications is often time-consuming. This option is disabled by default.
- Force Redeploy
If this option is selected, the application is redeployed if it is already deployed. If this option is not selected, an attempt to deploy an application that is already deployed results in an error. This option is disabled by default.
- Java Web Start
If this option is selected, Java Web Start access is permitted for an application client module. This option is disabled by default.
- Description
A description of the application.
Additional Options for a Connector Module
If the application type is Connector Module, the following options appear.
- Application Name
The name of the application.
- Status
If this option is selected, the application is enabled. This option is selected by default.
- Run Verifier
If this option is selected, the verifier is run before deployment. If verification fails, deployment is not performed. The verifier examines the structure and content of the file. Verification of large applications is often time-consuming. This option is disabled by default.
- Force Redeploy
If this option is selected, the application is redeployed if it is already deployed. If this option is not selected, an attempt to deploy an application that is already deployed results in an error. This option is disabled by default.
- Description
A description of the application.
Additional Options for an EJB Jar
If the application type is EJB Jar, the following options appear.
- Application Name
The name of the application.
- Status
If this option is selected, the application is enabled. This option is selected by default.
- Run Verifier
If this option is selected, the verifier is run before deployment. If verification fails, deployment is not performed. The verifier examines the structure and content of the file. Verification of large applications is often time-consuming. This option is disabled by default.
- Force Redeploy
If this option is selected, the application is redeployed if it is already deployed. If this option is not selected, an attempt to deploy an application that is already deployed results in an error. This option is disabled by default.
- Libraries
A comma-separated list of library JAR files specific to this module or application. Specifies an absolute or relative path. A relative path is relative to domain-dir/lib/applibs. If the path is absolute, the path must be accessible to the domain administration server (DAS), which means it must be under domain-dir. The libraries are made available to the application in the order in which they are specified.
- Description
A description of the application.
Additional Options for a Ruby Application
If the application type is Ruby Application, the following options appear.
- Application Name
The name of the application.
- Context Root
The path to the application. In the URL of the web application, the context root immediately follows the port number (http://host:port/context-root/...). The context root must start with a forward slash, for example, /hello.
- Status
If this option is selected, the application is enabled. This option is selected by default.
- Force Redeploy
If this option is selected, the application is redeployed if it is already deployed. If this option is not selected, an attempt to deploy an application that is already deployed results in an error. This option is disabled by default.
- JRuby Home
The path to the directory where the JRuby container is installed. The default location is as-install/jruby. If you specify a value for this field, the application value overrides the JRuby Home value set for the Ruby container.
- Initial Pool Size
The initial number of JRuby runtimes to start. The value must be greater than or equal to the value in the Minimum Pool Size field and less than or equal to the value in the Maximum Pool Size field. The default value is 1. If you specify a value for this field, the application value overrides the Initial Pool Size value set for the Ruby container.
- Minimum Pool Size
The minimum number of JRuby runtimes in the pool. The value must be less than or equal to the value in the Initial Pool Size field and less than or equal to the value in the Maximum Pool Size field. The default value is 1. If you specify a value for this field, the application value overrides the Minimum Pool Size value set for the Ruby container.
- Maximum Pool Size
The maximum number of JRuby runtimes in the pool. The value must be greater than or equal to the value in the Minimum Pool Size field and greater than or equal to the value in the Initial Pool Size field. The default value is 1. If you specify a value for this field, the application value overrides the Maximum Pool Size value set for the Ruby container.
- Framework
The framework on which the application is to be deployed. Available choices are rails, merb, sinatra, and auto-detection. The default is rails. Setting this property to a value other than auto-detection bypasses the normal, and potentially lengthy, auto-detection process and forces deployment on the specified framework. If the deployed application is not written for the specified framework, errors result.
- Rack Environment
The environment in which the JRuby framework, such as Rails or Merb, runs. Available choices are production, development, and test. The default is development.
- MT-Safe
The thread-safe setting for the framework in which the application will run. This property affects applications started using an auto-detected user-provided startup script. Available choices are:
- true
Specifies that the framework is thread-safe and therefore does not need a pool created for it.
- false
Specifies that the application starts with a pool of application instances, and each instance of the application is accessed by one thread at a time.
- default
The GlassFish Server tries to detect thread safety automatically. This value is the default.
This property only affects frameworks being launched where the thread safety cannot be automatically determined. Setting this value to true does not cause an auto-detected Rails 2.1.x application to be launched in thread-safe mode, nor can it be used to force a thread-safe framework to start in pooled mode.
- Virtual Servers
The virtual servers associated with this application.
- Description
A description of the application.
Additional Options for Applications of Type Other
If the application type is Other, the following options appear.
- Application Name
The name of the application.
- Virtual Servers
The virtual servers associated with this application.
- Status
If this option is selected, the application is enabled. This option is selected by default.
- Precompile JSPs
If this option is selected, JavaServer Pages (JSP) files are precompiled. If this option is disabled, JSP files are compiled at runtime when they are first accessed. This option is disabled by default.
- Run Verifier
If this option is selected, the verifier is run before deployment. If verification fails, deployment is not performed. The verifier examines the structure and content of the file. Verification of large applications is often time-consuming. This option is disabled by default.
- Force Redeploy
If this option is selected, the application is redeployed if it is already deployed. If this option is not selected, an attempt to deploy an application that is already deployed results in an error. This option is disabled by default.
- Libraries
A comma-separated list of library JAR files specific to this module or application. Specifies an absolute or relative path. A relative path is relative to domain-dir/lib/applibs. If the path is absolute, the path must be accessible to the domain administration server (DAS), which means it must be under domain-dir. The libraries are made available to the application in the order in which they are specified.
- Description
A description of the application.
Related Tasks
Related asadmin Commands