2 Replies Latest reply on Mar 13, 2013 7:02 PM by Sham HC

    Why I always get ConstraintViolationException when adding sub node?

    acrofat Level 1

      I was trying to create a child node for a given node, either with JcrUtil or Node's addNode api directly. The parent node type is nt:file, and the child node type I want to add is nt:unstructured. But I always get ConstraintViolationException, saying that:


      "No child node definition for childNode found in node /parent"


      Any idea?