You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Jou Kou-Rong <Ko...@irs.gov> on 2009/02/25 23:25:29 UTC

Questions About org.apache.jackrabbit.tools.importexport.JcrImportExportTool

Hi,
 
I have compiled
org.apache.jackrabbit.tools.importexport.JcrImportExportTool using JDK
1.6 and the jar files from the lib directory of JCRBackUpTool
(jcr-backup-0.3a) and concurret.jar file from apache. (Is  JDK 1.5 also
work?)
 
I was be able to create and exporting file using below java argements:
-c D:\jcrbackupresource\repository.xml -d D:\temp\jackrabbit -nt -ns -e
D:\jcrbackuptarget\target2
(Note: D:\jcrbackupresource\repository.xml is identical to the matching
file within jackrabbit-jca-1.5.0.rar )
 
But when I try to import the target2 back using below java argements:
-c D:\jcrbackupresource\repository.xml -d D:\temp\jackrabbit -nt -ns -i
D:\jcrbackuptarget\target2
 
I got error messages below:
16:46:46: 13700 [main] ERROR importexport.JcrImportExportTool - import
failed: rollback 

java.io.IOException: could not register namespace mapping fn_old ->
http://www.w3.org/2004/10/xpath-functions

at
org.apache.jackrabbit.tools.importexport.JcrImportExportTool.registerNam
espaces(JcrImportExportTool.java:259)

at
org.apache.jackrabbit.tools.importexport.JcrImportExportTool.doImport(Jc
rImportExportTool.java:148)

at
org.apache.jackrabbit.tools.importexport.JcrImportExportTool.main(JcrImp
ortExportTool.java:562)

How to resoleve it?

Or is any free tool will be able to export or import a repository that
consists customary node type similar to nt:folder and nt:file, etc?

Your help is highly appreciated.

Sincerely Yours,
Chuck

 

 

 


RE: Questions About org.apache.jackrabbit.tools.importexport.JcrImportExportTool

Posted by Jou Kou-Rong <Ko...@irs.gov>.
Hi,

The runtime error in my previous email may related to the name spaces
and customary node types handling within this utility. 

As a user, my question actually is:
What is the practice for BackUp jackrabbit repository? 
What is the name of tools and corresponding usage for each tool?

Your help is highly appreciated.

Sincerely Yours,
Chuck
 

-----Original Message-----
From: Jou Kou-Rong [mailto:Kou-Rong.Jou@irs.gov] 
Sent: Wednesday, February 25, 2009 5:25 PM
To: users@jackrabbit.apache.org
Subject: Questions About
org.apache.jackrabbit.tools.importexport.JcrImportExportTool

Hi,
 
I have compiled
org.apache.jackrabbit.tools.importexport.JcrImportExportTool using JDK
1.6 and the jar files from the lib directory of JCRBackUpTool
(jcr-backup-0.3a) and concurret.jar file from apache. (Is  JDK 1.5 also
work?)
 
I was be able to create and exporting file using below java argements:
-c D:\jcrbackupresource\repository.xml -d D:\temp\jackrabbit -nt -ns -e
D:\jcrbackuptarget\target2
(Note: D:\jcrbackupresource\repository.xml is identical to the matching
file within jackrabbit-jca-1.5.0.rar )
 
But when I try to import the target2 back using below java argements:
-c D:\jcrbackupresource\repository.xml -d D:\temp\jackrabbit -nt -ns -i
D:\jcrbackuptarget\target2
 
I got error messages below:
16:46:46: 13700 [main] ERROR importexport.JcrImportExportTool - import
failed: rollback 

java.io.IOException: could not register namespace mapping fn_old ->
http://www.w3.org/2004/10/xpath-functions

at
org.apache.jackrabbit.tools.importexport.JcrImportExportTool.registerNam
espaces(JcrImportExportTool.java:259)

at
org.apache.jackrabbit.tools.importexport.JcrImportExportTool.doImport(Jc
rImportExportTool.java:148)

at
org.apache.jackrabbit.tools.importexport.JcrImportExportTool.main(JcrImp
ortExportTool.java:562)

How to resoleve it?

Or is any free tool will be able to export or import a repository that
consists customary node type similar to nt:folder and nt:file, etc?

Your help is highly appreciated.

Sincerely Yours,
Chuck