[Geoserver-users] ClassCastException: FilteringFeatureCollection cannot be cast to SimpleFeatureCollection

2012-11-20 Thread Jes Wulfsberg Nielsen
We have upgraded from v2.1.4 to v2.2.1 (using an Oracle database), and are now seeing an error when doing FeatureInfo requests against some (but not all) layers using INFO_FORMAT=application%2Fvnd.ogc.gml: java.lang.ClassCastException: org.geotools.data.store.FilteringFeatureCollection ca

Re: [Geoserver-users] ClassCastException: FilteringFeatureCollection cannot be cast to SimpleFeatureCollection

2012-11-20 Thread Andrea Aime
On Tue, Nov 20, 2012 at 5:42 PM, Jes Wulfsberg Nielsen wrote: > We have upgraded from v2.1.4 to v2.2.1 (using an Oracle database), and are > now seeing an error when doing FeatureInfo requests against some (but not > all) layers using INFO_FORMAT=application%2Fvnd.ogc.gml: > > > > j

Re: [Geoserver-users] ClassCastException: FilteringFeatureCollection cannot be cast to SimpleFeatureCollection

2012-11-20 Thread Justin Deoliveira
I believe this was this issue: http://jira.codehaus.org/browse/GEOS-5377 Which unless i am mistaken was fixed slightly after the 2.2.1 release (Oct 28). You may want to try out a recent nightly build, or wait until 2.2.2 is released. -Justin On Tue, Nov 20, 2012 at 10:14 AM, Andrea Aime wrot

Re: [Geoserver-users] ClassCastException: FilteringFeatureCollection cannot be cast to SimpleFeatureCollection

2012-11-20 Thread Jes Wulfsberg Nielsen
That seems very likely. We tracked it to the features arriving as FilteringFeatureCollection rather than the expected SimpleFeatureCollection in GML2FeatureInfoOutputFormat.java line 77 and throwing a hissy fit there, and I was wondering what would cause them to show up like that, from apparentl

[Geoserver-users] Question about updating LayerInfo objects via the rest api

2012-11-20 Thread Ivan Willig
Hi list, I am trying to use the geoserver rest api to update an layerobject info. I am using GeoServer 2.2.1 on OpenJDK 1.7. I get this xstream exception, https://gist.github.com/4121489 To reproduce this error please use this gist https://gist.github.com/4121471 and the following curl command o

Re: [Geoserver-users] Question about updating LayerInfo objects via the rest api

2012-11-20 Thread Ivan Willig
Never mind.. solved it. On Tue, Nov 20, 2012 at 4:59 PM, Ivan Willig wrote: > Hi list, > > I am trying to use the geoserver rest api to update an layerobject info. I > am using GeoServer 2.2.1 on OpenJDK 1.7. > > I get this xstream exception, https://gist.github.com/4121489 > > To reproduce thi

[Geoserver-users] Spring Security

2012-11-20 Thread Otto Krauth
Hi All, I am trying to figure our how to implement the Spring Security in Geoserver for WMS/WFS services but I can't seem to find any examples other than some are using this code in their OpenLayers code: OpenLayers.Request.issue({ method : "POST", url: " http://localhost:8080

Re: [Geoserver-users] Spring Security

2012-11-20 Thread christian . mueller
Hi Otto, two possibilities 1) Include the Authorization header in each wms/wfs request. 2) Send a POST request to http://localhost:8080/geoserver/j_spring_security_check. The post request needs the "username" and "password" parameters. On success, you should receive a cookie called JSESSIONID