Hi,
you can use jcmd to see which system properties are in use.
So e.g. on my linux server I do:
09:57:48 hans.yperman@…11721…:~
$ sudo jcmd
1297353 jdk.jcmd/sun.tools.jcmd.JCmd
904663 org.apache.catalina.startup.Bootstrap start
which delivers a list of candidate processes. For tomcat you want the org.apache.catalina line, 904663 in my case.
Then, you can send troubleshooting commands, e.g.
09:57:57 hans.yperman@…11721…:~
$ sudo jcmd 904663 VM.system_properties
which dumps all active system properties.
Beware, even after fixing xstream, I never got the clustering plugin working very well. We started to get random crashes and UI locking problems when using it, and sometimes updates went missing, leaving the cluster incoherent. In the end, we just dropped the plugin and clustered with some manual scripting.
Hans

···
Hans Yperman
Department IT
![]()
Vlaams Instituut voor de Zee vzw
InnovOcean Campus, Jacobsenstraat 1
8400 Oostende, België
+32 (0) 59 33 61 13
hans.yperman@…1715…
www.vliz.be
Van: Ricard Peiro <ricard.peiro@…11372…>
Verzonden: maandag 6 februari 2023 17:12
Aan: geoserver-users@lists.sourceforge.net geoserver-users@lists.sourceforge.net
Onderwerp: [Geoserver-users] XSTREAM whitelist jor JMS clustering plugin.
Hello, I’m using the JMS clustering plugin in my Geoserver instance using version 2.22.1, I get the XSTREAM forbidden class error described in the troubleshooting in the documentation. I have tried adding all the classes that have started an error to a system property, but the forbidden class error still appears for the classes I have added.
To add to the classes to the whitelist, I have added -DEGOESERVER=’comma-separated-list-of-classess’ to the JAVA_OPTS. Is this the correct way? Is it possible to whitelist the classes for JMS clustering plugin.?
Thankyou.
Ricard