Bruce, your two references to the property name gwml2wc:bHoleDateOfDrilling differ in the case of "h" in "Hole". XML names are case sensitive.
In the mapping file you have: <targetAttribute>gwml2wc:bholeDateOfDrilling</targetAttribute> with a lowercase "h" but the reported property name is: http://www.opengis.net/gwml-wellconstruction/2.1#bHoleDateOfDrilling with an uppercase "H". The capitalisation of "bHoleDateOfDrilling" seems inconsistent with other property names; you might like to check the schema and report back to the schema maintainer. Please either change your mapping file to use "<targetAttribute>gwml2wc:bHoleDateOfDrilling</targetAttribute>" or change the property name in the schema to "bholeDateOfDrilling". Your sourceExpression is fine as bare postgis column names are mapped to lowercase and are thus case insensitive. Kind regards, Ben. On 27/11/15 16:11, [email protected] wrote: > Hi, > GroundWaterML2 services that were running in August are now giving errors. > In this error the response suggests that gwml2wc:bholeDateOfDrilling is not a > valid path, but then it is listed as one of the valid paths: > > java.lang.RuntimeException: Error applying mapping with targetAttribute > gwml2wc:bholeDateOfDrilling > gwml2wc:bholeDateOfDrilling is not a valid location path for type > http://www.opengis.net/gwml-wellconstruction/2.1:BoreholeType. > gwml2wc:bholeDateOfDrilling ns: > http://www.opengis.net/gwml-wellconstruction/2.1, > BoreholeType properties: > ... <snip> > http://www.opengis.net/gwml-wellconstruction/2.1#bholeCoreInterval, > http://www.opengis.net/gwml-wellconstruction/2.1#bHoleDateOfDrilling, > http://www.opengis.net/gwml-wellconstruction/2.1#bholeDriller, > ... <snip> > > The datatype in the PostGres database is "date". > > The Attribute mapping in the configuration file is: > <AttributeMapping> > <targetAttribute>gwml2wc:bholeDateOfDrilling</targetAttribute> > <sourceExpression> > <OCQL>bholedateofdrilling</OCQL> > </sourceExpression> > </AttributeMapping> > > Removing this from the configuration file returns a WFS response without > errors. > This GeoServer instance is running version 2.6.2 > > Cheers > Bruce Simons > Information Modeller > CSIRO Land and Water/ Environmental Information Infrastructures > E: [email protected]<mailto:[email protected]> T: +61 3 9252 6514 M: > +61 475 954 391 > PO Box 56, Highett, Victoria, 3190 > > > > > ------------------------------------------------------------------------------ > > > > _______________________________________________ > Geoserver-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-users > -- Ben Caradoc-Davies <[email protected]> Director Transient Software Limited <http://transient.nz/> New Zealand ------------------------------------------------------------------------------ _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
