Archiva fails to start : "Caused by: Error indexing workspace "


The Archiva artifact repository fails to start, and displays exceptions.






It is not possible to start the Archiva Artifact repository as a standalone or as a service, and you are getting the following exception in Talend ESB while executing:

./ console
jvm 1    | 2014-07-02 09:48:01.341:WARN::Failed startup of context o.e.j.w.WebAppContext{/archiva,file:/opt/Talend-5.3.1/tac/Talend-Artifact-Repository-V5.3.1/apps/archiva/},file:/opt/Talend-5.3.1/tac/Talend-Artifact-Repository-V5.3.1/apps/archiva/
jvm 1    | org.springframework
... ... .. ..

Caused by: 
jvm 1    | javax.jcr.RepositoryException: Unable to initialize query handler: org.apache.jackrabbit.core.query.lucene.SearchIndex@6b127fc2
jvm 1    |     at org.apache.jackrabbit.core.config.RepositoryConfigurationParser$1.getQueryHandler(
jvm 1    |     at org.apache.jackrabbit.core.config.WorkspaceConfig.getQueryHandler(
.. .. ....

jvm 1    |     at
jvm 1    | Caused by: 
jvm 1    | Error indexing workspace



It is possible that the Archiva installation is corrupted and needs to be reinstalled. As per the log, the reindexing is not working correctly. Talend recommends the following steps to solve this issue.

  1. First, back up the complete Archiva installation folder. Verify the archiva.xml file and locate the repository's location. Back up the Repository folder.
  2. Verify whether there are any additional configurations done in Archiva, for example additional users/credentials. If required, you may need to back up the embedded derby database which stores user data.
  3. Reinstall Archiva (unzip the installation) and copy the back up Repository folder to the installation root directory (or edit the archiva.xml to point to the correct Repository folder).
  4. Restart Archiva. This will automatically reindex the Repository.
Version history
Revision #:
4 of 4
Last update:
‎09-28-2018 11:58 PM
Updated by:
Labels (2)