Feature name
Java API
Ant tasks
Maven 3 plugin
Comment
Container Instantiation
ContainerFactory.createContainer("tomcat5x"...)
<cargo containerId="tomcat5x".../>
<containerId>tomcat5x</containerId>
Local Container
Container Classpath
Container Start
Container Stop
Container Timeout
Embedded Container
o.c.c.c.tomcat.Tomcat5xEmbeddedLocalContainer
Installed Container
o.c.c.c.tomcat.Tomcat5xInstalledLocalContainer
Passing system properties
Installer
Remote Container
o.c.c.c.tomcat.Tomcat5xRemoteContainer
Standalone Local Configuration for installed container
o.c.c.c.tomcat.Tomcat5xStandaloneLocalConfiguration
Standalone Local Configuration for embedded container
Existing Local Configuration for installed container
o.c.c.c.tomcat.TomcatExistingLocalConfiguration
Existing Local Configuration for embedded container
Runtime Configuration
o.c.c.c.tomcat.Tomcat5xRuntimeConfiguration
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.tomcat.TomcatCopyingInstalledLocalDeployer
Embedded Deployer
o.c.c.c.tomcat.TomcatEmbeddedLocalDeployer
Remote Deployer
o.c.c.c.tomcat.Tomcat5xRemoteDeployer
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 4 or newer Due to incompatibilities with its JSP environment, Tomcat 5.x doesn't run on Java 8 and above
cargo.jvmargs
GeneralPropertySet.JVMARGS
N/A
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.rmi.port
GeneralPropertySet.RMI_PORT
8205
cargo.runtime.args
GeneralPropertySet.RUNTIME_ARGS
cargo.servlet.port
ServletPropertySet.PORT
8080
cargo.servlet.users
ServletPropertySet.USERS
admin::manager
cargo.standalone.ignoreNonExistingProperties
GeneralPropertySet.IGNORE_NON_EXISTING_PROPERTIES
cargo.start.jvmargs
GeneralPropertySet.START_JVMARGS
cargo.tomcat.ajp.port
TomcatPropertySet.AJP_PORT
8009
cargo.tomcat.connector.emptySessionPath
TomcatPropertySet.CONNECTOR_EMPTY_SESSION_PATH
true
cargo.tomcat.connector.maxHttpHeaderSize
TomcatPropertySet.CONNECTOR_MAX_HTTP_HEADER_SIZE
cargo.tomcat.context.reloadable
TomcatPropertySet.CONTEXT_RELOADABLE
cargo.tomcat.copywars
TomcatPropertySet.COPY_WARS
cargo.tomcat.uriencoding
TomcatPropertySet.URI_ENCODING
ISO-8859-1
cargo.tomcat.useHttpOnly
TomcatPropertySet.USE_HTTP_ONLY
cargo.tomcat.webappsDirectory
TomcatPropertySet.WEBAPPS_DIRECTORY
webapps
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.
cargo.tomcat.embedded.overrideJavaLogging
TomcatPropertySet.EMBEDDED_OVERRIDE_JAVA_LOGGING
cargo.remote.password
RemotePropertySet.PASSWORD
cargo.remote.timeout
RemotePropertySet.TIMEOUT
7200000
cargo.remote.uri
RemotePropertySet.URI
cargo.remote.username
RemotePropertySet.USERNAME
cargo.tomcat.deploy.update
TomcatPropertySet.DEPLOY_UPDATE
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://archive.apache.org/dist/tomcat/tomcat-5/v5.5.34/bin/apache-tomcat-5.5.34.zip