Good day,
Hope all is well and that you are keeping safe.
We have had the pleasure of testing the RC 2.24 GeoServer release and below is some of the feedback we have compiled regarding installation and testing.
Geoserver RC-24:
Windows installation:
(attachments)
···
- Both the Windows installer and Bin versions crash with the following error message when using OpenJDK 17.0.8.7 (layer preview or server status)
javax.servlet.ServletException: org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.IllegalAccessError: superclass access check failed: class org.marlin.pisces.MarlinRenderingEngine (in unnamed module @0x3a0ee19b) cannot access class sun.java2d.pipe.RenderingEngine (in module java.desktop) because module java.desktop does not export sun.java2d.pipe to unnamed module @0x3a0ee19b
With OpenJDK 11.0.20.8, there is a subtle warning, but it does still render a map correctly:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.geoserver.web.admin.StatusPanel (file:/______v2.24-RC/GeoServer/webapps/geoserver/WEB-INF/lib/gs-web-core-2.24-RC.jar) to method sun.java2d.pipe.RenderingEngine.getInstance()
WARNING: Please consider reporting this to the maintainers of org.geoserver.web.admin.StatusPanel
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
INFO: ===============================================================================
INFO: Marlin software rasterizer = ENABLED
INFO: Version = [marlin-0.9.3-Unsafe]
INFO: sun.java2d.renderer = org.marlin.pisces.MarlinRenderingEngine
I do not think this is limited to v2.24-RC. The same problems occur when running v2.22.5 on Windows (17 and 11).
Researching: https://gis.stackexchange.com/questions/432408/geoserver-problems-with-java-18 and reading:
https://docs.geoserver.org/main/en/user/production/java.html#running-on-java-17
This will help:
rm webapps/geoserver/WEB-INF/lib/marlin-0.9.3.jar
and then it will work on OpenJDK 17. Confirmed.
- Tested on OpenJDK-11
- Created workspace
- Created a PostGIS datastore
- Created layers
- Viewed layers
- Created styles
- Created users and rolls (Tested that users can only view certain data which were assigned to them)
Linux (AfriGIS servers)
-
Viewing existing AfriGIS data were successful
-
Successful functionality tests:
-
Created workspace
-
Created a PostGIS (JNDI) datastore
-
Created a PostGIS (JNDI) datastore
-
Created layers
-
Viewed layers
-
Created styles
-
Tested existing users and rolls (Tested that users can only view certain data which were assigned to them)
-
consider creating a symbolic link for the Tomcat directory.
e.g.
example command: ln -s /opt/apache-tomcat-9.0.75 /opt/apache-tomcat
Kind Regards
JP Motaung
IT | Systems Administrator
Office +27 87 310 6400
Mobile +27 82 311 0696
AfriGIS (Pty) Ltd
-25.808611 | 28.256111
Rigel Park, 446 Rigel Avenue S, Erasmusrand, Pretoria, South Africa