Ошибка типа пользовательского узла: javax.jcr.ItemExistsException: jcr: propertyDefinition - PullRequest
0 голосов
/ 08 января 2019

Я пытаюсь зарегистрировать пользовательский тип узла, используя файл CND следующим образом -

  <ns='http://custom.namespace.com/ns'>

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

Но я получаю эту ошибку: enter image description here

Когда я использую только одно свойство, например, title или description или sling: resourceType, тогда оно работает. Что мне здесь не хватает?

1 Ответ

0 голосов
/ 11 января 2019

Не могли бы вы попробовать следующую конфигурацию:

Удалить 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'
...