Upgrade error from 15.10.12 to 16.10.2

Dear all,

I’m trying to upgrade (wiki.makerspacebonn.de) from lts 15.10.12 to 16.10.2 (debian 11, tomcat 9 ) with the normal process apt update + apt uprade. The process is running smoothly however even after reboot the tomcat is not presenting the xwiki with the error message :

HTTP Status 404 – Not Found


Type Status Report
Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

Apache Tomcat/9.0.43 (Debian)

what went wrong? any ideas?

Not easy to say without some more details (like the tomcat startup log) but one important difference with 15.x is the fact that XWiki 16.x require Java 17. So you might want to check if Tomcat maybe have an explicit reference to Java 11 in /etc/default/tomcat9. When JAVA_HOME is commented it should automatically use the default Java runtime (which should have moved to Java 17 with the upgrade, but you can double check that with java -version).

I’m running on the server debian 11
Therefore Java is at version 11 and tomcat is at version 9
apt update && apt upgrade -y
updates the xwiki from 15.10.12 to 16.10.2
does not upgrade the java version, this will be still java 11
in the case of upgrading the Debian from 11 to 12 I will loose tomcat 9 (is then tomcat 10) , however java will be then V.17.
Ist debian 12 (tomcat10 ) still an issue?

That’s true for Tomcat, but not for Java. You can install several versions of Java, and Debian 11 repository does contain Java 17 (OpenJDK 17 to be a little more accurate). Also, the XWiki 16.10.2 Debian package depends on Java 17 so you definitely have Java 17, it just not the default.

As I said, you can control the JVM to use in Tomcat in /etc/default/tomcat9.
Alternatively, you can control the default Java version of the system using sudo update-alternatives --config java.