This repository is the harness for running the Jakarta EE TCKs against Apache
TomEE — currently the Jakarta EE 11 Web Profile TCK against TomEE 11. Runs
target the TomEE Plume distribution by default; set TOMEE_CLASSIFIER to
webprofile, microprofile, or plus to test another distribution.
A run can test either a TomEE already published to a Maven repository or one built from a specific tag, branch, or commit of apache/tomee — see Test a specific TomEE ref.
The harness uses the TCK's published Maven artifacts, JUnit 5 and Arquillian;
there is no Ant launcher, TSDeployment, or checked-in TCK distribution. A
small smoke module checks the TomEE adapter, the partitioned Platform runner
executes the Web Profile-tagged tests and keeps a reviewed list of known
compatibility gaps, and runner-standalone/ drives the independently
published per-specification TCKs.
KNOWN_ISSUES.md is the central triage list of everything that is currently broken — TomEE product gaps, upstream provider gaps, and remaining harness work — with pointers to the reviewed per-suite exclusion lists that keep the default runs green.
The build uses these centrally managed inputs:
| Input | Coordinate/build | Integrity evidence |
|---|---|---|
| Jakarta EE API | jakarta.platform:jakarta.jakartaee-api:11.0.0 |
Maven Central transport and repository checksums |
| Platform TCK artifacts | jakarta.tck:artifacts-bom:11.0.3 |
SHA-256 in environment/versions.env |
| TCK Arquillian porting library | jakarta.tck.arquillian:tck-porting-lib:11.1.3 |
version selected by the 11.0.3 BOM |
| TomEE distribution under test | org.apache.tomee:apache-tomee:${tomee.version}:${tomee.classifier}:zip |
git commit when built from a ref; otherwise a mutable development snapshot |
| TomEE remote adapter | org.apache.tomee:arquillian-tomee-remote:${tomee.version} |
git commit when built from a ref; otherwise a mutable development snapshot |
| Derby runtime | derbyclient, derbynet, derbyshared, and derbytools 10.15.2.0 |
per-jar SHA-256 values in environment/versions.env |
TomEE comes from one of two places. Built from a git ref, the exact commit
identifies the bytes and no checksum is needed. Resolved from the snapshot
repository instead — the default when TOMEE_VERSION is unset — Maven uses
the current 11.0.0-SNAPSHOT and neither pins nor checksums those changing
bytes. Build from a tag when the harness needs a stable qualification
candidate.
Verify the immutable TCK BOM metadata only (a plain
sh environment/verify-inputs.sh also downloads and verifies the pinned
Derby jars):
sh environment/verify-inputs.sh --metadata-onlyRequirements are JDK 17 or 21, curl, and a working Docker-free local network
stack. Maven itself is supplied by the wrapper.
./mvnw -B -ntp -pl runner-smoke -am verifyRun the default reactor (porting-extension tests and the smoke runner; catalog TCK partitions remain opt-in):
./mvnw -B -ntp verifyRun one catalog partition, for example:
runner-webprofile/run-platform-suite.sh servlet restThe EclipseLink-based TomEE Plume distribution is the default target under
test; the Jakarta Persistence catalog passes almost completely there, unlike
on OpenJPA. Test the OpenJPA-based webprofile ZIP instead with:
TOMEE_CLASSIFIER=webprofile runner-webprofile/run-platform-suite.sh javatest persistence-javatestTOMEE_CLASSIFIER accepts plume, webprofile, microprofile, and plus,
and every runner script rejects anything else. The Platform catalog manifest
and the reviewed exclusion lists describe plume and webprofile; a
microprofile or plus run reuses the plume expectations, so read its
failures against that distribution's own scope rather than as regressions.
environment/tomee/build-tomee.sh builds Apache TomEE from any tag, branch,
or commit and installs every distribution ZIP and the arquillian-tomee-remote
adapter into a Maven repository, so the suites can run against a build that
was never deployed:
environment/tomee/build-tomee.sh tomee-project-9.1.3It prints the built version as a single TOMEE_VERSION=<version> line — read
from the reactor, so a tag builds its release version and a branch builds
whatever -SNAPSHOT it carries. Pass that version and the flavour back to any
runner:
TOMEE_VERSION=11.0.0-SNAPSHOT TOMEE_CLASSIFIER=plume \
runner-webprofile/run-platform-suite.sh servlet restBoth variables are optional: unset, TOMEE_VERSION leaves the pom's snapshot
version in place and TOMEE_CLASSIFIER defaults to plume. Set
TOMEE_REPO_URL to build from a fork, and TOMEE_SRC_DIR to place the clone
somewhere other than target/tomee-src. The build skips TomEE's own tests and
uses its quick profile, which drops the examples, itests, and TomEE's own
tck modules while still assembling all four distributions.
CI runs as two ASF Jenkins jobs that use this repository from SCM:
| Job | Script path | Role |
|---|---|---|
main-tck-pipeline |
Jenkinsfile |
Orchestrator: validates the environment, builds the TomEE under test once, then triggers one suite build per suite |
main-tck-suite |
jenkins/suite.Jenkinsfile |
Runs exactly one suite (SUITE) against the orchestrator's TomEE build |
The orchestrator runs the smoke suites on JDK 17 and JDK 21 first and stops if
either fails. It then triggers every Platform partition
(platform/<partition>, from runner-webprofile/platform-suite.tsv) and every
standalone suite (standalone/<id>) as its own main-tck-suite build, all in
parallel. Each suite therefore has its own test report, history, and archived
TomEE logs, and a red suite can be rerun on its own with "Rebuild" on its suite
build. The orchestrator's branches only wait for the suite builds, so they hold
no executor; Jenkins queues suite builds when fewer agents are available.
At the end the orchestrator collects the test reports of all suite builds into
its own "Test Result", so every failure of a run shows on one page. The run's
description names the suites that are not green, and suite-results.md (an
artifact of the run) lists every suite with its result and build. Everything a
suite build archived (test reports, test output, TomEE logs) is copied into the
run's artifacts under suites/<suite>/, so it outlives the suite build, which
ci-builds discards soon (see below). The suite builds' console logs are not
copied.
ci-builds deletes completed builds of a job beyond its newest few, whatever the
job's own build discarder says, so a suite build that finished while later
suites of the same run were still going used to be gone before the
orchestrator could read it. A running build is never deleted, so a suite build
does not complete when its suite is done: it marks itself done in its
description ([suite done: <result>]) and keeps running, without an agent,
until the orchestrator has collected all suites ([suites collected] in the
orchestrator's description, set even when the run fails or is aborted), at
most 24 hours. The orchestrator reads each suite's result from that marker and
copies the artifacts from the still running suite builds. Suite builds that wait like this show as running in
the suite job until the orchestrator run ends.
The orchestrator takes these build parameters:
| Parameter | Default | Meaning |
|---|---|---|
TOMEE_REF |
main |
Tag, branch, or commit of apache/tomee to build and test |
TOMEE_REPO_URL |
https://github.com/apache/tomee.git |
Clone source; point at a fork for an unmerged branch |
TOMEE_CLASSIFIER |
plume |
Distribution to test: plume, webprofile, microprofile, or plus |
SUITES |
all |
Suites to run after the smoke gate, e.g. platform/jdbc,standalone/servlet |
SUITE_JOB |
main-tck-suite |
The job configured with jenkins/suite.Jenkinsfile |
The Build TomEE stage runs environment/tomee/build-tomee.sh for the chosen
ref into a workspace-local Maven repository and archives its org/apache/tomee
slice, without the .tar.gz bundles, the webapp ZIPs, and the ZIPs of the
other distributions, which no runner resolves. Each suite build copies that
slice from the orchestrator build (Copy Artifact plugin) into its own workspace
repository and checks out the same tomee-tck commit, so one orchestrator run
reports on one TomEE build and one harness version. Only the last three
orchestrator builds keep the archive. Nothing is deployed to a shared
repository, so concurrent jobs and workstation repositories are untouched. The
build descriptions record the ref, version, and flavour each run tested.
Suite builds run on ubuntu agents inside digest-pinned
containers (eclipse-temurin JDK images; a Chrome-bundling image for the
modern faces suite), so every TomEE, Derby, LDAP and JavaTest port binds a
container-private network namespace and cannot collide with other jobs on the
same host. The runner scripts' free-port selection and require-free guards
remain as defense in depth and for workstation runs outside a container. The
checked-in Maven wrapper supplies Maven inside each container; each build sets
HOME to its Jenkins workspace, so the wrapper distribution and local
repository live under the workspace and are populated from scratch every build.
A suite build started by hand without UPSTREAM_JOB resolves TomEE from the
remote repositories instead.
Both jobs live in the TomEE folder on ci-builds.apache.org and are plain
Pipeline jobs (not multibranch):
- Create
main-tck-pipelineas a Pipeline job with "Pipeline script from SCM": Git, repositoryhttps://github.com/apache/tomee-tck, branch*/main, script pathJenkinsfile. - Create
main-tck-suitethe same way (for example with "Copy from"main-tck-pipeline), but with script pathjenkins/suite.Jenkinsfile. Leave "Do not allow concurrent builds" unchecked: one orchestrator run starts one build of this job per suite at the same time. - Do not configure parameters, build retention, concurrency, or the Copy Artifact permission in the job configuration UI. The Jenkinsfiles declare them and every run overwrites the UI settings with them.
- Start each job once with "Build Now" and abort it. Jenkins only learns the
parameters a Jenkinsfile declares by running it, and the orchestrator's
parameters to
main-tck-suiteare dropped silently until that job knows them. The firstmain-tck-suiterun fails with "SUITE must be ..." by design.
The jobs need the Copy Artifact plugin (installed on ci-builds) and agents
labelled ubuntu with Docker. There are no ephemeral agents on ci-builds.
- Full run: "Build with Parameters" on
main-tck-pipelinewith the defaults. - A subset, for example to try a change: set
SUITES, e.g.standalone/servletorplatform/jdbc,standalone/cdi. The smoke suites always run first. - Another TomEE: set
TOMEE_REFto a tag, branch, or commit, andTOMEE_REPO_URLto a fork for an unmerged change;TOMEE_CLASSIFIERselects the distribution. - Rerun one suite: start
main-tck-pipelinewithSUITESset to that suite. "Rebuild" on amain-tck-suitebuild also works, reusing the orchestrator's TomEE build and harness commit, but only while ci-builds still keeps that suite build and the orchestrator build is one of the last three, which keep their archive. - Run one suite without an orchestrator build: start
main-tck-suitewithSUITEset andUPSTREAM_JOBempty. It then resolvesTOMEE_VERSION(or the poms' snapshot) from the remote repositories.
The orchestrator's result is the worst of its suite builds: a failed suite build fails its stage and the run, an unstable one marks them unstable.
The Platform partitions run without their exclusion lists
(TCK_EXCLUSIONS=none, see runner-webprofile/README.md), so the test report
shows every Platform failure, including the reviewed gaps. A Platform suite
with failing tests is therefore unstable rather than failed; it fails only when
the partition did not run completely. The standalone suites keep their reviewed
exclusion lists (runner-standalone/exclusions/) and are expected green.
See runner-webprofile/README.md for the available artifact profiles and the
coverage gaps that remain before this can produce a certification result.
To test a TomEE checkout you already have locally, install the distribution
under test and the remote Arquillian adapter into the same Maven repository
first, or let environment/tomee/build-tomee.sh do it from a git ref.
Development runs that resolve the snapshot instead intentionally consume the
mutable bytes without a checksum lock.
runner-standalone/ gathers the independently published TCKs that Jakarta EE
11 Web Profile certification requires in addition to the Platform catalog:
Servlet, Pages, RESTful Web Services, WebSocket, Faces, CDI (with
Interceptors), Dependency Injection, Annotations, Validation, Security,
Authentication, Concurrency, Data, JSON Processing, JSON Binding, and
Debugging Support. Run one at a time with:
runner-standalone/run-standalone-suite.sh concurrencySee runner-standalone/README.md for the per-specification status: Annotations, Dependency Injection, Pages, JSON Processing (197/197 on Apache Johnzon), and Debugging Support pass, and every other suite — including the source-reactor TCKs (Security, Authentication, Faces) — executes end to end with dated result counts and the remaining TomEE or provider gaps recorded for triage.
environment/tomee/conf contains a minimal TomEE overlay carrying only what
the TCK requires:
tomee.xmldeclaresjdbc/DB1,jdbc/DB2, andjdbc/DBTimerusing the TCK-documented Derby test accountcts1.tomcat-users.xmlcontains only the users, passwords and groups prescribed by the EE 11 TCK guide (j2ee_vi,javajoe,j2ee, andj2ee_ri). These credentials are strictly test-only.server.xmldefines HTTP and HTTPS connectors and optionally accepts a client certificate, so ordinary HTTPS and mutual-authentication tests can share one connector.system.propertiesenables strict Servlet behavior and TomEE remote support.
The catalog runner stages these files under its target directory, starts a
temporary Derby network server, overlays the freshly unpacked TomEE, and stops
both services after Failsafe completes. It never modifies a user’s installed
TomEE or ~/.m2/settings.xml. The server uses fixed localhost ports 8005, 8080,
8443, and 1527, so run one catalog worker at a time.
TomEE 11 currently reports on JDK 21 that JACC authorization checks are skipped because method security is not supported there. The JDK 21 CI gate still checks container startup, deployment, HTTP invocation and cleanup, but security tests cannot be considered covered until that TomEE limitation is resolved.
Generate disposable TLS material with the changeit password documented by
the TCK guide:
sh environment/certificates/generate-test-certificates.shThe output goes to target/ee11-certificates. Copy server.p12 and
server-truststore.p12 to the test server’s conf directory. Configure the
test JVM with clientcert.p12 and client-truststore.p12 when a test requires
client-certificate authentication. Generated keys are test-only and must not
be committed.
The JavaTest-protocol adapter reads the deliberately small
environment/tck/ts.jte. It contains only properties still consumed by the
published EE 11 tests, including the JDBC names and sizing values. Maven
supplies modern runner properties directly. Deployment is handled by
org.apache.tomee.tck.porting.TomEETestArchiveProcessor, registered as an
Arquillian extension.
The catalog covers every class published in the Jakarta EE 11 Platform TCK
artifacts and selected by the official web JUnit group. It includes signature
validation and all servlet- and JavaTest-protocol partitions represented by
those artifacts. Known TomEE compatibility gaps remain visible as reviewed
class or method exclusions; they are not compatibility passes.
The Platform catalog does not bundle or claim results for each specification
project's independently published standalone TCK. Those independent suites are
additional inputs to a formal Jakarta EE compatibility certification, not
missing Platform artifact partitions; they run from runner-standalone/ as
separate suites with their own status tracking.
- Jakarta EE Platform 11 release page (minimum Java 17, final API coordinate, and official TCK links)
- Jakarta EE 11 Web Profile specification
- Platform TCK 11.0.2 release notes (JUnit 5/Arquillian architecture and Maven artifact split)
- Tagged EE 11 Web Profile TCK setup guide
(
webgroup selection) - Tagged EE 11 TCK configuration guide
(test identities, JDBC names, TLS defaults, and warning about unused
ts.jteremnants)