--
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/CAGKzk9Wp_uaD-NzBLOQeoatAyWv8_DrKCqgGyzrC7--GgZjHsg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/851f454e-2c2c-4b89-b21a-b307f8eb5482n%40googlegroups.com.
That looks correct, but that only affects how Tomcat is run. The pipeline engine is invoked by the XNAT application, but it uses whatever version of Java is configured in the XNAT user’s server environment, i.e. the environment for the user on the server system, not what’s specified in the Tomcat configuration. The application that’s failing, XnatDataClient, is invoked through the script in xnat-tools/XnatDataClient, which looks like this:
java -classpath … org.nrg.xnat.client.data.XnatDataClient $@
JAVA_HOME affects some things like, e.g., locating jar files and native code libraries and so on, but the executable that gets run when you type in something like java on the command line is dependent on the user’s path. So you have a couple of options to fix this:
The latter is probably the best and easiest. Just do this:
$ update-java-alternatives --list
java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64
java-1.8.0-openjdk-amd64 1081 /usr/lib/jvm/java-1.8.0-openjdk-amd64
$ update-java-alternatives --set java-1.8.0-openjdk-amd64
update-alternatives: error: no alternatives for mozilla-javaplugin.so
update-java-alternatives: plugin alternative does not exist: /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/IcedTeaPlugin.so
$ javac -version
javac 1.8.0_265
You may or may not see those warnings/errors about “no alternatives for…”, “plugin alternative does not exist…” If you do, don’t worry about it: it’s just saying there’s no browser plugin for applet support, which hasn’t been supported in any major browser for a few years now anyway.
--
Rick Herrick
Sr. Programmer/Analyst
Neuroinformatics Research Group
Washington University School of Medicine
Phone: +1 (314) 273-1645
From:
xnat_di...@googlegroups.com <xnat_di...@googlegroups.com>
Date: Tuesday, September 22, 2020 at 9:07 AM
To: xnat_discussion <xnat_di...@googlegroups.com>
Subject: Re: [XNAT Discussion] Autorun fails upon uploading
|
* External Email - Caution * |
To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/de85e92a-129e-4d41-aeaa-ab95039a6ccdn%40googlegroups.com.
The materials in this message are private and may contain Protected Healthcare Information or other information of a sensitive nature. If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.