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

Edgar Poce updated SLING-17:
----------------------------

    Attachment: custom_nodetypes.xml

I tested it in another environment and I get the same error. I attach the 
nodetype registry. The log when I try to create a node called jsp under a 
ScriptedComponent node with the command line interface connected via rmi is the 
following:

[/component] > addnode jsp

an exception occurred

exception: javax.jcr.nodetype.ConstraintViolationException
message: no definition found in parent node's node type for new node: no 
matching child node definition found for {}jsp

display stack trace? [y/n]y
javax.jcr.nodetype.ConstraintViolationException: no definition found in parent 
node's node type for new node: no matching child node definition found for {}jsp
        at 
org.apache.jackrabbit.rmi.server.ServerObject.getRepositoryException(ServerObject.java:102)
        at 
org.apache.jackrabbit.rmi.server.ServerNode.addNode(ServerNode.java:73)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
        at sun.rmi.transport.Transport$1.run(Transport.java:153)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
        at 
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
        at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
        at java.lang.Thread.run(Thread.java:595)
        at 
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
        at 
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
        at org.apache.jackrabbit.rmi.server.ServerNode_Stub.addNode(Unknown 
Source)
        at 
org.apache.jackrabbit.rmi.client.ClientNode.addNode(ClientNode.java:93)
        at org.apache.jackrabbit.command.core.AddNode.execute(AddNode.java:61)
        at 
org.apache.jackrabbit.command.cli.JcrClient.runCommand(JcrClient.java:260)
        at 
org.apache.jackrabbit.command.cli.JcrClient.runInteractive(JcrClient.java:215)
        at org.apache.jackrabbit.command.cli.JcrClient.run(JcrClient.java:123)
        at org.apache.jackrabbit.command.cli.JcrClient.main(JcrClient.java:99)


> 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