Hello,
I export my repository using exportDocument view and path is
/photo/upload/test/ (plus the binary and contain versions) and it work fine.
Now when i importXML
session.importXML("/", file,
ImportUUIDBehavior.IMPORT_UUID_COLLISION_REMOVE_EXISTING);
i got this error:
javax.jcr.nodetype.ConstraintViolationException: no matching property
definition found for {http://www.jcp.org/jcr/1.0}baseVersion
...how can i solve this?
thanks a lot.
cheers.
Jukka Zitting wrote:
>
> Hi,
>
> On Tue, May 27, 2008 at 5:15 PM, Frederic BOY <[email protected]>
> wrote:
>> session.exportSystemView("/Video", videoOut, true, false);
>> [...]
>> session.importXML("/Video", videoIn,
>> ImportUUIDBehavior.IMPORT_UUID_COLLISION_REPLACE_EXISTING);
>> [...]
>> ConstraintViolationException: no matching child node definition found for
>> child node {}Video.
>
> You're trying to import the "Video" subtree under an existing "Video"
> node. Try:
>
> session.importXML("/", videoIn,
> ImportUUIDBehavior.IMPORT_UUID_COLLISION_REPLACE_EXISTING);
>
> Also, you might want to consider adding a "/content" top-level node
> under which you'd place your "Video", "Audio", and "Template" subtrees
> (and any other content you may have). This way you could backup your
> entire content in a single operation.
>
> BR,
>
> Jukka Zitting
>
>
--
View this message in context:
http://www.nabble.com/importXML%28%29-fails-with-a-ConstraintViolationException-tp17491487p25675120.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.