If you look carefully, you will notice that the versions of xwiki-tomcat9-common and xwiki-tomcat9-pgsql are not what you want at all. That’s because XWiki 17+ does not support Tomcat 9 anymore and require Tomcat 10+ (there is just a wrong dependency in the package xwiki-tomcat9-pgsql 17.0.0, that you noticed, which was fixed in 17.0.0-1).
Hi, I have the same problem and for me it is not 100% clear how to solve it. Do I need to migrate from tomcat9 to tomcat10 and what settings do I need to adjust afterwards?
As indicated in the upgrade page, you need to install the xwiki-tomcat10-<database> packages instead (it should replace the tomcat9 ones automatically). As for the setting, it should be the same as for tomcat9, the difference being that most settings (at least those which are generally modified for XWiki) are located in /etc/default/tomcat10 instead of /etc/default/tomcat9.
So finally I had time to try the update again. I did the tomcat10 installation in the following steps in the Ubuntu 24.04 version:
sudo apt update
sudp systemctl stop tomcat9
sudo apt-get remove --purge tomcat9
sudo apt install xwiki-tomcat10-mariadbx
do a 3way merge in the configuration file
sudp apt upgrade
sudo reboot
sudo systemctl status tomcat10
Everthing works so fare and I wonder if I did it the right way? Because I get a yellow “has been ignored” text after i check the tomcat10 status. how can i solve this and or do i have to ignore it?
I don’t think those were absolutely needed (the fact that xwiki-tomcat10-mariadb require tomcat10 is supposed to cause tomcat9 to be uninstalled, which should caused it to be stopped). Did you have any issue without it, or you just did not want to take any chances ?
This one is actually an old one (had it with tomcat 9 too as far as I know). Need to improve a bit the descriptor.
If I don’t remove tomcat9, I get http status 404 - not found with the Apache tomcate/9.0.70 comment. Then I thought I had to remove the old version because I also had tomcat9 and tomcat10 listed in the directory. Or in which configuration file should I have changed the version so that xwiki does starts with tomcat10?
To the the yellow comment, if I see it correctly. I don’t have the text anymore after running the xwiki upgrade wizard, but I’ll have to check again when I do the final upgrade.
Hmm, I thought tomcat10 and tomcat9 were explicitly indicated as conflicting (since they cannot run at the same time by default), but indeed it does not seem to be the case with the current version of the tomcat10 package on Debian 12. Maybe they changed that later (since it’s not supposed to be needed when the repository only contains one of them at the same time…).
well, that depends whether you’ve never touched nothing in Tomcat folder, then no. Otherwise you need to put your changes into new Tomcat folder. For instance, on my end with Tomcat 9 I saved two files server.xml and web.xml where I did some changes and during setting up new Tomcat 10 I did manual merge of changes into new files.
Extra info, I’m Windows user, so I didn’t have any issues with Tomcat upgrade - simply downloaded new version on unzipped it.