Getting 500 Error When adding components to page in design mode | Community
Skip to main content
GK-007
New Participant
October 16, 2015
Solved

Getting 500 Error When adding components to page in design mode

  • October 16, 2015
  • 11 replies
  • 2477 views

Hi All,

When i add required components for my page i am getting 500 exception.

This error i am seeing when i try to modify both page and content components.

Error while processing /etc/designs/elibrary/jcr:content/techcenter_page/par

                             
Status
500
Message
javax.jcr.nodetype.ConstraintViolationException: No default node type available for /etc/designs/elibrary/jcr:content/techcenter_page/par
Locationinvalid link: /etc/designs/elibrary/_jcr_content/techcenter_page/par/etc/designs/elibrary/_jcr_content/techcenter_page/par
Parent Location/etc/designs/elibrary/_jcr_content/techcenter_page
Path
/etc/designs/elibrary/jcr:content/techcenter_page/par
Refererhttp://localhost:4502/content/elibrary123.html
ChangeLog
<pre></pre>
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 narayanank84409

Structure should be like this

<?xml version="1.0" encoding="UTF-8"?>

<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/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"

    jcr:primaryType="cq:Page">

    <clientlibs/>

    <favicon.ico/>

    <jcr:content

        cq:lastModified="{Date}2015-07-29T10:07:48.893-04:00"

        cq:lastModifiedBy="admin"

        jcr:primaryType="nt:unstructured"

        jcr:title="Design"

        sling:resourceType="wcm/core/components/designer">

        <Templatename jcr:primaryType="nt:unstructured">

            <parsysname

                jcr:lastModified="{Date}2015-07-29T10:07:48.893-04:00"

                jcr:lastModifiedBy="admin"

                jcr:primaryType="nt:unstructured"

                sling:resourceType="foundation/components/parsys"

                components="[group/components]"/>

        </templatename>

    </jcr:content>

</jcr:root>

 

 

This is working example..

11 replies

smacdonald2008
New Participant
October 16, 2015

Are you using an AEM out of the box component - or are you trying to drop a custom component. 

Lokesh_Shivalingaiah
New Participant
October 16, 2015

can you give us your etc/design and apps structure

Any screenshot of an error would help us !

GK-007
GK-007Author
New Participant
October 16, 2015

Please see attached /apps and /etc structures.

GK-007
GK-007Author
New Participant
October 16, 2015

I am trying to drop my custom components.

narayanank84409
narayanank84409Accepted solution
New Participant
October 16, 2015

Structure should be like this

<?xml version="1.0" encoding="UTF-8"?>

<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/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"

    jcr:primaryType="cq:Page">

    <clientlibs/>

    <favicon.ico/>

    <jcr:content

        cq:lastModified="{Date}2015-07-29T10:07:48.893-04:00"

        cq:lastModifiedBy="admin"

        jcr:primaryType="nt:unstructured"

        jcr:title="Design"

        sling:resourceType="wcm/core/components/designer">

        <Templatename jcr:primaryType="nt:unstructured">

            <parsysname

                jcr:lastModified="{Date}2015-07-29T10:07:48.893-04:00"

                jcr:lastModifiedBy="admin"

                jcr:primaryType="nt:unstructured"

                sling:resourceType="foundation/components/parsys"

                components="[group/components]"/>

        </templatename>

    </jcr:content>

</jcr:root>

 

 

This is working example..

narayanank84409
New Participant
October 16, 2015

do you have design path for your configuration?

/etc/designs/elibrary/jcr:content/techcenter_page/par?

in general it will check default.

/etc/designs/default/jcr:content

narayanank84409
New Participant
October 16, 2015

Hey, in your post etc, jcr:content is sling:folder, 

Please change to nt:unstructured. and try it.

Lokesh_Shivalingaiah
New Participant
October 16, 2015

Thanks.. can you post the error screenshot ?

GK-007
GK-007Author
New Participant
October 16, 2015

+ Error Screen Shot

GK-007
GK-007Author
New Participant
October 16, 2015

Thanks Narayan.

How these types are controlled and created??

Can you please hep me understand it.