Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 54443 invoked from network); 10 Feb 2009 13:56:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Feb 2009 13:56:50 -0000 Received: (qmail 43175 invoked by uid 500); 10 Feb 2009 13:56:40 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 43153 invoked by uid 500); 10 Feb 2009 13:56:40 -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 43113 invoked by uid 99); 10 Feb 2009 13:56:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Feb 2009 05:56:40 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Feb 2009 13:56:31 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LWt5u-0004MY-BG for users@jackrabbit.apache.org; Tue, 10 Feb 2009 05:56:10 -0800 Message-ID: <21934108.post@talk.nabble.com> Date: Tue, 10 Feb 2009 05:56:10 -0800 (PST) From: hsp_ To: users@jackrabbit.apache.org Subject: Re: Change the PM to DbDataStore. In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: piccinatto@ibest.com.br References: <21919003.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Alexander, thanks by help; That means the way I configured the repository.xml is correct (?!), but the params, specifically in the "PersistenceManager" block must all have the configurations informed: * < param name="bundleCacheSize" value="8"/> * < param name="consistencyCheck" value="false"/> * < param name="minBlobSize" value="16384"/> * < param name="driver" value="org.postgresql.Driver"/> * < param name="url" value=""/> * < param name="user" value=""/> * < param name="password" value=""/> * < param name="schema" value="postgresql"/> * < param name="schemaObjectPrefix" value=""/> * < param name="errorHandling" value=""/> So, this way, I presume that JNDI won't work anymore (like before I was using) and must be present directly in the repository.xml, am I right? And about other blocks "FileSystem" and the last "DataStore", I saw in [1] that you mentioned, the configuration for JNDI is possible by: "JNDI can be used to get the connection. In this case, use the javax.naming.InitialContext as the driver, and the JNDI name as the URL. If the user and password are configured in the JNDI resource, they should not be configured here. Example JNDI settings: < param name="driver" value="javax.naming.InitialContext" /> < param name="url" value="java:comp/env/jdbc/Test" /> " So, it was what I did in the blocks, are they right? Thanks in advanced for your help. Helio. Alexander Klimetschek wrote: > > On Mon, Feb 9, 2009 at 7:53 PM, hsp_ wrote: >> 2009-02-09 16:51:59,732 ERROR >> [org.apache.jackrabbit.core.fs.db.DbFileSystem] failed to initialize file >> system >> java.sql.SQLException: No suitable driver found for java:jdbc/DesenvDS > > This means you need to configure the jdbc url and the driver for your > DbFileSystem (see [1] for a description). > > And please note: if you change the persistence manager, Jackrabbit > won't migrate automatically. It will only use the persistence manager > configured in the workspace.xml and access whatever is configured, eg. > a certain database and certain tables within. However, if you only > change from using JNDI to direct database persistence managers, you > just have to get the jdbc config right. > > > [1] > http://jackrabbit.apache.org/api/1.5/org/apache/jackrabbit/core/fs/db/DbFileSystem.html > [2] > http://jackrabbit.apache.org/api/1.5/org/apache/jackrabbit/core/persistence/bundle/PostgreSQLPersistenceManager.html > > Regards, > Alex > > -- > Alexander Klimetschek > alexander.klimetschek@day.com > > -- View this message in context: http://www.nabble.com/Change-the-PM-to-DbDataStore.-tp21919003p21934108.html Sent from the Jackrabbit - Users mailing list archive at Nabble.com.