Feature name
Java API
Ant tasks
Maven 3 plugin
Comment
Container Instantiation
ContainerFactory.createContainer("jetty7x"...)
<cargo containerId="jetty7x".../>
<containerId>jetty7x</containerId>
Local Container
Container Classpath
Container Start
Container Stop
Container Timeout
Embedded Container
o.c.c.c.jetty.Jetty7xEmbeddedLocalContainer
Installed Container
o.c.c.c.jetty.Jetty7xInstalledLocalContainer
Passing system properties
Installer
Remote Container
o.c.c.c.jetty.Jetty7xRemoteContainer
Standalone Local Configuration for installed container
o.c.c.c.jetty.Jetty7xStandaloneLocalConfiguration
Standalone Local Configuration for embedded container
o.c.c.c.jetty.Jetty7xEmbeddedStandaloneLocalConfiguration
Existing Local Configuration for installed container
o.c.c.c.jetty.Jetty7xExistingLocalConfiguration
Existing Local Configuration for embedded container
Runtime Configuration
o.c.c.c.jetty.JettyRuntimeConfiguration
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.jetty.Jetty7x8xInstalledLocalDeployer
Embedded Deployer
o.c.c.c.jetty.Jetty7x8x9x10x11xEmbeddedLocalDeployer
Remote Deployer
o.c.c.c.jetty.JettyRemoteDeployer
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.hostname
GeneralPropertySet.HOSTNAME
localhost
cargo.java.home
GeneralPropertySet.JAVA_HOME
JAVA_HOME version 5 if no datasources are to be deployed, 6 otherwise or newer
cargo.jetty.deployer.createContextXml
JettyPropertySet.DEPLOYER_CREATE_CONTEXT_XML
true
cargo.jetty.realm.name
JettyPropertySet.REALM_NAME
Cargo Test Realm
cargo.jetty.servlet.default.useFileMappedBuffer
JettyPropertySet.USE_FILE_MAPPED_BUFFER
cargo.jetty.session.path
JettyPropertySet.SESSION_PATH
N/A
cargo.jvmargs
GeneralPropertySet.JVMARGS
cargo.logging
GeneralPropertySet.LOGGING
medium
cargo.port.offset
GeneralPropertySet.PORT_OFFSET
0
cargo.process.spawn
GeneralPropertySet.SPAWN_PROCESS
false
cargo.protocol
GeneralPropertySet.PROTOCOL
http
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.
If you specify cargo.runtime.args with --ini=anyfile.ini (where anyfile.ini points to a Jetty INI file), any property set in the Codehaus Cargo Jetty container will be ignored and the ones read from the INI file used instead.
--ini=anyfile.ini
anyfile.ini
Before using the Jetty remote deployer, please read: Jetty Remote Deployer
cargo.jetty.deployer.url
JettyPropertySet.DEPLOYER_URL
cargo.remote.password
RemotePropertySet.PASSWORD
cargo.remote.timeout
RemotePropertySet.TIMEOUT
120000
cargo.remote.username
RemotePropertySet.USERNAME
This container is automatically tested by the Continous Integration system every time there is a code change. The server used for tests is downloaded from: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-distribution/7.6.21.v20160908/jetty-distribution-7.6.21.v20160908.tar.gz