Versions Compared

Key

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

Running

Tomcat

This is a work in progress while I figure out which settings required for  the Servlet 4.0 TCK ar still required for the Servlet 5.0 TCK.

setenv.[sh|bat]

Set the following system properties

  • -Dorg.apache.catalina.STRICT_SERVLET_COMPLIANCE=true

context.xml

Make the following changes:

<Context crossContext="true" >
    ...

</Context>

server.xml

<Connector ... >
    <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" />

...

        </SSLHostConfig>

    </Connector>

web.xml

Remove the sections setting the default character encoding for requests and responses to UTF-8.

Tomcat config for Servlet 4.0

setenv.[sh|bat]

Set the following system properties

  • -Dorg.apache.catalina.STRICT_SERVLET_COMPLIANCE=true
  • -Dorg.apache.tomcat.util.http.ServerCookie.FWD_SLASH_IS_SEPARATOR=false
  • -Duser.language=en
  • -Duser.country=US

context.xml

Make the following changes:

...

  <CookieProcessor className="org.apache.tomcat.util.http.LegacyCookieProcessor" alwaysAddExpires="true" forwardSlashIsSeparator="false" />

    ...

</Context>

tomcat-users.xml

Make the following changes:

<user username="CN=CTS, OU=Java Software, O=Sun Microsystems Inc., L=Burlington, ST=MA, C=US" roles="Administrator"/>
<user username="j2ee" password="j2ee" roles="Administrator,Employee" />
<user username="javajoe" password="javajoe" roles="VP,Manager" />

server.xml

Enable h2c on port 8080, and add some trailer headers

...

Client certificate tests: see below

Test Suite

Download latest nightly build

...

Accept the defaults and then run the tests

Expected results

A default 10.0.x build (as of 2020-06-17) with the above configuration and the nightly TCK (as of yyyy-mm-dd) triggers 33+ test failures

...