Philip, Do you have the gt-shapefile jar on your classpath?
How did you build your uber-jar? Did you concatenate all the /META-INF/services files? This is a Java SPI error that should never occur if you have the gt-shapefile jar on the classpath. It looks like something is trying to discover a provider for FileDataStoreFactorySpi; I think gt-shapefile provides the only (supported) implementation. Either you lack gt-shapefile or its /META-INF/services/org.geotools.data.FileDataStoreFactorySpi has been damaged/removed. If a JAR file contains files in /META-INF/services named for the long class name of an interface, they list list implementations of that interface that can be discovered dynamically at runtime. This is the Service Provider Interface (SPI): http://docs.oracle.com/javase/7/docs/technotes/guides/jar/jar.html#Service_Provider You can have multiple service providers on the classpath. They are searched in the order found. Kind regards, Ben. On 14/02/14 17:51, Oehler, Philipp wrote: > Dear Geotoolers, > > I’m using geotools in a big project. Since we can’t use maven in this > big project, I split the parts using geotools apart in a second project > with maven, and export it as a .JAR with libraries into the big project. > > This worked fine. > > But now, out of nowhere, I’m getting an error > > “Can't load a service for category "FileDataStoreFactorySpi"” > > when running the big project with the second project as .jar in the > build path. > > Running the second project standalone works fine, so it’s not really an > issue of my code. > > Maven cleanups don’t fix it, but they change the JRE/JDK. (?!?) > > I had this error months before when I was using geotools without maven. > But since I’m using it with maven now, I’m pretty astounded that this > error occurs again :/ > > Any ideas? I’m pretty perplexed… > > Can this be an issue of conflicting JRE’s/JDK’s?! > > Thank you very much in advance… > Philipp > > > > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > > > > _______________________________________________ > GeoTools-GT2-Users mailing list > GeoTools-GT2-Users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > -- Ben Caradoc-Davies <ben.caradoc-dav...@csiro.au> Software Engineer CSIRO Earth Science and Resource Engineering Australian Resources Research Centre ------------------------------------------------------------------------------ Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk _______________________________________________ GeoTools-GT2-Users mailing list GeoTools-GT2-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users