That seems to have cleared it up.  Thanks again for figuring out my strange
errors.


On Sat, Aug 21, 2010 at 8:02 AM, Justin Edelson <[email protected]>wrote:

> Not sure, but I notice you don't have the sling namespace defined in this
> file. You should try that, if only because it is a trivial change.
>
> Justin
>
> On Aug 21, 2010, at 1:18 AM, Carl Hall <[email protected]> wrote:
>
> > The content below is from types.cnd from one of our bundles.  I get the
> > exception further below when this file is processed but I fail to find
> the
> > error in our CND.  Just after this exception and after the server has had
> a
> > chance to churn on the CND a bit more I get this message, "21.08.2010
> > 01:09:04.774 *INFO* [SCR Component Actor]
> > org.apache.sling.jcr.base.internal.loader.Loader Retrytring to register
> node
> > types from SLING-INF/nodetypes/types.cnd in bundle
> > org.sakaiproject.nakamura.jcr succeeded."
> >
> > The line in question starts with "- sling:resourceType".  Any
> suggestions?
> >
> >
> > :: types.cnd ::
> > <sakai = 'http://www.sakaiproject.org/nakamura/2.0'>
> > <nt  = 'http://www.jcp.org/jcr/nt/1.0'>
> >
> > // Add a mixin that allows nodes to accept other properties, (eg nt:file)
> > [sakai:propertiesmix] > mix:versionable mixin
> >
> >  - '*' (undefined)
> >    copy
> >    multiple
> >
> >  - '*' (undefined)
> >    copy
> >
> >  + '*' (nt:unstructured)
> >
> > // Node type for the Site objects
> > [sakai:site] > nt:unstructured
> >
> > // Node type for files
> > [sakai:file] > nt:file, sakai:propertiesmix
> >
> > // Node type for pooled content
> > ['sakai:pooled-content'] > nt:file, sakai:propertiesmix
> >  - sling:resourceType (string) = 'sakai/pooled-content' autocreated
> > mandatory
> >  + * (nt:base) = nt:unstructured multiple version
> >
> > :: Exception ::
> > 21.08.2010 00:56:02.261 *WARN* [SCR Component Actor]
> > org.apache.sling.jcr.base.internal.loader.Loader Cannot read node types
> > SLING-INF/nodetypes/types.cnd from bundle org.sakaiproject.nakamura.jcr:
> > java.io.IOException: Unable to parse CND Input: Error setting name of
> > sling:resourceType to sling:resourceType
> > (bundle://23.0:0/SLING-INF/nodetypes/types.cnd, line 24)
> > 21.08.2010 00:56:02.261 *WARN* [SCR Component Actor]
> > org.apache.sling.jcr.base.internal.loader.Loader Stacktrace
> > java.io.IOException: Unable to parse CND Input: Error setting name of
> > sling:resourceType to sling:resourceType
> > (bundle://23.0:0/SLING-INF/nodetypes/types.cnd, line 24)
> >        at
> >
> org.apache.sling.jcr.base.NodeTypeLoader.registerNodeType(NodeTypeLoader.java:132)
> >        at
> >
> org.apache.sling.jcr.base.internal.loader.Loader.registerNodeTypes(Loader.java:218)
> >        at
> >
> org.apache.sling.jcr.base.internal.loader.Loader.registerBundleInternal(Loader.java:159)
> >        at
> >
> org.apache.sling.jcr.base.internal.loader.Loader.registerBundle(Loader.java:89)
> >        at
> > org.apache.sling.jcr.base.internal.loader.Loader.<init>(Loader.java:73)
> >        at
> >
> org.apache.sling.jcr.base.AbstractSlingRepository.setupRepository(AbstractSlingRepository.java:445)
> >        at
> >
> org.apache.sling.jcr.base.AbstractSlingRepository.startRepository(AbstractSlingRepository.java:843)
> >        at
> >
> org.apache.sling.jcr.base.AbstractSlingRepository.activate(AbstractSlingRepository.java:640)
>

Reply via email to