...
</Connector>
Enable TLS on port 8443
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true">
<SSLHostConfig protocols="TLSv1.2" truststoreFile="conf/cacerts.jks">
<Certificate certificateKeystoreFile="conf/clientcert.jks"
certificateKeystorePassword="changeit"
type="RSA" />
</SSLHostConfig>
</Connector>
Note: Set protocols="TLSv1.2" to disable TLSv1.3 since the TCK requires post-handshake authentication and the Java 11 client does not support that.
...
Remove the sections setting the default character encoding for requests and responses to UTF-8.
And add the following:
<locale-encoding-mapping-list>
<locale-encoding-mapping>
<locale>ja</locale>
<encoding>Shift_JIS</encoding>
</locale-encoding-mapping>
</locale-encoding-mapping-list>
modules
The signature test needs to have servlet-api.jar and annotations-api.jar in the modules subdirectory.
Test Suite
Download the Jakarta Servlet 6.0.0 1 TCK
https://download.eclipse.org/ee4j/jakartaee-tck/jakartaee10servlet/promoted/epl/6.0/jakarta-servlet-tck-6.0.01.zip
Extract to SERVLET_TCK_HOME
...
A default 10.1.x build with the above configuration and the 6.0.0 1 TCK triggers those expected faliures:
...
- 1 x default context path test as Tomcat configuration always overrides this2 x security test: clientCertTest because the key/cert are too small (SSL routines::ee key too small.
- (com/sun/ts/tests/servlet/spec/defaultcontextpath/URLClient.java#getDefaultContextPathTest)