Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

</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 this

    2 x security test: clientCertTest because the key/cert are too small ( SSL routines::ee key too small)

Fixed TCK bugs

  • .
    • (com/sun/ts/tests/servlet/spec/defaultcontextpath/URLClient.java#getDefaultContextPathTest)
    PR 338
    • Incorrect 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 8
    • Fix regression in error page tests (1 failure)
    • Java 11 issues with HTTP/2 client