Latest container service plugin did not work for us with XNAT 1.8.6.1

28 views
Skip to first unread message

Michael Dayan

unread,
Mar 10, 2023, 10:41:09 AM3/10/23
to xnat_discussion
Hello,

We used a fresh docker compose setup to deploy XNAT:
- It works with XNAT 1.8.6.1 without the container service plugin
- It FAILS with XNAT 1.8.6.1 and the latest container service plugin source code (error attached)
- It works with XNAT 1.8.6.1 and container service plugin version 3.2.1 (did not try other versions)

Would you know how to have the latest XNAT version work with the latest container service plugin source code ?

Best wishes,

Michael
error due to plugin.txt

Charlie Moore

unread,
Mar 10, 2023, 10:46:34 AM3/10/23
to xnat_discussion
Hi Michael,

Your log contains:
"jar:file:/usr/local/tomcat/webapps/ROOT/WEB-INF/lib/prefs-1.8.5.jar!/org/nrg/prefs/services/impl/DefaultNrgPreferenceService.class"

So it looks like your setup is still actually using 1.8.5. Is there maybe an older exploded war in the ROOT dir?

Thanks,
Charlie

Rick Herrick

unread,
Mar 10, 2023, 11:01:45 AM3/10/23
to xnat_di...@googlegroups.com
There’s definitely something going on with the XNAT version. That full error comes down to this:

Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.vladmihalcea.hibernate.type.json.JsonType

That class is contained in the library hibernate-types-43-version.jar. This was added to XNAT in 1.8.0 at v2.9.3 but was upgraded to v2.14.0 with XNAT 1.8.5.

The fact that that class isn’t being found indicates there’s something mighty wrong going on.

Do you maybe have an existing image for XNAT on the Docker server so that that’s being re-used instead of building a new image when launching the container?

Rick Herrick
Senior Software Developer


------ Original Message ------
From "Charlie Moore" <charle...@flywheel.io>
To "xnat_discussion" <xnat_di...@googlegroups.com>
Date 3/10/2023 9:46:34 AM
Subject [XNAT Discussion] Re: Latest container service plugin did not work for us with XNAT 1.8.6.1

--
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/81d85280-fa1b-441f-b439-261306be8e90n%40googlegroups.com.

Michael Dayan

unread,
Mar 10, 2023, 11:41:26 AM3/10/23
to xnat_discussion
Rick (and Charlie),

Many thanks for the very prompt feedback. I rebuilt the image but now I have a different error so will have to investigate more on Monday so will update you then.

Meanwhile have a great weekend and thanks again.

Michael
Reply all
Reply to author
Forward
0 new messages