Skip to content

server.xml generating the AJP value from Server Port #146

@cameronbjork-tbg

Description

@cameronbjork-tbg

Describe the bug
SmartTomcat generates a new server.xml in the .SmartTomcat catalina base directory on startup, but incorrectly assigns the HTTP "Server Port" value (80) to the AJP connector port instead of using the default AJP port (8009). There is no AJP port field in the SmartTomcat run configuration to override this.

Expected behavior
The AJP connector in the generated server.xml should use the default AJP port (8009), not the HTTP Server Port value.

Actual behavior
Generated .SmartTomcat/.../conf/server.xml:

<Connector address="127.0.0.1" executor="tomcatThreadPool" maxPostSize="3145728" port="80" protocol="AJP/1.3" redirectPort="443" secretRequired="false"/>

IntelliJ & SmartTomcat Version
IntelliJ IDEA 2025.3.3
SmartTomcat v4.8.0

NOTE: Only started happening after upgrading to 4.8.0. I downgraded to v4.7.5 and am not able to reproduce the issue.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions