When a protocol attribute in connector insider server.xml is set as a variable, with value in catalina.properties as shown below, the properties are displayed as "Unknown". The tcserver instance is able to start successfully. However, the command output shows with "Unknown", which is misleading.
david@E320:$ tc-server-10.1 info instance Loading tc Server configuration properties from: /opt/tc-server/10.1/dist/tc-server-10.1.39.A/conf/tc-server-10.1.properties Instance Name: instance CATALINA_BASE: /var/opt/tc-server/10.1/instances/instance CATALINA_HOME: /opt/tc-server/10.1/tc-runtimes/tc-runtime-10.1.39.A JAVA_HOME: /usr/lib/jvm/java-17-openjdk-amd64 tc Runtime Version: 10.1.39.A Unknown port: 8080 Unknown secure: false Unknown address: undefined Running Status: Not running
This issue happens when the protocol property is defined to refer to a variable.
protocol="${connector.protocol}"
This is an unexpected use case. The protocol attribute ought to be configured through a variable.
It is recommended using a constant string instead as a workaround. Here is an example,
protocol="org.apache.coyote.http11.Http11AprProtocol"
This issue will be fixed in the next tc Server 10.1.x and 11.0.x release.