While trying to deploy to a managed server on WebLogic 12.2.1 using cargo, I noticed that the cargocpc war is deployed using the autodeploy functionality on WebLogic which currently can only deploy to the Admin Server.
Through configuration is possible to tell cargo to deploy the target war to a managed server (cargo.websphere.server, cargo.servlet.port) but since cargo.servlet.port is used to connect to the managed server and to verify the cargocpc url, is not possible to have a successful container start in this case.
Steps to reproduce:
Execute the cargo ant task with:
cargo.websphere.server: name of managed server
cargo.servlet.port: port of managed server
Cargo connects to the managed server through WLST using the server name and the servlet port
Cargo deploys war file on managed server
Cargo uses autodeploy to deploy cargocpc (AdminServer)
Cargo starts admin server
Cargo start checking if URL <host>:<cargo.servlet.port>/cargocpc is available
Managed server starts successfully
Cargo timeout expires since cargocpc is available at the AdminServer port, not the managed server
Container start fails and file gets undeployed