HI 
I am trying to get the WFS example in the trunk running.
It does get all the layers in my geoserver that is running local on my
machine but , as soon as its executing the code (Line 79 of
WFSExample.java):

SimpleFeatureType schema = data.getSchema( typeName );

I get the following error:

May 21, 2008 4:40:34 PM
org.geotools.referencing.factory.epsg.ThreadedAccessEpsgFactory isAvailable
WARNING: Unavailable authority factory: European Petroleum Survey Group
org.opengis.referencing.FactoryException: Failed to connect to the EPSG
database.
        at
org.geotools.referencing.factory.epsg.ThreadedEpsgFactory.createBackingStore(ThreadedEpsgFactory.java:428)
        at
org.geotools.referencing.factory.DeferredAuthorityFactory.getBackingStore(DeferredAuthorityFactory.java:132)
        at
org.geotools.referencing.factory.BufferedAuthorityFactory.isAvailable(BufferedAuthorityFactory.java:232)
        at
org.geotools.referencing.factory.DeferredAuthorityFactory.isAvailable(DeferredAuthorityFactory.java:119)
        at
org.geotools.factory.FactoryRegistry.isAvailable(FactoryRegistry.java:663)
        at
org.geotools.factory.FactoryRegistry.isAcceptable(FactoryRegistry.java:496)
        at
org.geotools.factory.FactoryRegistry$1.filter(FactoryRegistry.java:189)
        at
javax.imageio.spi.FilterIterator.advance(ServiceRegistry.java:793)
        at javax.imageio.spi.FilterIterator.next(ServiceRegistry.java:811)
        at org.geotools.resources.LazySet.addNext(LazySet.java:70)
        at org.geotools.resources.LazySet.get(LazySet.java:120)
        at org.geotools.resources.LazySet$Iter.next(LazySet.java:139)
        at
org.geotools.referencing.factory.ManyAuthoritiesFactory.<init>(ManyAuthoritiesFactory.java:118)
        at
org.geotools.referencing.DefaultAuthorityFactory.getBackingFactory(DefaultAuthorityFactory.java:115)
        at
org.geotools.referencing.DefaultAuthorityFactory.<init>(DefaultAuthorityFactory.java:68)
        at org.geotools.referencing.CRS.getAuthorityFactory(CRS.java:177)
        at org.geotools.referencing.CRS.decode(CRS.java:415)
        at org.geotools.referencing.CRS.decode(CRS.java:343)
        at
org.geotools.wfs.v_1_1_0.data.WFS110ProtocolHandler.getFeatureTypeCRS(WFS110ProtocolHandler.java:466)
        at
org.geotools.wfs.v_1_1_0.data.WFS110ProtocolHandler.parseDescribeFeatureType(WFS110ProtocolHandler.java:333)
        at
org.geotools.wfs.v_1_1_0.data.WFS110ProtocolHandler.getFeatureType(WFS110ProtocolHandler.java:993)
        at
org.geotools.wfs.v_1_1_0.data.WFS_1_1_0_DataStore.getSchema(WFS_1_1_0_DataStore.java:74)
        at com.s3a.wfs.WFSExample.dataAccess(WFSExample.java:79)
        at com.s3a.wfs.WFSExample.main(WFSExample.java:52)
Caused by: java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data
source name not found and no default driver specified
        at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6957)
        at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7114)
        at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:3073)
        at
sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:323)
        at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174)
        at sun.jdbc.odbc.ee.DataSource.getConnection(DataSource.java:65)
        at
org.geotools.referencing.factory.epsg.ThreadedAccessEpsgFactory.createBackingStore(ThreadedAccessEpsgFactory.java:87)
        at
org.geotools.referencing.factory.epsg.ThreadedEpsgFactory.createBackingStore0(ThreadedEpsgFactory.java:384)
        at
org.geotools.referencing.factory.epsg.ThreadedEpsgFactory.createBackingStore(ThreadedEpsgFactory.java:421)
        ... 23 more


I do have the gt-epsg-hsql-2.5-snapshot.jar in my classpath , in fact i have
all the trunk compiled jars in my class path.

Any one can shed some light on this , i would appreciate it very much.

Thanks , Theuns
-- 
View this message in context: 
http://www.nabble.com/WFS-example-in-trunk-tp17364287p17364287.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to