Problem solved, i needed to add VERSION=1.0.0 to the getcapabilities URL,
solved from this post -

http://n2.nabble.com/no-subject-td2647532.html#a2647532

Thanks!


Cruelemort wrote:
> 
> I do not know if i am posting to the correct place but i am having some
> trouble with WFS-T using GeoTools.
> 
> I downloaded the tools and started building a program with them, ending in
> -
> 
> FeatureSource features =
> dataStore.getFeatureSource(dataStore.getTypeNames()[2]);
> FeatureStore store = (FeatureStore)features;
> 
> When the last line happens i get a ClassCastException stating -
> 
> org.geotools.data.wfs.v1_1_0.WFSFeatureSource cannot be cast to
> org.geotools.data.FeatureStore
> 
> I have read in a couple of places that this can happen if a primary key is
> not defined or if you do not have write access to the table, my table does
> have a primary key, and GeoServer is set up to use a valid user account
> that should have write access...
> 
> Does anybody have any idea what might be causing this problem? Or the
> correct place to ask this question if this is not it...
> 
> Thanks!
> 

-- 
View this message in context: 
http://n2.nabble.com/GeoServer-access-issues-tp3945542p3945652.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to