[ERROR] ValidationViolation: "jackrabbit-nodetypes while deploying oak:index | Community
Skip to main content
October 17, 2024
Question

[ERROR] ValidationViolation: "jackrabbit-nodetypes while deploying oak:index

  • October 17, 2024
  • 2 replies
  • 556 views

Hi,

 

I am deploying the oak:index on AEM 6.5.13 and getting an error below

[ERROR] ValidationViolation: "jackrabbit-nodetypes: Node '{http://jackrabbit.apache.org/oak/ns/1.0}index [nt:unstructured (rep:AccessControllable)]' is not allowed as child of not contained node with potential default types '[nt:folder]': Could not find matching child node definition in parent's node type", filePath=jcr_root\_oak_index\.content.xml, nodePath=/oak:index, line=4, column=39

I have type defined . .content.xml for _oak_index is as follows.

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:oak="http://jackrabbit.apache.org/oak/ns/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:rep="internal"
jcr:mixinTypes="[rep:AccessControllable]"
jcr:primaryType="nt:unstructured">
<my-custom-index>
....
</my-custom-index>
</jcr:root>

And added below snippet in my filter.xml of ui.apps

<filter root="/oak:index/my-custom-index" />

oak:index is root level node hence not sure from where default type is getting pick.

 

Thanks,

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

EstebanBustamante
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
October 18, 2024

Hi, 

Please check this documentation: https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/operations/indexing#deploying-custom-index-definitions Especially the "Project Configuration" section. You are missing some configurations in the pom.


Hope this helps

Esteban Bustamante
Adobe Employee
December 19, 2024

Is this issue been resolved for you? if yes how you have achieved it. Any proper examples?