Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 89553 invoked from network); 12 Aug 2010 17:02:52 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Aug 2010 17:02:52 -0000 Received: (qmail 66353 invoked by uid 500); 12 Aug 2010 17:02:51 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 66278 invoked by uid 500); 12 Aug 2010 17:02:51 -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 66266 invoked by uid 99); 12 Aug 2010 17:02:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Aug 2010 17:02:50 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_FRT_FOLLOW1,T_FRT_FOLLOW2,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of norman.maurer@googlemail.com designates 209.85.161.170 as permitted sender) Received: from [209.85.161.170] (HELO mail-gx0-f170.google.com) (209.85.161.170) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Aug 2010 17:02:44 +0000 Received: by gxk25 with SMTP id 25so594338gxk.1 for ; Thu, 12 Aug 2010 10:02:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; bh=DbIJqPAG9W9l7ShyU247OJ81Vizqqzr4QXZE/WVCjOE=; b=OD5LtW4GakWSlQKttLt/VbPq1OvkT7kuaHTVrEYRqpD/zo4BeqWyzpkxIDkJpi3his Jc/yNwUpBvHkQnx2mxz61C0HQUIBSYbJMPR7rqXi0kPz5Azqf8kIeEG+3krgrZYuIsnf 15fLOitxxiQFU+OEgS9oHd7EDWD27vmxO+aPw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=IqsqghBVkvmgRrT3g2wprb/2nxB1i/Sm/K9r9idrSVBbJxeRP4tRW5avYd/76nAdUa OMf3vrPww2yKBT4BXJyRbUu6QirCgwtEsPvT5ls9KX9YIyU86wEEXSBdnfASzK7NCeIy WJzSvucvMvjB/PaG8RDjmiaDwkykkofUBp+7U= MIME-Version: 1.0 Received: by 10.101.2.23 with SMTP id e23mr423928ani.195.1281632543356; Thu, 12 Aug 2010 10:02:23 -0700 (PDT) Sender: norman.maurer@googlemail.com Received: by 10.101.49.11 with HTTP; Thu, 12 Aug 2010 10:02:23 -0700 (PDT) In-Reply-To: References: <448225.39768.qm@web38808.mail.mud.yahoo.com> Date: Thu, 12 Aug 2010 19:02:23 +0200 X-Google-Sender-Auth: LZUpaY5oShF6dqziZY3eTpkaMgs Message-ID: Subject: Re: Fw: Re: Jackrabbit error From: Norman Maurer To: users@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org You should not share a JCR Session (even not for read). Create one per request/thread. Session creation is cheap and will get sure you don't get into trouble. Bye, Norman 2010/8/12 Vishwanath Dubey : > Zukka, thanks for your response... > > > The repository is not accessed from more than one app for as of now, > currently the repository creation =A0is a singleton behavior and it is in= the > same JVM where web app is running. > > I could only see that since my app is a web 2.0 based web app (used GWT w= ith > Seam), the repository session is being injected for every ajax call (here= I > used EVENT scope for injecting the session) , and since some time it migh= t > be parallel call the repository session injection will also be in paralle= l. > If there is any synchronization happening inside Jackrabbit (Jackrabbit > code) for creating the session, it might be causing this error. > > That is why I expect concurrent read only JCR session which can be shared > across many request. I can created write JCR session only when I need to > write something to the repository... > > Let me know your thoughts > > Thanks & Regards, > > Vish > > > --- On *Tue, 10/8/10, Jukka Zitting * wrote: > > > From: Jukka Zitting > Subject: Re: Jackrabbit error > To: "Vishwanath Dubey" > Date: Tuesday, 10 August, 2010, 4:35 PM > > Hi, > > On Mon, Aug 9, 2010 at 5:48 PM, Vishwanath Dubey > > > wrote: >> I do not know if you can answer it or let me know the site where I can > post the folllowing. > > The best forum for Jackrabbit-related questions is the > users@jackrabbit.apache.orgmailing > list. See > http://jackrabbit.apache.org/mailing-lists.html for details on how to > use the list. > >> We are currently using Jackrabbit 2.1 for our project. The following err= or > appears very >> often and in turn we only get option to restart the server, which is > giving serious attention. >> >> Caused by: com.mmpnc.icm.repository.common.JCRException: > javax.jcr.RepositoryException: >> The repository home /oradata/jboss/jboss-4.2.3.GA/common appears to be > already >> locked by the current process. > > As the exception says, you're trying to start the repository when it's > already running within the same JVM. Do you have another webapp that's > also accessing the same repository? The best approach for such cases > is to have both webapps using the same Repository instance instead of > trying to start separate instances that access the same underlying > repository directory. > >> Also let me me know whether following fixes in 2.2 will resolve it >> (concurrent access to JCR session) >> https://issues.apache.org/jira/browse/JCR-890 > > I'm just about to resolve it as fixed. See the issue for more details. > >> If yes, =A0when 2.2 will be globally available or else how we can move > forward. > > At current pace I believe Jackrabbit 2.2 will be officially released > sometime within the next two months. > > BR, > > Jukka Zitting >