Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-688

Failure importing System View document exported from another repository

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 1.1.0.Final
    • 1.0.0.Beta1
    • JCR
    • None
    • Hide

      Export the content of each of the root's children, and then import each one into ModeShape. Yes, this requires a separate System View document for each child, but it keeps the root node (and the "/jcr:system" branch) out of the System View document.

      Show
      Export the content of each of the root's children, and then import each one into ModeShape. Yes, this requires a separate System View document for each child, but it keeps the root node (and the "/jcr:system" branch) out of the System View document.

      When I try to import whole content of the workspace (e.g. exported from some other repository) using JCR import method, I get following exception:

      javax.jcr.RepositoryException: Unable to create child "/

      {http://www.jcp.org/jcr/1.0}

      root[2]" in workspace "workspace1" because the node type "

      {internal}root" does not exist: Unable to create child "/{http://www.jcp.org/jcr/1.0}root[2]" in workspace "workspace1" because the node type "{internal}

      root" does not exist

      I'll attach my code and imported xml file.

        1. ModeshapeTest.java
          3 kB
          Jozef Chocholáček
        2. website.xml
          2 kB
          Jozef Chocholáček

              rhauch Randall Hauch (Inactive)
              jchocholacek Jozef Chocholáček (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: