It is appreciated if you can keep questions on the public mailing list. 
Thanks.

As for the error, can you turn up the logging 
(GEOSERVER_DEVELOPER_LOGGING) and try it again. You should see a stack 
trace on the console. Hopefully that will give us a clue.

Thanks,

-Justin

[email protected] wrote:
> Another report.
> 
> When I have a empty postgis table, I can manually configure a layer using the 
> GS web gui by manually enter a latlon bounding box.
> 
> But when I try the samething using restconfig, like this (following the 
> example you gave me in the last email)
> 
>> curl -u admin:geoserver -v -XPOST -H 'Content-type: text/xml' -d 
>> '<featureType><name>nytst</name><srs>EPSG:32018</srs><latLonBoundingBox>-74.31,40.8,-73.75,41.25</latLonBoundingBox></featureType>'
>>  
>> http://66.202.135.242:8080/geoserver/rest/workspaces/usa/datastores/cny/featuretypes
> * About to connect() to 66.202.135.242 port 8080
> *   Trying 66.202.135.242... connected
> * Connected to 66.202.135.242 (66.202.135.242) port 8080
> * Server auth using Basic with user 'admin'
>> POST /geoserver/rest/workspaces/usa/datastores/cny/featuretypes HTTP/1.1
>> Authorization: Basic YWRtaW46Z2Vvc2VydmVy
>> User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 
>> OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
>> Host: 66.202.135.242:8080
>> Accept: */*
>> Content-type: text/xml
>> Content-Length: 129
>>
>> <featureType><name>nytst</name><srs>EPSG:32018</srs><latLonBoundingBox>-74.31,40.8,-73.75,41.25</latLonBoundingBox></featureType>HTTP/1.1
>>  500 Internal Server Error
> < Server: Apache-Coyote/1.1
> < Transfer-Encoding: chunked
> < Date: Mon, 04 May 2009 22:33:55 GMT
> < Connection: close
> * Closing connection #0
> 
> I keep getting 500 Internal Server Error. 
> 
> Does this have to do with the xml syntax,  or is there some other problems ?
> 
> It's important for me to be able to create empty postgis tables, which can be 
> used to add features later on.
> Dukie.


-- 
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to