Hi all,
I have recently upgraded my dogtag's foundation to Fedora 41 and then
found I had to do some maintenance work.
The system is up to date:
[root@ca2 ~]# pki-server --version
PKI Server Command-Line Interface 11.6.0-1
[root@ca2 ~]# pki-server status <censored>
Instance ID: <censored>
Active: True
Nuxwdog Enabled: False
Unsecure Port: 8080
Secure Port: 8443
Tomcat Port: 8005
CA Subsystem:
SD Manager: True
SD Name: IT-Service Lehmann <censored>
SD Registration URL: https://<xensored>.de:8443
Enabled: True
<snip more details>
The result trying my maintenance task was the following:
# LANG=C pki-server ca-user-cert-find caadmin -i <censored>
Error: LinkageError occurred while loading main class
org.dogtagpki.server.cli.PKIServerCLI
java.lang.UnsupportedClassVersionError:
org/dogtagpki/server/cli/PKIServerCLI has been compiled by a more recent
version of the Java Runtime (class file version 61.0), this version of
the Java Runtime only recognizes class file versions up to 55.0
So I checked, found that the dogtag dev guide indicates that openjdk-17
should be a good choice.
However, I found that I seem to use a current Java environment by default:
[root@ca2 ~]# java --version
openjdk 21.0.7 2025-04-15
OpenJDK Runtime Environment (Red_Hat-21.0.7.0.6-1) (build 21.0.7+6)
OpenJDK 64-Bit Server VM (Red_Hat-21.0.7.0.6-1) (build 21.0.7+6, mixed
mode, sharing)
I also found that I have older versions installed still -- OpenJDK 11
and 1.8. I removed those using dnf, verified I use JDK17 by default with
'alternatives java', retried the pki-server program, and --
[root@ca2 ~]# LANG=C pki-server ca-user-cert-find caadmin -i <censored>
runuser: failed to execute /usr/lib/jvm/jre-11-openjdk/bin/java: No such
file or directory
Looks like there's a particular ja aversion or path hardcoded somewhere,
and after several generations of updates of this system, some
inconsistency developed.
The result being I can't play with my CA anymore.
Any advice so I can continue playing, learning, and actually using my CA
instance?
Thanks,
Arno
--
Arno Lehmann
IT-Service Lehmann
Sandstr. 6, 49080 Osnabrück