Good morning everyone, like others I have issues updating to the latest 16.x version on tomcat, despite reading other solutions I have yet to get past a 404 error after updating however. The error I get is:
HTTP Status 404 – Not Found
Type Status Report
Message The requested resource [/] is not available
Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
To not clutter other peoples poosts Ill start one here for my case;
Environment
dpkg-query --list | grep xwiki
* xwiki-common: 15.8
* xwiki-mysql-common: 15.8
* xwiki-tomcat9-common: 15.8
* xwiki-tomcat9-mysql: 15.8
Update
Start-Date: 2024-05-16 09:28:52
Commandline: apt-get -y install xwiki-common xwiki-mysql-common xwiki-tomcat9-common xwiki-tomcat9-mysql
Install: openjdk-17-jre-headless:amd64 (17.0.10+7-1~22.04.1, automatic)
Upgrade: xwiki-common:amd64 (15.8, 16.3.1), xwiki-tomcat9-common:amd64 (15.8, 16.3.1), xwiki-tomcat9-mysql:amd64 (15.8, 16.3.1), xwiki-mysql-common:amd64 (15.8, 16.3.1)
End-Date: 2024-05-16 09:29:16
After reading other peoples issue I noted the that after the update the $JAVA_HOME was not set and tomcat was running on java 11 so I edited /etc/default/tomcat9 to have
JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64/
the following options are left in the same file similar to as they were before the update;
JAVA_OPTS="-Djava.awt.headless=true -Xmx2048m"
JAVA_OPTS="${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom"
after the update the new java is being used, excerpt from the tomcat catalina.out ;
[2024-05-16 10:39:06] [info] Server version name: Apache Tomcat/9.0.58 (Ubuntu)
[2024-05-16 10:39:06] [info] Server built: Jan 6 1970 15:09:28 UTC
[2024-05-16 10:39:06] [info] Server version number: 9.0.58.0
[2024-05-16 10:39:06] [info] OS Name: Linux
[2024-05-16 10:39:06] [info] OS Version: 5.15.0-107-generic
[2024-05-16 10:39:06] [info] Architecture: amd64
[2024-05-16 10:39:06] [info] Java Home: /usr/lib/jvm/java-17-openjdk-amd64
[2024-05-16 10:39:06] [info] JVM Version: 17.0.10+7-Ubuntu-122.04.1
[2024-05-16 10:39:06] [info] JVM Vendor: Private Build
and the last 100-200 lines from;
catalina out tomcat log.txt (10.5 KB)
syslog.txt (11.7 KB)
the only thing that jumps out to me is the
java.lang.IllegalArgumentException: Invalid character found in method name [0x030x000x00/*0xe00x000x000x000x000x00Cookie: ]
error but I’m unsure what that denotes/means … I did a rollback now till I get an idea what to try next…
As always any and all help is appreciated, thank you in advance!
BR