Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[udig-devel] Too many plug-in apis in the kitchen?

I am having a wee bit o fun with Eclipse vs Geotools and their ideas on extendability.

Near as I can tell:
- eclipse does a bunch of magic class loader stuff (to keep plugins in separate Class loaders) unless they explictly have a common dependency. - geotools does some magic lass loader stuff when locating a DataStoresFactorySpi for use

Here is the error message:
org.geotools.factory.FactoryConfigurationError: Provider org.geotools.data.gml.GMLDataStoreFactory not found - please check your classpath
   at org.geotools.factory.FactoryFinder.newInstance(FactoryFinder.java:92)
   at org.geotools.factory.FactoryFinder.getFactory(FactoryFinder.java:156)
   at org.geotools.factory.FactoryFinder.getFactory(FactoryFinder.java:139)
   at org.geotools.factory.FactoryFinder.access$000(FactoryFinder.java:59)
   at org.geotools.factory.FactoryFinder$1.next(FactoryFinder.java:299)
at org.geotools.data.DataStoreFinder.getAvailableDataStores(DataStoreFinder.java:110) at net.refractions.udig.internal.registry.LocalRegistry.seach(LocalRegistry.java:121) at net.refractions.udig.internal.registry.LocalRegistryTest.testSeach(LocalRegistryTest.java:123)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at junit.framework.TestCase.runTest(TestCase.java:154)
   at junit.framework.TestCase.runBare(TestCase.java:127)
   at junit.framework.TestResult$1.protect(TestResult.java:106)
   at junit.framework.TestResult.runProtected(TestResult.java:124)
   at junit.framework.TestResult.run(TestResult.java:109)
   at junit.framework.TestCase.run(TestCase.java:118)
   at junit.framework.TestSuite.runTest(TestSuite.java:208)
   at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:421) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:305) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:186) Caused by: java.lang.ClassNotFoundException: org.geotools.data.gml.GMLDataStoreFactory
   at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
   at org.geotools.factory.FactoryFinder.newInstance(FactoryFinder.java:87)
   ... 22 more




Back to the top