Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 88312 invoked from network); 28 Sep 2006 10:33:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Sep 2006 10:33:18 -0000 Received: (qmail 12305 invoked by uid 500); 28 Sep 2006 10:33:17 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 12260 invoked by uid 500); 28 Sep 2006 10:33:16 -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 12251 invoked by uid 99); 28 Sep 2006 10:33:16 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Sep 2006 03:33:16 -0700 Authentication-Results: idunn.apache.osuosl.org header.from=midha.rakesh@gmail.com; domainkeys=good X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 Received: from [64.233.182.189] ([64.233.182.189:13168] helo=nf-out-0910.google.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 7F/EE-05478-FD4AB154 for ; Thu, 28 Sep 2006 03:33:05 -0700 Received: by nf-out-0910.google.com with SMTP id p77so766359nfc for ; Thu, 28 Sep 2006 03:32:48 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=TD9tcgIAv1htb+k8RtvqamhRfEPWvme9eYJobFF+cn6R90yI3P+KEvd47kIt8gqw5Az4Oy5OJs0oCGemm7Rpoc9mmg70gSIhiXjKGBeSKwEZOOfs0IoybORPG5XcxMJFizc38SS1XGVoHyAztVx6PfCw4T71kOhPDKrL4qRF1Us= Received: by 10.78.128.15 with SMTP id a15mr1260995hud; Thu, 28 Sep 2006 03:32:48 -0700 (PDT) Received: by 10.78.203.15 with HTTP; Thu, 28 Sep 2006 03:32:48 -0700 (PDT) Message-ID: <1f52a95c0609280332k4ecf1bb2y565cd46467238e8f@mail.gmail.com> Date: Thu, 28 Sep 2006 16:02:48 +0530 From: "Rakesh Midha" To: users@jackrabbit.apache.org Subject: Re: Problem with DbFileSystem and SimpleDbPersistenceManager In-Reply-To: <90a8d1c00609271235r6bcff062r504112a6f340ee45@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4310_646760.1159439568173" References: <1f52a95c0609270740t7aca9051v480d503ad643f440@mail.gmail.com> <90a8d1c00609271235r6bcff062r504112a6f340ee45@mail.gmail.com> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_4310_646760.1159439568173 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks Stefan You are right, my mistake. thanks Rakesh On 9/28/06, Stefan Guggisberg wrote: > > hi rakesh, > the problem is that all your persistence managers and file systems > are using the same schemaObjectPrefix (i.e. "myDB_"). > > every db persistence manager and every db file system should > use distinct values for schemaObjectPrefix. > > cheers > stefan > > > On 9/27/06, Rakesh Midha wrote: > > Hello > > > > I am creating new repository with following to store all my data to > derby > > database. > > > > I created database myDB5 and created following tables and indexes in it: > > index myDB_NODE_IDX; > > index myDB_PROP_IDX; > > index myDB_REFS_IDX; > > index myDB_BINVAL_IDX; > > table myDB_NODE; > > table myDB_PROP; > > table myDB_REFS; > > table myDB_BINVAL; > > > > Also in my jcr-repository I have usuall jaas.config and repository.xmlwith > > following cnfigurations > > > > > > > > > > > value="jdbc:derby://localhost:1527/myDB5;user=usr;create=true"/> > > > > > > > > > > > > > > > > > > defaultWorkspace="default" > > /> > > > > > > > > > value="jdbc:derby://localhost:1527/myDB5;user=usr;create=true"/> > > > > > > > > > > > > > > > > > value="jdbc:derby://localhost:1527/myDB5;user=usr;create=true"/> > > > > > > > > > > > > > > > > > > > > > > > > > > > value="jdbc:derby://localhost:1527/myDB5;user=usr;create=true"/> > > > > > > > > > > > > > > > > > value="jdbc:derby://localhost:1527/myDB5;user=usr;create=true"/> > > > > > > > > > > > > > > > > > > Notice all persistancemanagers are configured to > SimpleDbPersistenceManager > > and all filesystems to DbFileSystem > > > > Also in my repository\workspaces\default\workspace.xml > > I added > > > > > > > > > > > value="jdbc:derby://localhost:1527/myDB5;user=usr;create=true"/> > > > > > > > > > > > > > > > > > value="jdbc:derby://localhost:1527/myDB5;user=usr;create=true"/> > > > > > > > > > > > > > > > > ........................................... > > Now I am getting the problem > > > > javax.jcr.ItemNotFoundException: > > deadbeef-cafe-babe-cafe-babecafebabe/{ > http://www.jcp.org/jcr/1.0}primaryType > > > > Caused by: javax.jcr.ItemNotFoundException: > > deadbeef-cafe-babe-cafe-babecafebabe/{ > http://www.jcp.org/jcr/1.0}primaryType > > at org.apache.jackrabbit.core.ItemManager.createItemInstance( > ItemManager.java:464) > > at org.apache.jackrabbit.core.ItemManager.getItem( > ItemManager.java:320) > > at org.apache.jackrabbit.core.ItemImpl.restoreTransientItems( > ItemImpl.java:708) > > at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1208) > > at org.apache.jackrabbit.core.RepositoryImpl.initWorkspace( > RepositoryImpl.java:529) > > at org.apache.jackrabbit.core.RepositoryImpl.( > RepositoryImpl.java:244) > > at org.apache.jackrabbit.core.RepositoryImpl.create( > RepositoryImpl.java:483) > > at org.apache.cocoon.jcr.JackrabbitRepository.configure( > JackrabbitRepository.java:94) > > > > > > Can someone help me with this and let me know if this is allowed...can > > i store everything in database. > > > > If allowed what am I doing wrong> > > > > thanks > > Rakesh > > > > > ------=_Part_4310_646760.1159439568173--