jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting" <jukka.zitt...@gmail.com>
Subject Re: question about exporting and importing via JCR api
Date Mon, 04 Aug 2008 08:05:45 GMT

On Fri, Aug 1, 2008 at 12:43 AM, Betty Chang <bchang@edgenuity.com> wrote:
> Am I supposed to be able to export and import my complete repository using JCR calls?
> I used Session.exportSystemView() to save everything to a file,
> but when I use Workspace.importXML(),  I get a ConstraintViolationException about
>  "/jcr:root/jcr:system: mandatory child node (http://www.jcp.org/jcr/1.0) versionStorage
does not exist"

You can't import the jcr:system subtree, so you'll need to ignore it
when exporting content from your workspace. The best practice is to
put all your content within an application root node like /my:content.


Jukka Zitting

View raw message