Home
Architecture
Features
License
Credits
Installation
Downloads
Usage
Quick start
Java API
Functional testing with JUnit
Ant tasks
Maven 3 plugin
Cargo Daemon
Getting help
Articles
Mailing lists
Issues
Geronimo
Geronimo 1.x
Geronimo 2.x
Geronimo 3.x
GlassFish
GlassFish 2.x
GlassFish 3.x
GlassFish 4.x
GlassFish 5.x
GlassFish 6.x
GlassFish 7.x
GlassFish 8.x
JBoss
JBoss 3.x
JBoss 4.x
JBoss 4.2.x
JBoss 5.x
JBoss 5.1.x
JBoss 6.x
JBoss 6.1.x
JBoss 7.x
JBoss 7.1.x
JBoss 7.2.x
JBoss 7.3.x
JBoss 7.4.x
JBoss 7.5.x
Jetty
Jetty 5.x
Jetty 6.x
Jetty 7.x
Jetty 8.x
Jetty 9.x
Jetty 10.x
Jetty 11.x
Jetty 12.x
Jo!
jo! 1.x
JOnAS
JOnAS 4.x
JOnAS 5.x
JRun
JRun 4.x
Orion/OC4J
OC4J 9.x
OC4J 10.x
Payara
Resin
Resin 3.x
Resin 3.1.x
Resin 4.x
Tomcat
Tomcat 4.x
Tomcat 5.x
Tomcat 6.x
Tomcat 7.x
Tomcat 8.x
Tomcat 9.x
Tomcat 10.x
Tomcat 11.x
TomEE
TomEE 1.x
TomEE 7.x
TomEE 8.x
TomEE 9.x
TomEE 10.x
WebLogic
WebLogic 8.x
WebLogic 9.x
WebLogic 10.x
WebLogic 10.3.x
WebLogic 12.x
WebLogic 12.1.x
WebLogic 12.2.x
WebLogic 14.x
WebLogic 15.x
WebSphere
WebSphere 8.5.x
WebSphere 9.x
WebSphere Liberty
WildFly
WildFly 8.x
WildFly 9.x
WildFly 10.x
WildFly 11.x
WildFly 12.x
WildFly 13.x
WildFly 14.x
WildFly 15.x
WildFly 16.x
WildFly 17.x
WildFly 18.x
WildFly 19.x
WildFly 20.x
WildFly 21.x
WildFly 22.x
WildFly 23.x
WildFly 24.x
WildFly 25.x
WildFly 26.x
WildFly 27.x
WildFly 28.x
WildFly 29.x
WildFly 30.x
WildFly 31.x
WildFly 32.x
WildFly 33.x
WildFly 34.x
WildFly 35.x
WildFly 36.x
WildFly 37.x
WildFly 38.x
WildFly 39.x
WildFly Swarm
Gradle
Mule container
Project structure
Roadmap
Source code
Importing sources
Building
Contributing
Code style
Adding a container
Continous integration
Release procedure
Feature name
Comment
Container Instantiation
ContainerFactory.createContainer("glassfish4x"...)
<cargo containerId="glassfish4x".../>
<containerId>glassfish4x</containerId>
Local Container
Container Classpath
Container Start
Container Stop
Container Timeout
Embedded Container
Installed Container
o.c.c.c.glassfish.GlassFish4xInstalledLocalContainer
Passing system properties
Installer
Remote Container
o.c.c.c.glassfish.GlassFish4xRemoteContainer
Standalone Local Configuration for installed container
o.c.c.c.glassfish.GlassFish4xStandaloneLocalConfiguration
Standalone Local Configuration for embedded container
Existing Local Configuration for installed container
o.c.c.c.glassfish.GlassFishExistingLocalConfiguration
Existing Local Configuration for embedded container
Runtime Configuration
o.c.c.c.glassfish.GlassFish4xRuntimeConfiguration
Static deployment of WAR
Static deployment of expanded WAR
Static deployment of EJB
Static deployment of EAR
Static deployment of RAR
Static deployment of files
Static deployment of OSGi Bundles
Installed Deployer
o.c.c.c.glassfish.GlassFish4xInstalledLocalDeployer
Embedded Deployer
Remote Deployer
o.c.c.c.glassfish.GlassFish4xRemoteDeployer
Adding arguments to the Deployer
The GlassFish installed deployer allows for additional deployment and undeployment arguments by adding properties prefixed with GlassFishPropertySet.DEPLOY_ARG_PREFIX and GlassFishPropertySet.UNDEPLOY_ARG_PREFIX respectively followed by a number starting at 1.
GlassFishPropertySet.DEPLOY_ARG_PREFIX
GlassFishPropertySet.UNDEPLOY_ARG_PREFIX
1
Debugging
The tables below list both the general configuration properties as well as the container-specific ones.
Property name
Java Property
Supported?
Default value
Javadoc
cargo.glassfish.admin.port
GlassFishPropertySet.ADMIN_PORT
4848
cargo.glassfish.deploy.ignoreDeployableName
GlassFishPropertySet.DEPLOY_IGNORE_DEPLOYABLE_NAME
false
cargo.glassfish.domain.debug
GlassFishPropertySet.DEBUG_MODE
cargo.glassfish.domain.jmxPort
GlassFishPropertySet.JMX_ADMIN_PORT
8686
cargo.glassfish.domain.name
GlassFishPropertySet.DOMAIN_NAME
cargo-domain
cargo.glassfish.http.ssl.port
GlassFishPropertySet.HTTPS_PORT
8181
cargo.glassfish.java.debugger.port
GlassFishPropertySet.DEBUGGER_PORT
9009
cargo.glassfish.jms.port
GlassFishPropertySet.JMS_PORT
7676
cargo.glassfish.orb.listener.port
GlassFishPropertySet.IIOP_PORT
3700
cargo.glassfish.orb.mutualauth.port
GlassFishPropertySet.IIOP_MUTUAL_AUTH_PORT
3920
cargo.glassfish.orb.ssl.port
GlassFishPropertySet.IIOPS_PORT
3820
cargo.glassfish.osgi.shell.telnet.port
GlassFishPropertySet.OSGI_SHELL_PORT
6666
cargo.glassfish.portbase
GlassFishPropertySet.PORT_BASE
N/A
cargo.glassfish.removeDefaultDatasource
GlassFishPropertySet.REMOVE_DEFAULT_DATASOURCE
true
cargo.hostname
GeneralPropertySet.HOSTNAME
localhost
cargo.java.home
GeneralPropertySet.JAVA_HOME
JAVA_HOME version 7 or newer
cargo.jvmargs
GeneralPropertySet.JVMARGS
cargo.logging
GeneralPropertySet.LOGGING
medium
cargo.port.offset
GeneralPropertySet.PORT_OFFSET
0
cargo.process.spawn
GeneralPropertySet.SPAWN_PROCESS
cargo.protocol
GeneralPropertySet.PROTOCOL
http
cargo.remote.password
RemotePropertySet.PASSWORD
adminadmin
cargo.remote.username
RemotePropertySet.USERNAME
admin
cargo.runtime.args
GeneralPropertySet.RUNTIME_ARGS
cargo.servlet.port
ServletPropertySet.PORT
8080
cargo.servlet.users
ServletPropertySet.USERS
cargo.standalone.ignoreNonExistingProperties
GeneralPropertySet.IGNORE_NON_EXISTING_PROPERTIES
cargo.start.jvmargs
GeneralPropertySet.START_JVMARGS
Datasource and Resource configuration
In addition to the forementioned properties, this container configuration can also set up datasources and/or resources.
For more details, please read: DataSource and Resource Support.
Before using the GlassFish remote deployer, please read: JSR88
cargo.glassfish.target
GlassFishPropertySet.TARGET
cargo.remote.timeout
RemotePropertySet.TIMEOUT
120000
This container is automatically tested by the Continous Integration (CI) system every time there is a code change. The server used for tests is downloaded from: https://repo.maven.apache.org/maven2/org/glassfish/main/distributions/glassfish/4.1.2/glassfish-4.1.2.zip
Moreover, the below other branch is also tested by the CI system:
Branches not tested by the CI might not be consistently supported.