...
</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
...
Accept the defaults and then run the tests
Expected results
A default 10.01.x build (as of 10.0.0-M10) build with the above configuration and the 56.0.0 1 TCK triggers 1 test failure with the following JREs:
Adopt OpenJDK 8u275 b01Adopt OpenJDK 11.0.9 b11 (TCK and Tomcat)
those expected faliures:
1 Expected failures
- 1 x default context path test as Tomcat configuration always overrides this
Fixed TCK bugs
- .
- (com/sun/ts/tests/servlet/spec/defaultcontextpath/URLClient.java#getDefaultContextPathTest)
PR 338Incorrect major version (1 failure),Using LF rather an CRLF (15 failures)Strange /j_security_check test (2 failures)Missing annotation marker in Java 8 signature tests (1 failure)Re-do Java 11 signature test based on Java 8Fix regression in error page tests (1 failure)Java 11 issues with HTTP/2 client