Expand my Community achievements bar.

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

Avatar

Level 5

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,

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

2 Replies

Avatar

Community Advisor

Hi, 

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


Hope this helps



Esteban Bustamante

Avatar

Employee

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