From: None N. <new...@ya...> - 2005-06-23 10:42:17
|
Hello, I just started using geotools, and am trying to understand some of the basics. I've configured geoServer to use a legacy mysql table as a datastore. I believe the server side is configured properly. The geoServer (getCapabilities) demo returns the feature IDs (rows), and attributes (columns) of a legacy dB table associated with my datastore. I have a small Java test application, which seems to work. I can see the attributes for the "topp:states" and "topp:bc_roads" features, but not the new datastore. When I try to get a feature reader for the new data store, using the associated query: FeatureReader ftReader = wfs.getFeatureReader(query, Transaction.AUTO_COMMIT); I get an exception org.xml.sax.SAXException: Could not find element handler for http://localhost:8080/myNS : description as a child of legacyDBTable_Type When I call wfs.getSchema("myNS:legacyDBTable") the schema looks OK. And snooping the connection I can see the attributes being returned to the client during the call to "wfs.getFeatureReader". So at this point I'm not sure how to configure the feature reader to work with this particular datastore. I'm guessing it has to do with the name space or description??? Thanks. ____________________________________________________ Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com |