On Fri, Aug 19, 2011 at 9:44 PM, Garey Mills <gmi...@library.berkeley.edu> wrote: > Hi - > > I am using Geoserver 2.1.1. have a several hundreds layers in > around 10 stores. I created them all by creating PostGis tables from > shape files and then running a cURL command line like this: > > curl -u admin:<passwd> -XPOST -H 'Content-type: text/xml' -d > '<featureType><name>airport</name></featureType>' > http://localhost:8080/geoserver/rest/workspaces/UCB/datastores/sanmateocounty/featuretypes > > > Today I had to add a few more layers. I created a batch file, ran > it and it failed. I saw immediately that I had changed the admin > password but had the old one in my batch lines. I changed it and ran the > batch file again. But now I get > > 'Trying to create new feature type inside the store, but no > attributes were specified' > > I have restarted the server, but no dice. Below is the log. > > Is there any way to get the RESTful interface working again?
When POSTing to a feature type resource the are two possible actions: - configuration of a existing table - if the table does not exists, it's possible to create it, but in this case the list of attributes has to be provided The stack trace shows you're falling in the second case, that is, the table that you're trying to configure is not known to GeoServer. There could be various motivations, for example: - the table is in a schema other than the one configured in the store - the table is not readable by the user that you use to connect - the name of the table is using the wrong case (GeoServer uses quotes around the name to have all table and attribute names case be mantained, as all OGC services are case sensitive) Cheers Andrea -- ------------------------------------------------------- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ------------------------------------------------------- ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 _______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users