Description of problem: When importing a repository the server throws an error ("Unable to import into the repository. Consult the server logs for error messages.") if the repository contains an asset in both the Global Area and some package. Server needs to be restarted after that. Steps to Reproduce: (Using the sample repository) 1. Open some asset - e.g. Bankruptcy history. 2. Promote the asset to Global Area. 3. Import the asset back to the package. 4. In section Administration, export the whole repository. 5. Try importing that same repository back (the xml file), confirm. Actual results: An error message shows: "Unable to import into the repository. Consult the server logs for error messages." Server log contains: ERROR [RepositoryServiceServlet] Service method 'public abstract java.util.List org.drools.guvnor.client.rpc.RepositoryService.subscribe()' threw an unexpected exception: org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.drools.guvnor.client.rpc.RepositoryService Expected results: Repository should have been imported. Additional info: Everything okay when the asset is just in Global Area and not shared/imported.
Zuzka, would you please attach an example of such a repository?
Created attachment 519428 [details] sample repository with a shared asset (model)
This is a known issue: https://issues.jboss.org/browse/GUVNOR-475
This is a JackRabbit bug. The bug (https://issues.apache.org/jira/browse/JCR-2400) was reported to JR a long time ago, though we havent got the fix yet. Using ModeShape should work.
Fixed
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: When a jackrabbit repository with a shared asset was imported an exception was thrown. This issue has been resolved and the behavior no longer occurs.
Technical note updated. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. Diffed Contents: @@ -1 +1 @@ -When a jackrabbit repository with a shared asset was imported an exception was thrown. This issue has been resolved and the behavior no longer occurs.+When a jackrabbit repository with an asset shared between a package and the global area was imported an exception was thrown preventing the operation from completing.
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.