Brian Thompson wrote:

How are you creating the repository in the first place?  Have you
specifically made arrangements to shut down the repository before exiting
the JVM?

it's basically the first hops example

http://jackrabbit.apache.org/doc/firststeps.html

Repository repository = *new* TransientRepository();
Session session = repository.login();

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

In my application, I configured Spring to set up and tear down the
repository for me, so I didn't need to worry about it.

Could send me a pointer to this "code".

Thanks

Michael

-Brian



On Dec 4, 2007 4:25 PM, Michael Wechner <[EMAIL PROTECTED]> wrote:

Hi

I am using Jackrabbit 1.3.3 on Linux with Sun Java 1.4 and everything
seems to be fine except the minor thing that when shutting down the
repository resp. closing the session and exiting the JVM the .lock file
is not being removed.

It doesn't really seem to matter, because when restarting it tells me a
warning

WARN  org.apache.jackrabbit.core.util.RepositoryLock.acquire():111  -
Existing lock file /home/michi/jackrabbit/.lock detected. Repository was
not shut down properly.

but otherwise it's restarting fine.

Is that normal behaviour or beside closing the session is there anything
one needs to call to remove the .lock file during shutdown?

There is an e-mail thread about some similar problem


http://mail-archives.apache.org/mod_mbox/jackrabbit-users/200701.mbox/[EMAIL 
PROTECTED]

but it's not really clear to me what the "solution" is.

Thanks

Michael

--
Michael Wechner
Wyona      -   Open Source Content Management   -    Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
[EMAIL PROTECTED]                        [EMAIL PROTECTED]
+41 44 272 91 61





--
Michael Wechner
Wyona      -   Open Source Content Management   -    Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
[EMAIL PROTECTED]                        [EMAIL PROTECTED]
+41 44 272 91 61

Reply via email to