-
Notifications
You must be signed in to change notification settings - Fork 416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.NoClassDefFoundError: org/geotools/api/geometry/Position #3155
Comments
Looks to be an integration issue, you should open an issue on geoserver-printing-plugin... |
@sbrunner Where would I do that? The only documentation i find sends me here. |
the geoserver printing plugin seems to use mapfishprint v2.3.0, which uses geotools 30.0: the geotools version being used in geoserver 2.24.1 is the v30.1: I guess it could deserve an issue on geoserver's JIRA: |
@pmauduit I actually had a typo in the original post, i am using |
What I did to write my previous comment was to download the official GS release you mentioned, check in the WAR file for gt-* files under WEB-INF/lib, doing the same for the print plugin. For 2.21.2, we can find a print-lib-2.1.5.jar in the plugin zip file ; from the mfprint sources it sounds that it relies on a pretty old version of GT (8.6): And the geoserver 2.21.2 comes with geotools 27.2: I'd assume that both GT versions are too far from each other to be compatible. |
@pmauduit thank you, it seems like they mismatched the plugin version with the geoserver version somehow. This is not what i was hoping for... I downloaded older versions of the plugin and they all are using print-lib-2.1.5 so i guess my only option is to upgrade geoserver to 2.24.0 and the 2.24.0 print plugin that I confirmed uses print-lib 2.3.0. Do you see any less invasive option? |
I'd have checked newer versions of the print plugin, instead of older ones, there are more chances to find an updated version of the print which would match the GT version being used in GS. but the risk is to use a version of the plugin which would be incompatible with your geoserver. |
@pmauduit I upgraded the plugin to geoserver-2.24.0-printing-plugin which uses print-lib-2.3.0 and I'm still getting the same exact error. I wasn't expecting it to necessarily work because it could be incompatible with geoserver, but I did figure it would not give me the same error. Any thoughts? I think my next step is to move forward on an upgrade of geoserver. Also, I created an issue on the geoserver issues hopefully they can give guidance. |
Context
Describe the bug
I am trying to create a pdf and it returns the error:
How to reproduce
here is the code i am using to call the generation of the pdf:
Expected results
Just a pdf containing the layer I requested.
The text was updated successfully, but these errors were encountered: