Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 39328 invoked from network); 29 Dec 2009 15:12:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Dec 2009 15:12:26 -0000 Received: (qmail 99477 invoked by uid 500); 29 Dec 2009 15:12:25 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 99438 invoked by uid 500); 29 Dec 2009 15:12:25 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 99427 invoked by uid 99); 29 Dec 2009 15:12:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Dec 2009 15:12:25 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of prvs=061491b0db=daryl.jensen@hansoninc.com designates 65.170.164.43 as permitted sender) Received: from [65.170.164.43] (HELO MX.HANSONINC.COM) (65.170.164.43) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Dec 2009 15:12:14 +0000 Received: from hansonxc2.hansoninc.local ([10.199.50.42]:55475 helo=hansonxc2.hansoninc.com) by MX.HANSONINC.COM with esmtps (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1NPdjj-0007Yb-1i for users@jackrabbit.apache.org; Tue, 29 Dec 2009 10:11:51 -0500 Received: from hansonxc2.HansonInc.local ([10.199.50.42]) by hansonxc2 ([10.199.50.42]) with mapi; Tue, 29 Dec 2009 10:12:09 -0500 From: Daryl Jensen To: "users@jackrabbit.apache.org" Date: Tue, 29 Dec 2009 10:12:08 -0500 Subject: RE: Migrating old jackrabbit from websphere to tomcat - I/O error while reading locks Thread-Topic: Migrating old jackrabbit from websphere to tomcat - I/O error while reading locks Thread-Index: AcqD7ugNr1fImPHZRSWw9lp772OoFQEqj8RQ Message-ID: <6049759987040840BA56C8AEDA80829B11BB3EAE@hansonxc2> References: <6049759987040840BA56C8AEDA80829B11BB3A2D@hansonxc2> In-Reply-To: <6049759987040840BA56C8AEDA80829B11BB3A2D@hansonxc2> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Btw, my problem really was a bug in the Microsoft sql driver. Using jtds an= d it works fine now. -----Original Message----- From: Daryl Jensen [mailto:Daryl.Jensen@hansoninc.com]=20 Sent: Wednesday, December 23, 2009 11:42 AM To: users@jackrabbit.apache.org Subject: Migrating old jackrabbit from websphere to tomcat - I/O error whil= e reading locks Just as the subject says. I compared my code to the reference code in the n= ew 1.6 war from the downloads page. As far as I can tell it is the same. I = have the following: RepositoryConfig config =3D RepositoryConfig.create(new InputSo= urce(in), repositoryHome.getAbsolutePath()); repository =3D RepositoryImpl.create(config); repository.login(new SimpleCredentials("username", "password".t= oCharArray())); I searched for my error in the archives but didn't seem to find much. I get= the same thing using the 1.3 jars or the 1.6 jars from the new webapp libs= . It creates a lock file every time, even if I delete the old lock file and= restart Tomcat. I was hoping someone might have some tips I can use for mi= grating this application to Tomcat. javax.jcr.RepositoryException: I/O error while reading locks from '/locks':= error while reading locks file: error while reading locks file at org.apache.jackrabbit.core.lock.LockManagerImpl.(L= ockManagerImpl.java:177) at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.= getLockManager(RepositoryImpl.java:1819) at org.apache.jackrabbit.core.RepositoryImpl.getLockManager= (RepositoryImpl.java:907) at org.apache.jackrabbit.core.WorkspaceImpl.getInternalLock= Manager(WorkspaceImpl.java:545) at org.apache.jackrabbit.core.XASessionImpl.getLockManager(= XASessionImpl.java:183) at org.apache.jackrabbit.core.XASessionImpl.init(XASessionI= mpl.java:134) at org.apache.jackrabbit.core.XASessionImpl.(XASessio= nImpl.java:107) at org.apache.jackrabbit.core.RepositoryImpl.createSessionI= nstance(RepositoryImpl.java:1517) at org.apache.jackrabbit.core.RepositoryImpl.createSession(= RepositoryImpl.java:964) at org.apache.jackrabbit.core.RepositoryImpl.login(Reposito= ryImpl.java:1395) at org.apache.jackrabbit.commons.AbstractRepository.login(A= bstractRepository.java:53) http://www.mail-archive.com/search?l=3Dusers%40jackrabbit.apache.org&q=3DI%= 2FO+error+while+reading+locks Thanks, Daryl