Problem loading XNAT after upgrading Ubuntu 22.04 ( jammy )

73 views
Skip to first unread message

Ruba

unread,
Jul 12, 2023, 7:18:16 AM7/12/23
to xnat_discussion
Hi,

I cannot load XNAT (version 1.7.6) after upgrading Ubuntu from 18.04 (Bionic) to 22.04 (Jammy). Tomcat server log is showing this message: "GET /app/template/Login.vm HTTP/1.0" 404 -.

My old XNAT instance was running using Ubuntu 18.04, openjdk-8-jdk, and tomcat 7. Should I upgrade the tomcat version (9) to make it compatible with 22.04?

Can anyone please give me some suggestions to solve this problem?
Thank you in advance.

Best regards,
Ruba


Richard Cole

unread,
Jul 12, 2023, 7:35:22 AM7/12/23
to xnat_di...@googlegroups.com

On Wed, Jul 12, 2023 at 4:49 AM Ruba <rubaida...@gmail.com> wrote:
Hi,

I cannot load XNAT (version 1.7.6) after upgrading Ubuntu from 18.04 (Bionic) to 22.04 (Jammy). Tomcat server log is showing this message: "GET /app/template/Login.vm HTTP/1.0" 404 -.

Can anyone please give me some suggestions to solve this problem?
Thank you in advance.

Best regards,
Ruba

--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xnat_discussi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/0c05b8aa-9e3b-46f2-bb95-37667ac53bebn%40googlegroups.com.

Rick Herrick

unread,
Jul 12, 2023, 1:18:09 PM7/12/23
to xnat_di...@googlegroups.com
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 ------
From "Richard Cole" <richie...@gmail.com>
Date 7/12/23, 6:35:06 AM
Subject Re: [XNAT Discussion] Problem loading XNAT after upgrading Ubuntu 22.04 ( jammy )

Ruba

unread,
Jul 13, 2023, 4:59:44 AM7/13/23
to xnat_discussion

Hi,

Thanks for the link and suggestions.

I am still using XNAT version 1.7.6 and do not want to upgrade now.

The link suggested running XNAT (1.8.1 and earlier) with Tomcat 9, but is it possible to continue using older versions (Tomcat 7 and OpenJDK 8) in Ubuntu 22.04? How can I resolve the XNAT loading issue if I keep the older versions?

Thanks again.

Best regards,
Ruba
Reply all
Reply to author
Forward
0 new messages