On Fri, May 20, 2011 at 9:38 AM, David Buchmann <david.buchm...@liip.ch> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > hi, > > i try to import a dump of a repository for functional testing. > the tests about versioning need specific older revisions of the node and > it seems the version tree is in /jcr:system > > i dump the data with Session.exportSystemView and then try to reimport with > session.importXml("/", stream, > ImportUUIDBehavior.IMPORT_UUID_COLLISION_REPLACE_EXISTING); > > but on session.save i get the exception > javax.jcr.nodetype.ConstraintViolationException: /jcr:root/jcr:system: > mandatory child node {http://www.jcp.org/jcr/1.0}versionStorage does not > exist > > when i look in my xml at the sv:name, i see the nodes jcr:root > > jcr:system > jcr:versionStorage > > what am i doing wrong? do i need to specify a different path to have the > jcr:system overwritten?
you can't import jcr:system content using the JCR api. the /jcr:system subtree can be compared with the system tables in a rdbms. it contains in-content representations of repository meta-data etc. cheers stefan > > i attached the zipped repository dump i try to export. > > cheers, > david > - -- > Liip AG // Agile Web Development // T +41 26 422 25 11 > CH-1700 Fribourg // PGP 0xA581808B // www.liip.ch > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAk3WGl4ACgkQqBnXnqWBgIv/+QCfY7VOEHt4K6LOeD4mI2tN5Vvi > wmUAn2ZeYgtkn7HOTrCl7hNckunbyATE > =itjH > -----END PGP SIGNATURE----- >