This error means that comcomp:BranchManagerType does not have a property comcomp:otherVar so it cannot be used in a xpath (that is why it referring to "location path"). targetAttribute is in general an xpath.
Kind regards, Ben. On 04/10/13 11:04, snuffy wrote: > Hello Ben, > > I managed to get it working, thanks for your quick reply on this. > > > I'm now trying to generalise this simple use case into my more complex > model, with more complex types, and frustratingly I'm getting a new set > of errors: > > java.lang.RuntimeException: Error applying mapping with targetAttribute > comcomp:otherVar Error applying mapping with targetAttribute > comcomp:otherVarcomcompotherVar is not a valid location path for type > http://www.x.com/comcomp/1.0:BranchManagerType. comcomp:otherVar ns: > http://www.x.com/comcomp/1.0, BranchManagerType properties: > null#FEATURE_LINK, http://www.x.com/comcomp/1.0#branchManagerType > > > Since this ended up working fine in my simpler model i'm going to redo > my more complex one, in the hope that it does fix the issue. > > ... but if you have any quick suggestions on what these errors mean, > then I'd be very appreciative to hear them. > > Thanks > > > On 2 October 2013 19:36, Ben Caradoc-Davies <[email protected] > <mailto:[email protected]>> wrote: > > Please send us the full error message that you get (include a stack > trace from the logs if you have one), and your mapping file. > > Your schemas look good. Good job using FullMoon to generate them! > > Kind regards, > Ben. > > > On 02/10/13 15:44, snuffy wrote: > > Hello, > > I was playing around with app-schema and trying to do inheritance. > > I've got the following classes: (all exist within same namespace of > 'company') > There are 3 separate xsd's > (person/employee/customer- people.xsd) > (manager - people-core.xsd) > (branchmanager - people-retail.xsd) > > Person (fields: name,age) > ^-Employee (fields: employeeID,salary) ^- Customer (fields: > custID,revenue) > ^-Manager (fields: managementGroup) > ^-BranchManager (fields: branchID) > > > When I try to refer to 'salary' from within the BranchManager it > claims > that it does not exist. > > eg. > <AttributeMapping> > <targetAttribute>company:__branchID</targetAttribute> > <sourceExpression> > <OCQL>pemb_brid</OCQL> > </sourceExpression> > </AttributeMapping> > > <AttributeMapping> > <targetAttribute>company:__salary</targetAttribute> > <sourceExpression> > <OCQL>pe_salary</OCQL> > </sourceExpression> > </AttributeMapping> > > > The DB table for branchManager has that field as expected. > > Of course from the 'Employee' app-schema I can refer to it just fine > using 'company:salary'. > > What am I missing ? > > The XSD's specify the substitution groups ok, (example below of > 'employee') > > <complexType name="EmployeeType"> > <complexContent> > <extension base="company:PersonType"> > > Have attached full xsds. > > The targetTypes schemaUri is set to the correct one for > 'branchManager' > (people-retail.xsd) that has an 'include' to the core people.xsd > > > > ------------------------------__------------------------------__------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get > the most from > the latest Intel processors and coprocessors. See abstracts and > register > > > http://pubads.g.doubleclick.__net/gampad/clk?id=60134791&iu=__/4140/ostg.clktrk > > > > _________________________________________________ > Geoserver-users mailing list > Geoserver-users@lists.__sourceforge.net > https://lists.sourceforge.net/__lists/listinfo/geoserver-users > > > -- > Ben Caradoc-Davies <[email protected]> > Software Engineer > CSIRO Earth Science and Resource Engineering > Australian Resources Research Centre > > -- Ben Caradoc-Davies <[email protected]> Software Engineer CSIRO Earth Science and Resource Engineering Australian Resources Research Centre ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
