[Geoserver-users] MongoDB extension problem

I have just downloaded and deployed Geoserver 2.17.2 and it was working fine, then I tried to add mongodb extension by downloading it and extracting its jar files (6 files) into web-inf/lib directory, after that geoserver failed to deploy with exception “classNotFoundException org.geotools.data.complex.AppSchemaDataAccess” !

I noticed that this class is available in “gt-app-schema-23.2.jar” so I explicitly added the jar file into web-inf/lib directory and then geoserver deployed successfully.

But when I try to add a mongoDB data store from geoserver store page, it fails with the following exception :

Unable to generate Class instance for binding com.vividsolutions.jts.geom.Geometry.

Any help about this issue please…

Hello Jim,

I made some tests on 2.17.2, here some feedback:

issue 1: the app.schema.jar is indeed missed in the mongo plug-in descriptor, I’ve produced a pr to fix it.

issue 2: I did not reproduce the issue while testing mongodb store creation and layer publishing with v 2.17.2. The error you got points to a wrong binding for the Geometry type (that should be org.locationtech.jts.geom.Geometry) in the json schema. Did you manually create it or did you let the plug-in infer it? In the first case to fix this should be to replace com.vividsolutions.jts.geom.Geometry with org.locationtech.jts.geom.Geometry in the json schema.

Il giorno lun 28 set 2020 alle ore 13:04 jim.carterr via Geoserver-users <geoserver-users@anonymised.comeforge.net> ha scritto:

I have just downloaded and deployed Geoserver 2.17.2 and it was working fine, then I tried to add mongodb extension by downloading it and extracting its jar files (6 files) into web-inf/lib directory, after that geoserver failed to deploy with exception “classNotFoundException org.geotools.data.complex.AppSchemaDataAccess” !

I noticed that this class is available in “gt-app-schema-23.2.jar” so I explicitly added the jar file into web-inf/lib directory and then geoserver deployed successfully.

But when I try to add a mongoDB data store from geoserver store page, it fails with the following exception :

Unable to generate Class instance for binding com.vividsolutions.jts.geom.Geometry.

Any help about this issue please…


Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users