Could not Install Package from AEM 5.6.1 to AEM 6.3 | Community
Skip to main content
CT1012
Level 4
July 31, 2017
Solved

Could not Install Package from AEM 5.6.1 to AEM 6.3

  • July 31, 2017
  • 11 replies
  • 2827 views

Q1:    I'm trying to install a "redirect" page component package from AEM 5.6.1 to AEM 6.3 through package manager. Getting an error

"javax.jcr.nodetype.ConstraintViolationException: OakConstraint0021: /apps/******/components/page/redirect/dialog/items/tabs/items/leftNav/items/leftNavURL/items/link/component-a/component-a.jsp/jcr:content[[nt:resource]]: Mandatory property jcr:data not found in a new node"

Q2:  Another non-container component named "component-a" is linked under dialog item "leftNavUrl".under redirect page component. Is it possible to do so in 6.3.

link under leftNavURL which is causing the exception.

<link

                                    jcr:primaryType="cq:Widget"

                                    fieldDescription="Select file from the Content Finder or enter complete URL."

                                    itemId="webURL"

                                    name="./directLink"

                                    xtype="pathfield">

                                    <template-a

                                        cq:isContainer="{Boolean}false"

                                        jcr:description="Component A"

                                        jcr:primaryType="cq:Component"

                                        jcr:title="Component A"

                                        sling:resourceSuperType="foundation/components/page">

                                        <dialog

                                            jcr:primaryType="cq:Dialog"

                                            height="400"

                                            stateful="false"

                                            xtype="dialog">

                                            <items jcr:primaryType="cq:WidgetCollection">

                                                <tabs jcr:primaryType="cq:TabPanel">

                                                    <items jcr:primaryType="cq:WidgetCollection">

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

I removed the error causing node and installed the package and it is installed now properly. I am investigating on what would be the expected node structure for that the one which is causing issue .

CT1012 Can you please paste a screenshot of the node structure for template-a.jsp ​here ?

11 replies

VeenaVikraman
Community Advisor
Community Advisor
August 3, 2017

@CT1012 the template-a and its node sturcture clearly says its a mistake ..  hope you can figure out if something is wrong

thanks

Veena