We're updating the issue view to help you get more done. 

Make the setting of the AJP port optional

Description

When starting Tomcat with Cargo then start fails if in Tomcat server.xml is no AJP-Connector specified. The following error occurs:

1 Execution default-cli of goal org.codehaus.cargo:cargo-maven2-plugin:1.4.17-SNAPSHOT:run failed: Can not modify XML file .../server.xml: Node //Server/Service/Connector[@protocol='AJP/1.3'] not found in file .../server.xml -> [Help 1]

It isn't possible to deactivate the replacement of the AJP-Connector. AJP is only need when running behind mod_jk and if you don't want to open the AJP-Port with Tomcat this isn't possible with cargo.

The replacement is specified in Tomcat5xStandaloneLocalConfiguration.java

I think the error could be ignored if not possible to replace the value.
XmlReplacementDetails.java has already the option to ignore such errors.

Status

Assignee

Wolfgang Klaus

Reporter

Wolfgang Klaus

Components

Fix versions

Priority

High