2011-04-27 107 views
2

使用GeoTools與GWT,我得到了在開發模式下運行我的應用程序時,下面的堆棧跟蹤:GeoTools與GWT(開發模式碼頭)

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) 

seems to be a Jetty thing,因爲當我部署到另一個容器中工作正常。有想法該怎麼解決這個嗎?

回答