Feature name
Java API
Ant tasks
Maven 3 plugin
Comment
Container Instantiation
ContainerFactory.createContainer("tomcat4x"...)
<cargo containerId="tomcat4x".../>
<containerId>tomcat4x</containerId>
Local Container
Container Classpath
Container Start
Container Stop
Container Timeout
Embedded Container
Installed Container
o.c.c.c.tomcat.Tomcat4xInstalledLocalContainer
Passing system properties
Installer
Remote Container
o.c.c.c.tomcat.Tomcat4xRemoteContainer
Standalone Local Configuration for installed container
o.c.c.c.tomcat.Tomcat4xStandaloneLocalConfiguration
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.Tomcat4xRuntimeConfiguration
Static deployment of WAR
Does not support META-INF/context.xml files yet
META-INF/context.xml
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
Remote Deployer
o.c.c.c.tomcat.Tomcat4xRemoteDeployer
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
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.context.reloadable
TomcatPropertySet.CONTEXT_RELOADABLE
cargo.tomcat.copywars
TomcatPropertySet.COPY_WARS
true
cargo.tomcat.uriencoding
TomcatPropertySet.URI_ENCODING
ISO-8859-1
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.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-4/v4.1.40/bin/apache-tomcat-4.1.40.zip