You should try to determine if your node types are actually loaded.
On Fri, Feb 5, 2010 at 10:20 PM, Jeremy Norris <[email protected]> wrote: > What is wrong with the following CND definition? I am trying to > enforce that a node of type Foo contains a node of type Bar. > > --- > > <nt = 'http://www.jcp.org/jcr/nt/1.0'> > <mix = 'http://www.jcp.org/jcr/mix/1.0'> > <ns = 'uri:ns/v1'> > > [ns:Bar] > nt:base > mix:created, > mix:lastModified > - ns:attr1 (string) > - ns:attr2 (string) > > [ns:Foo] > nt:base > + ns:bar (ns:Bar) > > --- > > When I try this, I get the following error: > > org.apache.jackrabbit.commons.cnd.ParseException: Unkown property type > 'ns:Bar' specified. > > (on the last line of the definition). I'm using jackrabbit 2.0.0 and > importing definitions with > org.apache.jackrabbit.commons.cnd.CndImporter > > Thanks for your help. >
