jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lóránd Somogyi" <lorand.somo...@gmail.com>
Subject what is wrong with this CND
Date Fri, 25 May 2007 16:32:21 GMT
Hi,

I have the following CND file:

----------------- cut -----------------
/* orig.namespaces */
<mix = 'http://www.jcp.org/jcr/mix/1.0'>
<nt = 'http://www.jcp.org/jcr/nt/1.0'>

/* Project-specific stuff */
<zecms = 'http://www.example.com/zecms/1.0'>

[zecms:FragmentType] > nt:hierarchyNode, mix:referenceable
        orderable mixin
    -zecms:user (string) VERSION MANDATORY
    -zecms:ts (date) VERSION MANDATORY
    -zecms:rights (string)
        = 'guest:r', admin:rw'
        VERSION MULTIPLE
    +zecms:data (nt:unstructured) VERSION
----------------- cut -----------------

When I try to parse it, with:

----------------- cut -----------------
cndReader = new CompactNodeTypeDefReader(reader , "");
----------------- cut -----------------

I got the next Exception:
----------------- cut -----------------
org.apache.jackrabbit.core.nodetype.compact.ParseException: Missing '['
delimiter for beginning of node type name (line 10)
    at org.apache.jackrabbit.core.nodetype.compact.Lexer.fail(Lexer.java
:148)
    at
org.apache.jackrabbit.core.nodetype.compact.CompactNodeTypeDefReader.doNodeTypeName
(CompactNodeTypeDefReader.java:252)
    at
org.apache.jackrabbit.core.nodetype.compact.CompactNodeTypeDefReader.parse(
CompactNodeTypeDefReader.java:205)
    at org.apache.jackrabbit.core.nodetype.compact.CompactNodeTypeDefReader
.<init>(CompactNodeTypeDefReader.java:168)
    at org.apache.jackrabbit.core.nodetype.compact.CompactNodeTypeDefReader
.<init>(CompactNodeTypeDefReader.java:153)
----------------- cut -----------------

And just can't figure out what's wrong... :-(

I'm using jackrabbit 1.3 from Maven repository.

Thx,
L.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message