This page has been automatically generated by Cargo's build. Do not edit it directly as it'll be overwritten next time it's generated again.

Container Features

Feature name

Java API

Ant tasks

Maven 3 plugin

Comment

Container Instantiation

(tick) ContainerFactory.createContainer("jetty9x"...)

(tick) <cargo containerId="jetty9x".../>

(tick) <containerId>jetty9x</containerId>

 

Local Container

(tick)

(tick)

(tick)

 

  Container Classpath

(tick)

(tick)

(tick)

 

  Container Start

(tick)

(tick)

(tick)

 

  Container Stop

(tick)

(tick)

(tick)

 

  Container Timeout

(tick)

(tick)

(tick)

 

  Embedded Container

(tick) o.c.c.c.jetty.Jetty9xEmbeddedLocalContainer

(tick)

(tick)

 

  Installed Container

(tick) o.c.c.c.jetty.Jetty9xInstalledLocalContainer

(tick)

(tick)

 

   Passing system properties

(tick)

(tick)

(tick)

 

   Installer

(tick)

(tick)

(tick)

 

Remote Container

(tick) o.c.c.c.jetty.Jetty9xRemoteContainer

(tick)

(tick)

 

Configuration Features

Feature name

Java API

Ant tasks

Maven 3 plugin

Comment

Standalone Local Configuration for installed container

(tick) o.c.c.c.jetty.Jetty9xStandaloneLocalConfiguration

(tick)

(tick)

 

Standalone Local Configuration for embedded container

(tick) o.c.c.c.jetty.Jetty9xEmbeddedStandaloneLocalConfiguration

(tick)

(tick)

 

Existing Local Configuration for installed container

(tick) o.c.c.c.jetty.Jetty9xExistingLocalConfiguration

(tick)

(tick)

 

Existing Local Configuration for embedded container

(error)

(error)

(error)

 

Runtime Configuration

(tick) o.c.c.c.jetty.JettyRuntimeConfiguration

(tick)

(tick)

 

Static deployment of WAR

(tick)

(tick)

(tick)

 

Static deployment of expanded WAR

(tick)

(tick)

(tick)

 

Static deployment of EJB

(error)

(error)

(error)

 

Static deployment of EAR

(error)

(error)

(error)

 

Static deployment of RAR

(error)

(error)

(error)

 

Static deployment of files

(error)

(error)

(error)

 

Static deployment of OSGi Bundles

(error)

(error)

(error)

 

Deployer Features

Feature name

Java API

Ant tasks

Maven 3 plugin

Comment

Installed Deployer

(tick) o.c.c.c.jetty.Jetty9x10x11xInstalledLocalDeployer

(tick)

(tick)

 

Embedded Deployer

(tick) o.c.c.c.jetty.Jetty7x8x9x10x11xEmbeddedLocalDeployer

(tick)

(tick)

 

Remote Deployer

(tick) o.c.c.c.jetty.JettyRemoteDeployer

(tick)

(tick)

 

Other Features

Feature name

Java API

Ant tasks

Maven 3 plugin

Comment

Debugging

(tick)

(tick)

(tick)

 

Supported Configuration properties

The tables below list both the general configuration properties as well as the container-specific ones.

Standalone Local Configuration Properties

For installed container o.c.c.c.jetty.Jetty9xInstalledLocalContainer

Property name

Java Property

Supported?

Default value

Javadoc

cargo.hostname

GeneralPropertySet.HOSTNAME

(error)

localhost

 

cargo.java.home

GeneralPropertySet.JAVA_HOME

(tick)

JAVA_HOME version 7 (Jetty 9.0.x, 9.1.x and 9.2.x) or 8 (Jetty 9.3.x and 9.4.x) or newer

(green star)

cargo.jetty.deployer.createContextXml

JettyPropertySet.DEPLOYER_CREATE_CONTEXT_XML

(tick)

true

(green star)

cargo.jetty.realm.name

JettyPropertySet.REALM_NAME

(tick)

Cargo Test Realm

(green star)

cargo.jetty.servlet.default.useFileMappedBuffer

JettyPropertySet.USE_FILE_MAPPED_BUFFER

(tick)

true

(green star)

cargo.jetty.session.path

JettyPropertySet.SESSION_PATH

(tick)

N/A

(green star)

cargo.jvmargs

GeneralPropertySet.JVMARGS

(tick)

N/A

(green star)

cargo.logging

GeneralPropertySet.LOGGING

(tick)

medium

(green star)

cargo.port.offset

GeneralPropertySet.PORT_OFFSET

(tick)

0

(green star)

cargo.process.spawn

GeneralPropertySet.SPAWN_PROCESS

(tick)

false

(green star)

cargo.protocol

GeneralPropertySet.PROTOCOL

(error)

http

 

cargo.runtime.args

GeneralPropertySet.RUNTIME_ARGS

(tick)

N/A

(green star)

cargo.servlet.port

ServletPropertySet.PORT

(tick)

8080

(green star)

cargo.servlet.users

ServletPropertySet.USERS

(tick)

N/A

(green star)

cargo.standalone.ignoreNonExistingProperties

GeneralPropertySet.IGNORE_NON_EXISTING_PROPERTIES

(tick)

N/A

(green star)

cargo.start.jvmargs

GeneralPropertySet.START_JVMARGS

(tick)

N/A

(green star)

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.

Jetty 9.x and above can be configured to run under a Java Security Manager.

For further information on how to achieve this, please refer to the associated tip in the Maven 3 Plugin Tips page.

For embedded container o.c.c.c.jetty.Jetty9xEmbeddedLocalContainer

Property name

Java Property

Supported?

Default value

Javadoc

cargo.hostname

GeneralPropertySet.HOSTNAME

(error)

localhost

 

cargo.java.home

GeneralPropertySet.JAVA_HOME

(tick)

JAVA_HOME version 7 (Jetty 9.0.x, 9.1.x and 9.2.x) or 8 (Jetty 9.3.x and 9.4.x) or newer

(green star)

cargo.jetty.deployer.createContextXml

JettyPropertySet.DEPLOYER_CREATE_CONTEXT_XML

(tick)

true

(green star)

cargo.jetty.realm.name

JettyPropertySet.REALM_NAME

(tick)

Cargo Test Realm

(green star)

cargo.jetty.servlet.default.useFileMappedBuffer

JettyPropertySet.USE_FILE_MAPPED_BUFFER

(tick)

true

(green star)

cargo.jetty.session.path

JettyPropertySet.SESSION_PATH

(tick)

N/A

(green star)

cargo.jvmargs

GeneralPropertySet.JVMARGS

(tick)

N/A

(green star)

cargo.logging

GeneralPropertySet.LOGGING

(error)

medium

 

cargo.port.offset

GeneralPropertySet.PORT_OFFSET

(tick)

0

(green star)

cargo.protocol

GeneralPropertySet.PROTOCOL

(error)

http

 

cargo.runtime.args

GeneralPropertySet.RUNTIME_ARGS

(tick)

N/A

(green star)

cargo.servlet.port

ServletPropertySet.PORT

(tick)

8080

(green star)

cargo.servlet.users

ServletPropertySet.USERS

(tick)

N/A

(green star)

cargo.standalone.ignoreNonExistingProperties

GeneralPropertySet.IGNORE_NON_EXISTING_PROPERTIES

(tick)

N/A

(green star)

cargo.start.jvmargs

GeneralPropertySet.START_JVMARGS

(tick)

N/A

(green star)

Existing Local Configuration Properties

For installed container o.c.c.c.jetty.Jetty9xInstalledLocalContainer

Property name

Java Property

Supported?

Default value

Javadoc

cargo.hostname

GeneralPropertySet.HOSTNAME

(tick)

localhost

(green star)

cargo.java.home

GeneralPropertySet.JAVA_HOME

(tick)

JAVA_HOME version 7 (Jetty 9.0.x, 9.1.x and 9.2.x) or 8 (Jetty 9.3.x and 9.4.x) or newer

(green star)

cargo.jvmargs

GeneralPropertySet.JVMARGS

(tick)

N/A

(green star)

cargo.port.offset

GeneralPropertySet.PORT_OFFSET

(tick)

0

(green star)

cargo.process.spawn

GeneralPropertySet.SPAWN_PROCESS

(tick)

false

(green star)

cargo.protocol

GeneralPropertySet.PROTOCOL

(tick)

http

(green star)

cargo.runtime.args

GeneralPropertySet.RUNTIME_ARGS

(tick)

N/A

(green star)

cargo.servlet.port

ServletPropertySet.PORT

(tick)

8080

(green star)

cargo.start.jvmargs

GeneralPropertySet.START_JVMARGS

(tick)

N/A

(green star)

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.

Please note that the Jetty INI file concept doesn't exist anymore with Jetty 9.1.x onwards.

Runtime Configuration Properties

Before using the Jetty remote deployer, please read: Jetty Remote Deployer

For remote container o.c.c.c.jetty.Jetty9xRemoteContainer

Property name

Java Property

Supported?

Default value

Javadoc

cargo.hostname

GeneralPropertySet.HOSTNAME

(tick)

localhost

(green star)

cargo.jetty.deployer.url

JettyPropertySet.DEPLOYER_URL

(tick)

N/A

(green star)

cargo.remote.password

RemotePropertySet.PASSWORD

(tick)

N/A

(green star)

cargo.remote.timeout

RemotePropertySet.TIMEOUT

(tick)

120000

(green star)

cargo.remote.username

RemotePropertySet.USERNAME

(tick)

N/A

(green star)

cargo.servlet.port

ServletPropertySet.PORT

(tick)

8080

(green star)

Tested On

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-home/9.4.53.v20231009/jetty-home-9.4.53.v20231009.tar.gz