Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 22649 invoked from network); 19 Aug 2010 08:20:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Aug 2010 08:20:13 -0000 Received: (qmail 80330 invoked by uid 500); 19 Aug 2010 08:20:13 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 80062 invoked by uid 500); 19 Aug 2010 08:20:10 -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 80053 invoked by uid 99); 19 Aug 2010 08:20:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Aug 2010 08:20:09 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tmueller@day.com designates 207.126.148.85 as permitted sender) Received: from [207.126.148.85] (HELO psmtp.com) (207.126.148.85) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 19 Aug 2010 08:20:02 +0000 Received: from source ([209.85.216.42]) by eu3sys201aob102.postini.com ([207.126.154.11]) with SMTP ID DSNKTGzpG9p2uCkxdes1dzn3BLTAhFwlfENc@postini.com; Thu, 19 Aug 2010 08:19:41 UTC Received: by qwb8 with SMTP id 8so1541155qwb.29 for ; Thu, 19 Aug 2010 01:19:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.19.200 with SMTP id c8mr6308722qab.70.1282205972508; Thu, 19 Aug 2010 01:19:32 -0700 (PDT) Received: by 10.229.22.21 with HTTP; Thu, 19 Aug 2010 01:19:32 -0700 (PDT) In-Reply-To: References: Date: Thu, 19 Aug 2010 10:19:32 +0200 Message-ID: Subject: Re: Facing error when running Jackrabbit with Postgres + Jboss From: =?ISO-8859-1?Q?Thomas_M=FCller?= To: users@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, In the FileSystem entry, you need add: Regards, Thomas On Wed, Aug 18, 2010 at 5:54 PM, Meenakshi Khatri w= rote: > Hello everyone, > > I am a beginner with Jackrabbit and am currently replacing Derby with > Postgres 8.4 > > I was initially facing errors with Jboss but after making the change, Jbo= ss > is able to set the Postgres JNDI name properly. > > I was searching thru the mailing list of Jackrabbit but I hardly came acr= oss > any dicsussion which might help me solve this problem. > > I have made the necessary changes in my repository.xml file but I get the > following error when I run my application with Jboss. > > >> =A0INFO =A0[org.apache.jackrabbit.core.RepositoryImpl] (main) Starting >> repository... >> *WARN =A0[org.apache.jackrabbit.core.util.db.ConnectionFactory] (main) >> Failed to guess validation query for URL >> jdbc:postgresql://localhost:5432/database* > > * ERROR [org.apache.jackrabbit.core.util.db.ConnectionHelper] (main) Fail= ed >> to execute SQL (stacktrace on DEBUG log level) >> org.postgresql.util.PSQLException: ERROR: type "varbinary" does not exis= t* >> =A0 Position: 98 >> =A0at >> org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecu= torImpl.java:2062) >> =A0at >> org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImp= l.java:1795) >> =A0at >> org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:= 257) >> =A0at >> org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Stateme= nt.java:479) >> =A0at >> org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdb= c2Statement.java:353) >> =A0at >> org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Stateme= nt.java:345) >> =A0at >> org.apache.commons.dbcp.DelegatingStatement.execute(DelegatingStatement.= java:264) >> =A0at >> org.apache.commons.dbcp.DelegatingStatement.execute(DelegatingStatement.= java:264) > > ..... > > I have made the following changes in the repository.xml file to replace > Derby with Postgres. > >> >> =A0 >> =A0 >> =A0 >> =A0 >> =A0 >> =A0 >> >> =A0 >> =A0 >> =A0 >> =A0 >> =A0 >> =A0 >> =A0 >> >> =A0 > class=3D"org.apache.jackrabbit.core.security.simple.SimpleSecurityManage= r" >> workspaceName=3D"security"> >> =A0 >> >> =A0 > class=3D"org.apache.jackrabbit.core.security.simple.SimpleAccessManager"= > >> =A0 =A0