Good thinking.

GeoTools is wired up at runtime using Java Service Provider Interface (SPI)
plugin system. This is a very simple system that uses text files located in
META-INF/services to list what implementations are available in each jar.

To try it yourself consider this tutorial:
http://docs.geotools.org/latest/userguide/tutorial/function.html

I can find the EPSGCRSAuthorityFactory being hooked up correctly in the
epsg-wkt jar here
<https://github.com/geotools/geotools/blob/master/modules/plugin/epsg-wkt/src/main/resources/META-INF/services/org.opengis.referencing.crs.CRSAuthorityFactory>
.

The other one "org.vfny.geoserver.crs.GeoserverOverridingWKTFactory" seems
to come from geoserver? So perhaps this is a geoserver-devel question.


--
Jody Garnett

On 27 August 2015 at 01:11, Marcel <[email protected]> wrote:

> Hello all,
>
> When running a jar-file on yarn I get the following error message:
>
> WARNING: Can't load a service for category "CRSAuthorityFactory". Cause
> is "ServiceConfigurationError:
> org.opengis.referencing.crs.CRSAuthorityFactory: Provider
>
> org.vfny.geoserver.crs.GeoserverOverridingWKTFactoryorg.geotools.referencing.crs.EPSGCRSAuthorityFactory
> not found".
> java.util.ServiceConfigurationError:
> org.opengis.referencing.crs.CRSAuthorityFactory: Provider
>
> org.vfny.geoserver.crs.GeoserverOverridingWKTFactoryorg.geotools.referencing.crs.EPSGCRSAuthorityFactory
> not found
>
>
> It looks to me that there is a problem with class loading, because there
> is a separator missing.
> This is very suspect:
>
> org.vfny.geoserver.crs.GeoserverOverridingWKTFactoryorg.geotools.referencing.crs.EPSGCRSAuthorityFactory
> not found
> I think this line should be splitted up into two classes. What could be
> the cause for this problem? And how can I solve it?
>
> Thanks in advance.
> Marcel Jacob.
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> GeoTools-GT2-Users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
------------------------------------------------------------------------------
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to