Hi all! I noticed that GeoServer depends on two different version of the json-lib library (2.1 and 2.2.3).
The 2.1 version comes from GeoWebCache (https://github.com/GeoWebCache/geowebcache/blob/master/geowebcache/pom.xml) while the 2.2.3 version comes from GeoServer itself (https://github.com/geoserver/geoserver/blob/master/src/pom.xml). I discovered this while working on a pull request to integrate Geoscript Groovy into the community scripting module. Because of Groovy Metaclasses embedded in json-lib 2.1 (groovy.runtime.metaclass.java.lang.StringMetaClass for example), any code compiled by a different versions of the the Groovy compiler will throw an error. Json-lib 2.1 was compiled with Groovy 1.0 (which is ancient). GeoScript Groovy uses 1.8.8. Json-lib 2.2.3 removed these Groovy metaclasses. So, to get GeoScript Groovy working with the community scripting module, we need to do one or two things: upgrade GeoWebCache's json-lib library to 2.2.3 or exclude the gwc json-lib dependency in the following files: src/gwc/pom.xml, the src/web/app/pom.xml, and the src/we/gwc/pom.xml. Either way, I will gladly file a jira issue and create a pull request if it would be helpful. Thanks, Jared ------------------------------------------------------------------------------ LogMeIn Central: Instant, anywhere, Remote PC access and management. Stay in control, update software, and manage PCs from one command center Diagnose problems and improve visibility into emerging IT issues Automate, monitor and manage. Do more in less time with Central http://p.sf.net/sfu/logmein12331_d2d _______________________________________________ Geoserver-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-devel
