I am trying to upgrade to Jackrabbit 1.3.1 (using Magnolia 3.0.5) and I during the bootstrap process I keep getting this error:

javax.jcr.RepositoryException: The repository home /Volumes/Home/Web/ tomcat/webapps/ROOT/repositories/magnolia appears to be already locked by the current process.

The readme seemed a bit vague (to me, a newbie) so maybe I got some instructions wrong. Here is my version of the readme:


To use jackrabbit 1.3.1 you have to follow these steps:

1) Change the configuration to use

Edit:

magnoliaAuthor/WEB-INF/config/default/magnolia.properties
magnoliaPublic/WEB-INF/config/default/magnolia.properties

Change:

magnolia.repositories.jackrabbit.config=WEB-INF/config/repo-conf/ jackrabbit-derby-search.xml

To:

magnolia.repositories.jackrabbit.config=WEB-INF/config/repo-conf- jackrabbit-1.3/jackrabbit-derby-search.xml

2) Download the Jackrabbit jars.  Pick a mirror at:

http://www.apache.org/mirrors/

In this case, I picked apache.cs.utah.edu. Here are the links to the files:

http://apache.cs.utah.edu/jackrabbit/binaries/jackrabbit-api-1.3.1.jar
http://apache.cs.utah.edu/jackrabbit/binaries/jackrabbit-core-1.3.1.jar
http://apache.cs.utah.edu/jackrabbit/binaries/jackrabbit-jcr- commons-1.3.1.jar http://apache.cs.utah.edu/jackrabbit/binaries/jackrabbit-text- extractors-1.3.1.jar

3) Download Derby

Get it from here:
http://www.ibiblio.org/maven/org.apache.derby/jars/derby-10.2.2.0.jar

Or:
http://apache.cs.utah.edu/db/derby/db-derby-10.2.2.0/db- derby-10.2.2.0-lib.tar.gz

Find db-derby-10.2.2.0-lib/lib/derby.jar and rename it to derby-10.2.2.0.jar

4) Download Lucene

http://apache.cs.utah.edu/lucene/java/archive/lucene-2.0.0.tar.gz

5) Delete old jars

Navigate to:

magnoliaAuthor/WEB-INF/lib/
magnoliaPublic/WEB-INF/lib/

Delete:

derby-10.1.3.1.jar
lucene-1.4.3.jar
jackrabbit-core-1.0.1.jar
jackrabbit-index-filters-1.0.1.jar (jackrabbit-index-filters-1.0.1- patch-574.jar)

6) Add new jars

derby-10.2.2.0.jar
lucene-core-2.0.0.jar
jackrabbit-api-1.3.1.jar
jackrabbit-core-1.3.1.jar
jackrabbit-jcr-commons-1.3.1.jar
jackrabbit-text-extractors-1.3.1.jar

Variation: If you prefere to build freshly you can replace the pom.xml with the pom.jackrabbit.1.3.1.xml in the root directory and in the magnolia directory of the checked out sources

7) bootstrap freshly
- by default magnoila 3.0 is delivered with jackrabbit version 1.0.1 so you have to delete the repository directories:

magnoliaAuthor/repositories
magnoliaPublic/repositories

- a startup should trigger a fresh bootstrap of the system now



----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------

Reply via email to