When I am trying to set a property to my JCR node I am getting error
javax.jcr.nodetype.ConstraintViolationException: No matching property definition: PROPERTY.
I am a newbie to cq5. Please can someone help me to resolve this error?
In jcr every node has a node-type (value of "jcr:primaryType").
Most node-types define a schema of properties that are allowed on that node. You cannot just add whatever property you like. It has to be defined in the schema. If you try to add and persist (commit) a property that is not defined, you get exactly this ConstraintViolationException
.
So here's what likely happend: You've tried to create and store a property named "PROPERTY" on a node that has a strict schema, where that is not allowed.
If you provide more details what you tried to do exactly on what type of node, I may be able to pinpoint the problem.