[ 
https://issues.apache.org/jira/browse/SLING-17?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529682
 ] 

Edgar Poce commented on SLING-17:
---------------------------------

I think I found the problem. I was trying to create a node called "jsp" without 
specifying its nodetype, but the default child node for a ScriptedComponent is 
sling:ScriptList. In order to create a node called "jsp" under an 
ScriptedComponent the method addNode("jsp", "nt:folder") must be used. It fails 
when addNode("jsp") is used.

> unable to create node to match default script path
> --------------------------------------------------
>
>                 Key: SLING-17
>                 URL: https://issues.apache.org/jira/browse/SLING-17
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting
>            Reporter: Edgar Poce
>            Assignee: Felix Meschberger
>            Priority: Minor
>         Attachments: custom_nodetypes.xml
>
>
> the definition bellow doesn't allow to create the node required by the 
> default script (jsp/start.jsp), the node called jsp can't be created under a 
> ScriptedComponent node.
> [sling:ScriptedComponent] > sling:Component
>   - sling:baseComponent (String)
>       copy
>       
>   + sling:scripts (sling:ScriptList)
>     = sling:ScriptList
>     copy

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to