带有GWT(开发模式码头)的GeoTools

|| 在GWT中使用GeoTools时,在开发模式下运行应用程序时,我得到以下堆栈跟踪:
WARNING: Can\'t load a service for category \"CRSAuthorityFactory\". Cause is \"ServiceConfigurationError: org.opengis.referencing.crs.CRSAuthorityFactory: Provider org (...) lang.ClassCastException: class org.geotools.referencing.operation.DefaultMathTransformFactory\".
sun.misc.ServiceConfigurationError: org.opengis.referencing.crs.CRSAuthorityFactory: Provider org.geotools.referencing.factory.epsg.DefaultFactory could not be instantiated: java.lang.ClassCastException: class org.geotools.referencing.operation.DefaultMathTransformFactory
    at sun.misc.Service.fail(Unknown Source)
    at sun.misc.Service.access$200(Unknown Source)
    at sun.misc.Service$LazyIterator.next(Unknown Source)
    at org.geotools.factory.FactoryRegistry.register(FactoryRegistry.java:829)
    at org.geotools.factory.FactoryRegistry.scanForPlugins(FactoryRegistry.java:773)
    at org.geotools.factory.FactoryRegistry.scanForPluginsIfNeeded(FactoryRegistry.java:808)
    at org.geotools.factory.FactoryRegistry.getUnfilteredProviders(FactoryRegistry.java:229)
    at org.geotools.factory.FactoryRegistry.getServiceImplementation(FactoryRegistry.java:429)
    at org.geotools.factory.FactoryRegistry.getServiceProvider(FactoryRegistry.java:364)
    at org.geotools.factory.FactoryCreator.getServiceProvider(FactoryCreator.java:143)
    at org.geotools.referencing.ReferencingFactoryFinder.getAuthorityFactory(ReferencingFactoryFinder.java:216)
    at org.geotools.referencing.ReferencingFactoryFinder.getCRSAuthorityFactory(ReferencingFactoryFinder.java:436)
这似乎是Jetty的事情,因为当我部署到另一个容器时,它可以正常工作。有想法该怎么解决这个吗?     
已邀请:
看来这是Jetty中类加载的问题。找到了这个GeoTools问题和这个GWT补丁,这两个补丁似乎都可以解决该问题,但是目前似乎都没有引起人们的注意。 GeoMajas使用ServletFilter解决了劫持Jetty的类加载器的问题:我最终采用了相同的方法,该方法有效。     

要回复问题请先登录注册