You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Mark Thomas (Confluence)" <no...@apache.org> on 2020/06/17 17:20:04 UTC
[CONF] Apache Tomcat > Servlet TCK 5.0 (DRAFT)
There's **1 new edit** on this page
---
|
---
| | [![page icon](cid:page-
icon)](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=158863856&src=mail&src.mail.product=confluence-
server&src.mail.timestamp=1592414404512&src.mail.notification=com.atlassian.confluence.plugins.confluence-
notifications-batch-plugin%3Abatching-
notification&src.mail.recipient=8aa9809569d423cd016a0413306f00db&src.mail.action=view
"page icon")
---
[Servlet TCK 5.0
(DRAFT)](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=158863856&src=mail&src.mail.product=confluence-
server&src.mail.timestamp=1592414404512&src.mail.notification=com.atlassian.confluence.plugins.confluence-
notifications-batch-plugin%3Abatching-
notification&src.mail.recipient=8aa9809569d423cd016a0413306f00db&src.mail.action=view
"Servlet TCK 5.0 \(DRAFT\)")
| | | | | ![](cid:avatar_0e7b7d8d93bf536b4e2f8f7984d49115) | | Mark
Thomas edited this page
---
|
| | Here's what 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
...
---
| | | [Go to page
history](https://cwiki.apache.org/confluence/pages/viewpreviousversions.action?pageId=158863856&src=mail&src.mail.product=confluence-
server&src.mail.timestamp=1592414404512&src.mail.notification=com.atlassian.confluence.plugins.confluence-
notifications-batch-plugin%3Abatching-
notification&src.mail.recipient=8aa9809569d423cd016a0413306f00db "Go to page
history")
---
---
| [View
page](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=158863856&src=mail&src.mail.product=confluence-
server&src.mail.timestamp=1592414404512&src.mail.notification=com.atlassian.confluence.plugins.confluence-
notifications-batch-plugin%3Abatching-
notification&src.mail.recipient=8aa9809569d423cd016a0413306f00db&src.mail.action=view)
---
| | [Stop watching
space](https://cwiki.apache.org/confluence/users/removespacenotification.action?spaceKey=TOMCAT&src=mail&src.mail.product=confluence-
server&src.mail.timestamp=1592414404512&src.mail.notification=com.atlassian.confluence.plugins.confluence-
notifications-batch-plugin%3Abatching-
notification&src.mail.recipient=8aa9809569d423cd016a0413306f00db&src.mail.action=stop-
watching&jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ4c3JmOjhhYTk4MDk1NjlkNDIzY2QwMTZhMDQxMzMwNmYwMGRiIiwicXNoIjoiNGVhNDNjYTM0YTJhMjlkN2U2NDJlMDdlNDYxNWFhNmUyYjA4YjIxZjYzYjZiNjgwMGJmZDllY2U1N2EwZTY1NyIsImlzcyI6ImNvbmZsdWVuY2Vfbm90aWZpY2F0aW9uc0FSRUgtWFVEMS1QT1FHLUNTQU8iLCJleHAiOjE1OTMwMTkyMDQsImlhdCI6MTU5MjQxNDQwNH0.C_0k397v1kbBMvwdQzoN9L8r0VpK8Y5D-vCtqYCsZCo)
| •
---|---
[Manage
notifications](https://cwiki.apache.org/confluence/users/editmyemailsettings.action?src=mail&src.mail.product=confluence-
server&src.mail.timestamp=1592414404512&src.mail.notification=com.atlassian.confluence.plugins.confluence-
notifications-batch-plugin%3Abatching-
notification&src.mail.recipient=8aa9809569d423cd016a0413306f00db&src.mail.action=manage)
---
| ![Confluence logo big](cid:footer-desktop-logo)
---
This message was sent by Atlassian Confluence 7.5.0
![](cid:footer-mobile-logo)
---