XWiki 17.10 LTS to 18.x upgrade and the Java 21 requirement

Moving from XWiki 17.10 LTS to 18.x means moving from Java 17 to Java 21 and choosing between the 18.4 intermediate LTS and the stable line. This page sets out the path, the checks and the effort drivers.

On this page

Why a 17.10 LTS to 18.x XWiki upgrade needs a platform decision first

Moving a self-hosted XWiki from 17.10 LTS to the 18.x line is two decisions in one: a Java 17 to Java 21 change on the runtime, and a choice between the 18.4 intermediate LTS and the stable line. Neither choice should be fixed until your extensions and custom code have been checked against the target. At research time, the official Docker image tags were 17.10.14 for LTS, 18.4.7 for the intermediate LTS and 18.8.0 for stable. Confirm the current tags in the official image repository before you write the plan, because those tags move as new releases ship.

Treat the target line as a platform decision, not a version bump. An intermediate LTS gives you a longer maintenance window on one line, while the stable line gets new features sooner and will need upgrading again sooner. Which one fits depends on how often your team can afford upgrade cycles, and on whether your extensions, Pro applications and any authentication or office connectors already support the target. Ask each vendor or extension maintainer for their tested XWiki version range before you commit.

Do not assume a supported path from 17.10 to either 18.x line. Read the release notes and XWiki's upgrade documentation for each candidate target, and confirm the exact sequence, including whether any intermediate version is required first and what the Java 21 requirement means for your Tomcat and container image. Then test on a copy of production with your real extensions installed. The findings from that test decide the target, not the other way around.

What changes between 17.10 LTS and 18.x, and what each change asks of your team

This table lists the changes that matter when moving from XWiki 17.10 LTS to the 18.x line, with the action each one asks of your team. Read it as a checklist: confirm each row against the XWiki 18.x release notes and your own environment before you pick a target version. The main takeaway is that the Java 21 requirement and the runtime change in the official images affect your host, container image and extensions before any data migration runs.

ChangeImpactAction needed
Java 17 to Java 21 requirementHosts and custom images running Java 17 will not serve the 18.x line as-is, so the JDK is a prerequisite rather than an optional step.Confirm the minimum Java version for your target in the 18.x release notes, then install and test Java 21 on a staging copy.
Tomcat runtime in the official imagesThe container image supplies Tomcat, so the servlet container version and its configuration files can change with the image tag.Check which Tomcat version the target image tag ships, and review any custom server.xml, context files or JVM options you mounted.
18.4 intermediate LTS or 18.8 stableThe intermediate LTS line is supported for a fixed period, while the stable line receives newer features and changes more often.Decide based on your change tolerance and support window. Confirm support dates for 18.4 and 18.8 in the XWiki release documentation.
Extension compatibilityCustom extensions, third-party XWiki Store extensions and Pro applications may need updated versions or may not yet support 18.x.Build an inventory of every installed extension with its version, then confirm each one's 18.x compatibility with its publisher before upgrading.
Custom code and macrosCustom Velocity, Groovy or Java code written against internal APIs can break when APIs change between major lines.Review custom code against the 18.x release notes for API changes and test pages that use custom macros on a staging copy.
Data migrations on first startDatabase schema and data migrations run automatically when the new version starts, and some cannot be reversed by simply restarting the old image.Back up the database and permanent volume before the first start, read the migration notes for 18.x, and plan a tested rollback.

How the Java 21 requirement affects your existing XWiki host

The Java 21 requirement is the largest infrastructure change in this move, and it reaches further than the application itself. Moving from 17.10 LTS to the 18.x line means the Java Development Kit (JDK) that runs XWiki's Tomcat process must change, and on a self-hosted instance that change belongs to you. Start by recording the JDK and Tomcat versions currently in use on every node, because a host that works today may be running a runtime the new line does not accept. Confirm the exact minimum Java and Tomcat versions for 18.x in the release notes for the version you plan to target and in the official image documentation, not from this page, since those minimums are what your change request should cite.

If you run the official Docker images, the JDK is inside the image, so the change arrives with the new tag. Check the image documentation for the Tomcat version bundled with each tag, then review any custom Dockerfile, derived image or entrypoint script that installs its own Java or copies in jars. A derived image built on an older base will keep the old runtime even after the XWiki tag changes. On bare-metal or virtual machine installs, the JDK is a host package, so every node in a cluster needs the new JDK before the rolling restart begins. Check with java -version on each node and confirm that the Tomcat service points at the same JDK, since a mismatch between nodes is hard to spot after the upgrade starts.

Review your JVM tuning and Tomcat configuration as well. Heap settings in JAVA_OPTS or setenv.sh, garbage collector flags that were valid on Java 17 and may be removed or deprecated on Java 21, and custom connector settings in server.xml need a line-by-line review against the new runtime and the Tomcat version it ships with. Keep a copy of every custom setting, test the new flags on a copy of production, and record the memory and thread figures you observe so you can compare them after cutover. Plan the JDK change as its own tested step, separate from extension updates, so that a startup failure can be traced to one cause.

Choosing the 18.4 intermediate LTS or the stable line as the target

The 18.4 intermediate LTS line is the choice when you want a stable target on the Java 21 platform that changes less often. At research time the official Docker image tag for this line was 18.4.7, which you can pin in your deployment. Treat it as a planned target, not a permanent destination, and confirm the support terms before you commit.

  • Support expectation: Ask XWiki for the published end date and the scope of fixes for the 18.4 line before you commit, because no support window is given in the research notes.
  • Upgrade frequency: Patch releases within 18.4 are same-line updates, but a move to a newer line is a separate project you must schedule and test.
  • Extension lag: Extensions and Pro apps may target the LTS line first, so verify each one against the exact 18.4.7 build rather than assuming a match.
  • Regulated fit: A fixed, documented target suits change advisory boards that approve each platform change and want fewer upgrade cycles.

Before pinning the tag, get the support end date and patch cadence in writing and record them in your change request.

What to inventory and back up before touching the 17.10 instance

Upgrading XWiki from 17.10 LTS to 18.x changes the Java runtime and the application code at the same time, so a failed start can leave the wiki unusable. The cards below cover what must be captured and tested before any image tag changes. Each item has a different owner, and the upgrade is only reversible if all of them are in place.

Full database backup

Take a complete dump of the XWiki database from the running 17.10 instance before anything else changes. XWiki keeps page content, page history, users and most configuration in the database, so the dump is the copy you restore if a schema migration on first start goes wrong. Record the database engine and version alongside the dump, and test that the dump restores into a scratch database. The database administrator owns this step, and the wiki owner confirms the backup window with users.

Permanent directory backup

Back up the XWiki permanent directory, the volume where the container keeps attachments, extension state and local configuration that live outside the database. Without it, a database restore brings back page metadata but not the files behind it. Check that the copy includes the file permissions the Tomcat user expects, because a restored volume with the wrong ownership fails at startup. The platform team owns the volume snapshot and its restore test.

Inventory of extensions and Pro apps

List every installed extension, its exact version, and every Pro application or connector in use, such as identity connectors or office editing integrations. Mark which ones have a published release for the 18.x line and which need a replacement or removal. Extensions that are compatible with 17.10 may still fail on Java 21 or on the newer XWiki core APIs. The wiki administrator owns the list, and the vendor or extension maintainer answers compatibility questions.

Custom code and XAR customizations

Identify custom Groovy and Velocity macros, script services, skins, and XAR packages that were imported or edited directly in the wiki. Export each one as a versioned XAR or source file and store it in version control, so changes made during the upgrade are reviewed rather than silently absorbed. Pages that call deprecated APIs are the usual source of breakage after a core change. The developers who wrote the customizations own this review, with the platform team holding the repository.

Test copy of production

Restore the database dump and the permanent directory into a separate environment that matches production's network, authentication and container setup, then run the upgrade there first. This copy is where extension failures, slow migrations and login problems appear without affecting users. Keep it isolated from production email and outbound integrations so test runs do not send notifications. The platform team owns the copy, and the business owner signs off on the test results before production work is scheduled.

Target image tag pinned in deployment files

Write the exact target image tag into the deployment files before the upgrade, using a specific version rather than latest or a moving lts tag. A pinned tag means the same image is pulled in test and production, and it lets you roll back to the 17.10 tag if needed. Confirm the chosen 18.x tag against the official image listings, and confirm which database variant the image uses. The person who maintains the deployment repository owns the tag, and the change goes through the normal review process.

XWiki image docs

The upgrade sequence from 17.10 LTS to 18.x with rollback points

This sequence moves a production XWiki from 17.10 LTS to an 18.x line on a tested copy first, so each step ends with a verified state and a known way back. The production change is scheduled only after the copy has passed extension, custom code and load checks.

  1. Confirm the target line in the release notes

    Your platform or wiki lead reads the XWiki release notes for the 18.x versions under consideration, including the intermediate LTS (18.4) and the stable line, and records the Java 21 requirement and any Tomcat or database changes that apply to your image variant. Decide which line you will target and whether you will move in one hop or through an intermediate version. Done when the target version and its Java and servlet container requirements are written into the change ticket and approved by the owner. Rollback point: nothing has changed yet, so the only reversal is to keep 17.10 LTS in service.

  2. Provision a Java 21 test host or image

    Your infrastructure team builds a test host or container image that matches production as closely as possible, with Java 21 installed alongside the servlet container and database client versions that the target release expects. Keep the production 17.10 LTS image tag pinned and unchanged. Done when the test environment starts a stock 18.x instance with a throwaway database and the JVM version is confirmed from the running process. Rollback point: discard the test host, since production has not been touched.

  3. Take a full backup and restore production data to a copy

    Your database administrator takes a consistent database backup and a copy of the permanent directory (attachments, extensions and configuration) from production, then restores both to the test environment. Verify the backup by restoring it and comparing page and attachment counts with production. Done when the copy starts on 17.10 LTS and its content matches the production snapshot. Rollback point: the untouched production backup remains the restore source for the database and the permanent volume if anything later goes wrong.

  4. Run the upgrade on the copy with migrations on first start

    On the copy, you change only the version tag to the chosen 18.x image, keep the same database variant, and start the container so the data migrations run on first start. Watch the startup log until the wiki responds and the administration pages load, and record any migration errors. Done when the copy serves pages and the migration log shows no unresolved failures. Rollback point: restore the copy from the snapshot taken in the previous step, which gives you a repeatable dry run before the production attempt.

  5. Check extensions and custom code

    Your wiki and development team inventories every installed extension, custom application, script macro and Velocity or Groovy code, then checks each against the 18.x release it must run on. They confirm which items come from the XWiki Store or the xwiki-contrib repositories, whether a newer compatible version exists, and whether any need replacement or removal. Done when every item has a status of compatible, upgraded or retired, and the copy shows no errors for the affected pages. Rollback point: disable or remove the failing extension on the copy only, and keep production on 17.10 LTS until the list is closed.

  6. Load-test core pages and search

    Your QA or platform engineer runs a scripted set of realistic read and edit scenarios against the copy, covering common page views, search queries, attachment downloads and edits, and compares response times and error rates with the 17.10 LTS baseline measured on the same host profile. Confirm that the search index rebuilds and returns expected results. Done when the agreed acceptance thresholds are met and any regressions have an owner and a fix. Rollback point: if results are unacceptable, return to the 17.10 LTS image on the copy and retune the JVM or search settings before retesting.

  7. Schedule and run the production change

    Once the copy has passed each earlier check, you agree a change window with the business owners, announce read-only or maintenance periods if your process needs them, and take a fresh backup of the production database and permanent volume immediately before the change. Pin the 18.x image tag, apply it, and run the same startup and smoke checks used on the copy. Done when production serves pages, search and extensions as the copy did, and the change record links the backup identifiers. Rollback point: if the checks fail, stop the 18.x container, restore the database and permanent volume from the pre-change backup, start the pinned 17.10 LTS image, and confirm the wiki before reopening access.

How to test the copy and roll back if the upgrade fails

Test the upgrade on a copy of production before anyone plans a cutover date. Restore the latest production database and permanent volume into a separate environment, point it at a non-production hostname, and disable outbound mail, scheduled notifications and any connector that writes back to a live system. Then check the things users and administrators actually rely on: login through your configured authentication path, group and page rights for a sample of users in each role, page rendering for representative pages including macros and custom applications, attachment upload and download, and search results after reindexing. Confirm each extension and any Pro application you run is compatible with the 18.x target, and run scheduled jobs manually to see whether they complete on Java 21. If you use SSO, test a full sign-in and sign-out with a real account in the copied environment, because redirect URIs and certificates often differ outside production.

Rollback depends on a tested restore, not on the old image tag still existing. Take a backup of the database and the permanent directory immediately before the change, record the exact image tag and JDBC driver version in use, and prove you can restore both from that backup into a clean environment. A schema migration that runs on first start can change the database in ways the 17.10 LTS image cannot read, so reverting the container image alone may leave the wiki unable to start. Plan the rollback path as a restore of the matched pair, with a written decision point for when to stop and roll back. Confirm the rollback behavior for the 17.10 LTS to 18.x pair with XWiki's release notes and migration guidance, and ask any partner to demonstrate the restore on your copy before go-live.

What makes a 17.10 to 18.x upgrade take longer

This table lists the factors that add work to moving from XWiki 17.10 LTS to the 18.x line and what reduces each one. Read each row as a question to answer about your own instance before you estimate the project. The main takeaway is that custom code, extensions and the number of Java 21 environments usually matter more than database size.

DriverWhy it adds workWhat reduces it
Number and maturity of extensionsEach extension must be checked for a version that runs on the 18.x line and on Java 21. Extensions that are unmaintained may need replacing or forking.Inventory every installed extension, mark which ones are actively maintained, and drop unused ones before the upgrade.
Custom XAR code and scriptsWiki-level scripts, macros and velocity or Groovy code can rely on APIs that changed between lines. Each one needs review and testing.Keep custom code in version-controlled XAR packages, and run automated checks or test pages against a copy of the instance.
Pro apps and connectorsPaid applications and connectors such as SSO apps, office connectors and Pro macros must each be confirmed for the target line before you commit to it.Ask XWiki SAS to confirm compatibility for each Pro app you run, and list the versions in the written scope.
Java 21 rebuilds of environmentsJava 21 is required by the 18.x line, so every test, staging and production host, container image and build pipeline must move off Java 17.Count environments early, standardize the base image, and update build and deployment pipelines once rather than per host.
Database size and attachment volumeMigrations run on first start and can take longer on large page histories, many attachments or large indexes. Backups also take longer to restore for rollback testing.Measure database size and attachment storage, then time a migration on a restored copy of production.
Number of wikisEach wiki in a farm is migrated and checked separately, and wikis often have different extensions and custom code.List wikis with their extensions and owners, and prioritize the ones with the fewest custom dependencies.
Testing on a copy of productionWithout a current copy, defects surface in production and rollback becomes the only fallback.Maintain a regularly refreshed staging copy with the same database engine, extensions and data volume as production.
Rollback preparationA rollback needs a tested database backup and the permanent volume from before the upgrade, and both must match the same point in time.Take paired backups, test a restore, and record the exact image tags to return to.

Questions teams ask before upgrading XWiki to 18.x

How much does an XWiki 17.10 to 18.x upgrade cost?

The cost depends on how much work sits around the version change, not on the version number itself. Most of the spend comes from effort: reviewing custom code and extensions, changing the runtime to Java 21, testing on a copy of production, and running the cutover and rollback plan. Costs that recur include hosting, the Java and Tomcat runtime, and any XWiki support subscription you choose to keep. If you hire a partner, ask for a fixed-scope quote built from a written list of extensions, custom applications, databases and environments. For reference, XWiki SAS publishes a consulting list rate of 1200 EUR per day, which requires a Business or Enterprise support plan. A quote from DeployOpen follows the written scope.

How long does an XWiki 18.x upgrade take?

The timeline is set by the number of extensions, the amount of custom code, the size of the data and the number of environments you must test and approve. Teams with few extensions and a clean standard install usually move faster than teams with many custom applications, scripts or Pro apps that each need a compatibility decision. Plan time for a full test cycle on a production copy, for fixes found during testing, and for the change window your business approves. Ask any partner for a schedule that names the test cycles, sign-off points and the rollback rehearsal, rather than a single date.

Can our team upgrade XWiki to 18.x without a partner?

Yes, if your team has Linux, Tomcat and database administration skills, can build a test environment that matches production, and has someone who knows the custom code well enough to judge test results. The harder parts are usually the Java 21 runtime change, extension compatibility checks and deciding what to do with an extension that is not ready. Teams without these skills often pay for a short review of extensions and custom code, then run the upgrade themselves. Whichever path you take, agree the rollback steps before the change window opens.

What does the upgrade need from our team?

The work needs named owners and a clear decision path. Typical inputs include:

  • An owner for the wiki business content who can approve test results and sign off on the cutover.
  • An administrator with access to the host, the container platform or Tomcat, the database and the permanent storage volume.
  • A recent, sanitized copy of production data and the list of installed extensions, Pro apps and custom applications.
  • Change windows approved in advance, including time for a rollback if the upgrade fails.
  • Access to test accounts that match real user groups and permissions.

Without these, testing covers only the default configuration and the results will not show what users will see.

Should we choose XWiki 18.4 or the stable 18.x line?

Choose the line that matches how often you want to change the platform and how much testing you can repeat. The intermediate LTS line, 18.4, is the option for teams that prefer a longer support window with fewer forced changes. The stable line receives more frequent releases and suits teams that can test and upgrade regularly. Confirm the current support dates and release notes on the XWiki site before you decide, because support windows and release cadence matter more to the choice than the tag names. The official Docker image tags also differ by line, so check the library file for the exact tag you plan to pin.

What happens if an extension is not ready for XWiki 18.x?

You have three realistic options: update the extension to a version that supports the target release, replace it with a supported alternative, or keep the feature on hold until the extension is ready. Start by listing every extension, its current version and its compatibility statement in the extension documentation, then test each one on the copy of production. Extensions that the XWiki Store or the xwiki-contrib repositories no longer maintain carry a higher risk. Decide before the cutover whether the upgrade waits for that feature or goes ahead without it, and record that decision with the business owner.

Does the Java 21 requirement affect our security review?

Yes. Moving the runtime from Java 17 to Java 21 changes the JVM, the Tomcat version and the base image your team tracks for patches, so the security review must cover the new runtime. Update the asset inventory, the vulnerability scanning scope and the patch calendar to show Java 21 and the new Tomcat version. Ask your auditors or internal security team which evidence they expect for the change, such as the approved change record, test results and the rollback plan. DeployOpen can prepare that evidence and test the upgraded setup, but it does not issue audit reports or certifications.

How the upgrade phases and decision points connect

The path starts with confirming the target line, either the 18.4 intermediate LTS or the stable line, because that choice sets the Java and extension checks that follow. Custom code and extensions are reviewed before any backup, so incompatibilities surface early. The copy of production is the gate: a passing test run leads to promotion, and a failing one sends the team back to rollback planning or to fixing the blocking extension. Nothing reaches production until the copy test passes.

Decision path from target selection through a tested copy to production.

How DeployOpen scopes and delivers the XWiki upgrade

DeployOpen plans, tests and carries out the move from 17.10 LTS to an 18.x line inside your own infrastructure, and the work starts with a fixed written scope that is agreed before any change is made. The scope normally covers five stages: an inventory of the running instance, a test copy built from production, the upgrade itself, a retest of the functions your users depend on, and a handover of the updated runbook. The inventory is where most of the value sits for this upgrade. It lists the Java runtime and servlet container in use, every installed extension and its version, any Pro applications, custom XAR code, scripts, macros and Velocity or Groovy content, authentication configuration, and the database and permanent directory layout. Each item is then marked as compatible, needing a fix, or needing a decision, so the quote and the timeline reflect what is actually in your wiki rather than a generic estimate.

The test copy is run on the Java 21 runtime that the 18.x line requires, using a restored backup of your production database and permanent directory. The retest checks logins, page rendering, search, attachments, permissions on sensitive spaces, scheduled jobs and every extension flagged in the inventory. Whether the target is the 18.4 intermediate LTS or the stable line is a decision the written scope should record, together with who signs it off. Your team confirms the target version, the change window, the backup retention period and the named owners for approval. Ongoing upgrades, extension updates and continuous testing are available as retainers, which suit organizations that expect to move again within their support cycle. DeployOpen does not hold a partnership with XWiki SAS, and the quote follows only from the written scope, so ask for the inventory findings and assumptions in writing before you compare offers.

How DeployOpen scopes, delivers and supports XWiki upgrades

DeployOpen approaches the move from XWiki 17.10 LTS to the 18.x line as a planned change to a running system, not a version bump. We start by inventorying your Java runtime, Tomcat setup, extensions and custom code, then build and test the upgrade on a copy of production before anything changes in your environment.

How we scope

  • Inventory your current XWiki version, Java runtime, Tomcat setup, database and deployment method before choosing a target.
  • Confirm which extensions, Pro applications and custom macros or scripts must be checked for compatibility with the 18.x line.
  • Agree the target line, either the 18.4 intermediate LTS or the stable line, in a written fixed-scope document with deliverables and timeline.

How we build

  • Prepare a Java 21 runtime and matching Tomcat configuration in a staging copy of your instance, alongside your existing setup.
  • Test extensions, custom code and data migrations on first start against a restored copy of production data.
  • Document the cutover steps, backup points and rollback procedure so each step can be checked before production changes.

How we hand over

  • Deliver the tested upgrade runbook, configuration changes and a record of extension compatibility results.
  • Provide a list of open issues, unsupported extensions or custom code that needs remediation by your team or a later engagement.
  • Walk your administrators through the pinned image tags, backup routine and post-upgrade health checks in your environment.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after the handover, if your team wants that cover.
  • Plan follow-up work for later XWiki releases and extension updates, scoped in writing as each change arrives.
  • Confirm with your team which support tier, from XWiki SAS or your own staff, covers vendor-side questions after the upgrade.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.