Alessando, your mapping file is schema-invalid. targetTypes should contain only one FeatureType which can contain multiple schemaUri elements. (At this point a nonvalidating parser is used; I'm not sure if it ignores the second FeatureType.)
Kind regards, Ben. On 31/01/12 22:10, alessandro marrone wrote: > Hello > > I was trying to configure an app-schema to deliver WOML features. > I’m able to deliver WFS with womlcore and womlswo elements, but when I try to > map some GML elements I get the following result: > > <ows:ExceptionReport version="2.0.0" > xsi:schemaLocation="http://www.opengis.net/ows/1.1 > http://localhost:8080/geoserver/schemas/ows/1.1.0/owsAll.xsd"> > <ows:Exception exceptionCode="NoApplicableCode"> > <ows:ExceptionText>java.io.IOException: The prefix"null" > for element"null:name" is not bound. > The prefix"null" for element"null:name" is not bound. > The prefix"null" for element"null:name" is not bound. > </ows:ExceptionText> > </ows:Exception> > </ows:ExceptionReport> > > I’m using Geoserver 2.2 SNAPSHOT > > This is the mapping file: > > <?xml version="1.0" encoding="UTF-8"?> > <as:AppSchemaDataAccess xmlns:as="http://www.geotools.org/app-schema" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.geotools.org/app-schema > AppSchemaDataAccess.xsd"> > <namespaces> > <Namespace> > <prefix>gml</prefix> > <uri>http://www.opengis.net/gml/3.2</uri> > </Namespace> > <Namespace> > <prefix>womlswo</prefix> > <uri>http://xml.fmi.fi/namespace/woml/swo/2011/11/15</uri> > </Namespace> > <Namespace> > <prefix>womlcore</prefix> > <uri>http://xml.fmi.fi/namespace/woml/core/2011/11/15</uri> > </Namespace> > </namespaces> > <sourceDataStores> > <DataStore> > <id>datastore</id> > <parameters> > <Parameter> > <name>directory</name> > <value>file:./</value> > </Parameter> > </parameters> > </DataStore> > </sourceDataStores> > <catalog>../../../schemas/catalog.xml</catalog> > <targetTypes> > <FeatureType> > > <schemaUri>http://xml.fmi.fi/schema/woml/swo/2011/11/15/woml-swo.xsd</schemaUri> > </FeatureType> > <FeatureType> > > <schemaUri>http://xml.fmi.fi/schema/woml/core/2011/11/15/woml-core.xsd</schemaUri> > </FeatureType> > </targetTypes> > > <typeMappings> > <FeatureTypeMapping> > <sourceDataStore>datastore</sourceDataStore> > <sourceType>womlswo_ColdFront</sourceType> > <targetElement>womlswo:ColdFront</targetElement> > <attributeMappings> > > <AttributeMapping> > <targetAttribute> > womlswo:ColdFront > </targetAttribute> > <idExpression> > <OCQL>getId()</OCQL> > </idExpression> > </AttributeMapping> > > <AttributeMapping> > <targetAttribute> > gml:name > </targetAttribute> > <sourceExpression> > <OCQL>'test'</OCQL> > </sourceExpression> > </AttributeMapping> > > <AttributeMapping> > <targetAttribute> > womlcore:shortInfo > </targetAttribute> > <sourceExpression> > <OCQL>'test2'</OCQL> > </sourceExpression> > </AttributeMapping> > > </attributeMappings> > </FeatureTypeMapping> > </typeMappings> > </as:AppSchemaDataAccess> > > -- Ben Caradoc-Davies <[email protected]> Software Engineer CSIRO Earth Science and Resource Engineering Australian Resources Research Centre ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Geoserver-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-devel
