I did a update from the xWiki Debia 15.10.5 to xWiki 16.2. Then i get the question how Modified configuration file.
-install the package maintainer’s version
-keep the local version currently installed
i tired both option and i get the same problem after.
From the installing everthing looks good so fare, but then i can’t start the main page.
Which configuration file exactly ? For most XWiki configuration files, you also have the choice to merge (which is generally the best).
You should take a look at the log to get more details. This error suggest that the XWiki application failed to initialize so you should take a look at the very first error in the log.
It’s surprising, I always had everything in the same file by default on my side. Maybe check if you have other files related to the xwiki application in /var/log/tomcat9/.
I found this post on stackoverflow on how to get tomcat9 running with java version 17:
In short:
purge java 11.
Add new JAVA_HOME to system environment.
Edit /usr/libexec/tomcat9/tomcat-locate-java.sh so tomcat9 recognizes Java versions newer than 11
I found this post while I was looking for a solution. If you have already solved the problem by yourself, it might help others who also encounter the error.
Thank’s a lot for you replay, i have still open this issue.
i Installed Java : apt-get install openjdk-17-jdk
Adding Java Home i couldn’t do. Because i didn’t find "Adding JAVA_HOME : nano /etc/environment
I have /etc/enviroment.d bit i think this is teh wrong file?
Updated the script.
But i still have the same issue and it start with the java version 11.
Can you give me more information how to do the point 2?
Sorry guys, i really do not understand. And i nearly tried erverthing.
I have the echo. But still xWiki starts with java 11.
Which setup i missed? I really appreciate your help
Maybe you have already set the java variable somewhere else?
Settings in setenv.sh overrides the system variable, I think.
Look at your $CATALINA_BASE/bin and $CATALINA_HOME/bin directories if there is a setenv.sh file.
(In your case: /var/lib/tomcat9/bin/setenv.sh and /usr/share/tomcat/bin/setenv.sh.) Check if “JAVA_HOME” or “JRE_HOME” (or similar) is configured in it. If so, delete it or adjust the path accordingly.
If you need to edit your PATH variable manually, you probable want to add your JAVA_HOME content at the start, so export PATH=$JAVA_HOME/bin:$PATH. The PATH variable is read left-to-right during executable look-up.
I would not recommend to play with links or stuff like core Tomcat scripts as much as possible since they are not designed for this.
On Debian, most customization of Tomcat 9 is supposed to go in /etc/default/tomcat9. Among other things, this file sometime contains an explicit path to the JVM tomcat should use which might be your problem here (you can either try to comment it for Tomcat to use the default JVM or change it to the one you want to use).