In addition to the changes below, Ubuntu 22.04 has a number of issues that can make it difficult to run XNAT. The primary problem is that the Tomcat build on the standard Ubuntu deb repository includes a library that was built with Java 11. That means you have to run Tomcat with Java 11 or later, but XNAT is not currently compatible with Java 11. This is a known issue (
as described here) with no fix likely.
So if you’re trying to run XNAT with Tomcat 9 and OpenJDK 8 and you see this message (and you will):
Message java.lang.UnsupportedClassVersionError: org/eclipse/jdt/internal/compiler/env/INameEnvironment has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
The only work-around for that is manually installing Tomcat 9.
Rick Herrick
Senior Software Developer
------ Original Message ------
Date 7/12/23, 6:35:06 AM
Subject Re: [XNAT Discussion] Problem loading XNAT after upgrading Ubuntu 22.04 ( jammy )