From: <Joh...@no...> - 2008-07-21 20:24:25
|
Helllo All, I have a very simple shapefile reading class based on the example (http://docs.codehaus.org/display/GEOTDOC/04+How+to+Read+a+Shapefile). Everything works OK when executing w/ "mvn exec:java". However, when I bundle everything up into a executable jar using "mvn assembly:assembly", I get a RuntimeException trying to use the generated jar file. I can't understand why there's a problem locating a function "length" nor really why it's being called. Any suggestions? Thanks! --john java -jar ./target/shapefile-reader-jar-with-dependencies.jar ~/shapefiles/country.shp java.lang.RuntimeException: Unable to find function Length at org.geotools.filter.FunctionFinder.findFunction(FunctionFinder.java:83) at org.geotools.filter.FilterFactoryImpl.function(FilterFactoryImpl.java:423) at org.geotools.feature.DefaultAttributeTypeFactory.createAttributeType(DefaultAttributeTypeFactory.java:158) at org.geotools.feature.AttributeTypeFactory.newAttributeType(AttributeTypeFactory.java:92) at org.geotools.data.shapefile.ShapefileDataStore.readAttributes(ShapefileDataStore.java:703) at org.geotools.data.shapefile.indexed.IndexedShapefileDataStore.getSchema(IndexedShapefileDataStore.java:898) at org.geotools.data.shapefile.indexed.IndexedShapefileDataStore.getSchema(IndexedShapefileDataStore.java:892) at org.geotools.data.shapefile.indexed.IndexedShapefileDataStore.getFeatureSource(IndexedShapefileDataStore.java:1002) at gov.noaa.eds.App.main(App.java:49) |