自定义节点类型错误:javax.jcr.ItemExistsException:jcr:propertyDefinition

时间:2019-01-07 21:00:15

标签: aem cq5 jcr

我正在尝试使用CND文件注册自定义节点类型,如下所示-

ymin

但是我收到此错误:enter image description here

当我仅使用一个属性(例如title或description或sling:resourceType)时,它将起作用。我在这里想念什么?

1 个答案:

答案 0 :(得分:0)

您可以尝试以下配置吗?

删除orderable

<'sling'='http://sling.apache.org/jcr/sling/1.0'>
<'nt'='http://www.jcp.org/jcr/nt/1.0'>
<ns='http://custom.namespace.com/ns'>

[ns:CustomType] > nt:base
   - title (String)
   - description (String)
   - sling:resourceType (String) = 'myproject/components/test'

或从nt:unstructered扩展:

<'sling'='http://sling.apache.org/jcr/sling/1.0'>
<'nt'='http://www.jcp.org/jcr/nt/1.0'>
<ns='http://custom.namespace.com/ns'>

[ns:CustomType] > nt:unstructered
   orderable
   - title (String)
   - description (String)
   - sling:resourceType (String) = 'myproject/components/test'