Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.
Level 1
Level 2
Melden Sie sich an, um alle Badges zu sehen
Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.
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.
Status | 500 |
Message | javax.jcr.nodetype.ConstraintViolationException: No default node type available for /etc/designs/elibrary/jcr:content/techcenter_page/par |
Location | ![]() ![]() |
Parent Location | /etc/designs/elibrary/_jcr_content/techcenter_page |
Path | /etc/designs/elibrary/jcr:content/techcenter_page/par |
Referer | http://localhost:4502/content/elibrary123.html |
ChangeLog | <pre></pre> |
Gelöst! Gehe zu Lösung.
Zugriffe
Antworten
Likes gesamt
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..
Zugriffe
Antworten
Likes gesamt
Are you using an AEM out of the box component - or are you trying to drop a custom component.
Zugriffe
Antworten
Likes gesamt
can you give us your etc/design and apps structure
Any screenshot of an error would help us !
Zugriffe
Antworten
Likes gesamt
Please see attached /apps and /etc structures.
Zugriffe
Antworten
Likes gesamt
I am trying to drop my custom components.
Zugriffe
Antworten
Likes gesamt
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..
Zugriffe
Antworten
Likes gesamt
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
Zugriffe
Antworten
Likes gesamt
Hey, in your post etc, jcr:content is sling:folder,
Please change to nt:unstructured. and try it.
Zugriffe
Antworten
Likes gesamt
Thanks.. can you post the error screenshot ?
Zugriffe
Antworten
Likes gesamt
+ Error Screen Shot
Zugriffe
Antworten
Likes gesamt
Thanks Narayan.
How these types are controlled and created??
Can you please hep me understand it.
Zugriffe
Antworten
Likes gesamt
yes,I have set design path on templat's jcr:content node
Zugriffe
Antworten
Likes gesamt
Zugriffe
Likes
Antworten
Zugriffe
Likes
Antworten