Resolving Jackrabbit specific database lock errors

Below are a couple brute force methods to remove the lock files, but it is best to end your sessions cleanly.

try { ... } finally { session.logout(); }

See, http://jackrabbit.apache.org/first-hops.html »

How to resolve

Unable to initialize repository: Cannot instantiate persistence manager org.apache.jackrabbit.core.state.db.DerbyPersistenceManager: Failed to create database '/[...]/repositories/website/version/db', see the next exception for details.

Basically, you'll want to shutdown Eclipse (or whatever) and remove eclipse/repository/version/db/db.lck and then restart your IDE.

How to resolve The repository home appears to be in use since the file named .lock is already locked by the current process.

You'll also want to shutdown Eclipse (or whatever) and remove eclipse/repository/.lock and restart your IDE.

Page Comments (Click to edit)






[Click to add or edit comments])

Please prepend comments below including a date

Design by N.Design Studio, adapted by solidGone.org (version 1.0.0)
Have a nice day.