Hi,
Yes, it's basically because some codes need to be committed. I have
submitted the patches but some it implies some refactoring on the core I'm
still working on.
If you apply the patches on JIRA (
http://issues.apache.org/jira/browse/JCR-556) it will work fine. However, I
am still changing a few classes (to create a better integration with JR
core). It should be totally over by next week (if everybody is ok with the
refactoring I propose).
Thanks for checking :)
Nicolas
PS the backup you have done is fine: I have only changed a few methods in
the restore but it should be transparent for you.
On 9/8/06, Graeme Wilkinson <[EMAIL PROTECTED]> wrote:
Has anybody managed to get the Repository Backup Tool working? It
compiles and runs fine, backing up my repository to a ZIP file. However,
when I go to restore from the backup I end up with an empty repository.
I have noticed in the backup tool code that there is no save() called at
any point on the session used for the import, I assume this is the
reason why with an empty repository as the changes are not saved to the
persistent storage. If I add a save myself I get the following
exception.
javax.jcr.nodetype.ConstraintViolationException: /jcr:root: mandatory
child node {http://www.jcp.org/jcr/1.0}system does not exist at
org.apache.jackrabbit.core.ItemImpl.validateTransientItems(ItemImpl.java
:556) at
org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1162) at
org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:817)
at
org.apache.jackrabbit.backup.WorkspaceBackup.restore(WorkspaceBackup.jav
a:154) at
org.apache.jackrabbit.backup.AllWorkspacesBackup.restore(AllWorkspacesBa
ckup.java:101) at
org.apache.jackrabbit.backup.BackupManager.restore(BackupManager.java:13
8) at
org.apache.jackrabbit.backup.LaunchBackup.restore(LaunchBackup.java:298)
at org.apache.jackrabbit.backup.LaunchBackup.main(LaunchBackup.java:174)
Exception in thread "main"
Any ideas?
Cheers,
Graeme
--
a+
Nico
my blog! http://www.deviant-abstraction.net !!