Running
Tomcat
Set the following system properties
- org.apache.tomcat.websocket.DISABLE_BUILTIN_EXTENSIONS=true
- org.apache.tomcat.websocket.ALLOW_UNSUPPORTED_EXTENSIONS=true
- org.apache.tomcat.websocket.STREAMS_DROP_EMPTY_MESSAGES=true
Test Suite
Download latest nightly build
https://download.eclipse.org/ee4j/jakartaee-tck/8.0.1/nightly/websockettck-1.1_latest.zip
Extract to WEBSOCKET_TCK_HOME
Edit $WEBSOCKET_TCK_HOME/bin/ts.jte
You'll need to set the following properties (adjust the paths and values for your environment)
webServerHost=localhost
webServerPort=8080
securedWebServicePort=8443
websocket.api=/home/mark/repos/asf-public/tomcat/trunk/output/build/lib/websocket-api.jar
websocket.classes=/home/mark/repos/asf-public/tomcat/trunk/output/build/lib/tomcat-websocket.jar:/home/mark/repos/asf-public/tomcat/trunk/output/build/lib/servlet-api.jar:/home/mark/repos/asf-public/tomcat/trunk/output/build/lib/tomcat-util.jar:/home/mark/repos/asf-public/tomcat/trunk/output/build/lib/tomcat-api.jar:/home/mark/repos/asf-public/tomcat/trunk/output/build/bin/tomcat-juli.jar
set JAVA_HOME
Run ant gui
Accept the defaults and then run the tests
Expected results
Currently investigating 39 failing tests.
1 unclear specification (URI)
3 Faulty tests (batching)
- 1 x https://github.com/eclipse-ee4j/jakartaee-tck/issues/33
- 2 x https://github.com/eclipse-ee4j/jakartaee-tck/issues/35
8 Tests 'fixed' by appropriate system property configuration
- 4 x extensions (TCK assumes invalid extensions are ignored)
- 4 x exception in encoder leading (incorrectly?) to empty message
9 failures due to concurrent messages
- com/sun/ts/tests/websocket/ee/javax/websocket/remoteendpoint/async/*
- Need to raise a spec issue
9 failures fixed
- 1 x com/sun/ts/tests/websocket/ee/javax/websocket/session/WSClient.java#setTimeout1Test (possibly as side-effect of other fixes)
- 4 x Deployment failure didn't undeploy all WebSockets
- 4 x @PathParam not validated for correct type
9 TBD