Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 56428 invoked from network); 12 Nov 2009 01:22:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Nov 2009 01:22:58 -0000 Received: (qmail 52095 invoked by uid 500); 12 Nov 2009 01:22:58 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 52074 invoked by uid 500); 12 Nov 2009 01:22:58 -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 52063 invoked by uid 99); 12 Nov 2009 01:22:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Nov 2009 01:22:58 +0000 X-ASF-Spam-Status: No, hits=-1.8 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Anit_Phukan@intuit.com designates 12.149.175.11 as permitted sender) Received: from [12.149.175.11] (HELO mail1.intuit.com) (12.149.175.11) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Nov 2009 01:22:46 +0000 DomainKey-Signature: s=default; d=intuit.com; c=nofws; q=dns; h=X-SBRS:X-IronPort-AV:Received:Received:X-MimeOLE: Content-class:MIME-Version:Content-Type:Subject:Date: Message-ID:In-Reply-To:X-MS-Has-Attach: X-MS-TNEF-Correlator:Thread-Topic:Thread-Index:References: From:To:Return-Path:X-OriginalArrivalTime; b=WKO9uilGwnUEUVw822wrgnzVHJvc5IHjNbqj3blUO0RuieZymM/3hsks hFidi3AeBqTPWlgA9CtMlyKD6RzQRehUgZd/znM3j2vJFOJBzcP+WOaGg uZi4R+nwvr+pHSH; X-SBRS: None X-IronPort-AV: E=Sophos;i="4.44,726,1249282800"; d="scan'208,217";a="152046282" Received: from sdgexbh03.corp.intuit.net ([172.17.135.77]) by mail1.sdg.ie.intuit.com with ESMTP; 11 Nov 2009 17:22:23 -0800 Received: from SDGEXEVS07.corp.intuit.net ([172.17.135.182]) by SDGEXBH03.corp.intuit.net with Microsoft SMTPSVC(6.0.3790.3959); Wed, 11 Nov 2009 17:22:23 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CA6336.7A7541C1" Subject: JNDI datasource config help Date: Wed, 11 Nov 2009 17:21:36 -0800 Message-ID: In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: JNDI datasource config help Thread-Index: Acpit3vFSu1x5RejTYG4G0ZU9FGUMwAfFwBA References: <4fe4c4f50911101025i495a3187vf0950aac633a9882@mail.gmail.com> <1750A409-07EE-4B48-A5EA-130E03D36F05@sptci.com> <4fe4c4f50911101243t50a6221fm9c916668b03a2fc0@mail.gmail.com> <1E07E2B1-B8FD-4963-BCF9-28A0B3AF86C4@sptci.com> <4fe4c4f50911101440q572665fdi56b382b530cb398@mail.gmail.com> From: "Phukan, Anit" To: X-OriginalArrivalTime: 12 Nov 2009 01:22:23.0179 (UTC) FILETIME=[9623C1B0:01CA6336] X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01CA6336.7A7541C1 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I am having some issues deploying my WAR on jboss server after I change my repository.xml to include the JNDI lookup for the DB URL and Driver. Following are the changes that I have done to change from a direct JDBC.JTDS reference to a JNDI based lookup: Repository.xml: --------------- Jackrabbit Impl java class from where I am starting up the repository: ---------------------------------------------------------------------- InitialContext ctx =3D new InitialContext() ; Repository repository =3D (Repository) ctx.lookup("java:comp/env/jdbc/ DSName") ; session =3D repository.login(new SimpleCredentials("username","password".toCharArray())); jtds-ds.xml properties file which is placed at the JBOSS_HOME/server/default/deploy folder: ---------------------------------------- comp/env/jdbc/DSName =20 jdbc:jtds:sqlserver://xxxxxx.xxx.xxxxx:1433/DBName jackrabbit-jca-1.6.0.rar javax.jcr.Repository net.sourceforge.jtds.jdbc.Driver xxxxx xxxxxx ${JBOSS_HOME}/temp/jackrabbit= ${JBOSS_HOME}/bin/repository.xml true This is the stack trace of the exception that I get while starting up the server: java.lang.NoClassDefFoundError: javax/jcr/RepositoryException at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) at java.lang.Class.getConstructor0(Class.java:2699) at java.lang.Class.newInstance0(Class.java:326) at java.lang.Class.newInstance(Class.java:308) at org.jboss.resource.connectionmanager.ManagedConnectionFactoryDeployment. startService(ManagedConnectionFactoryDeployment.java:354) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupp ort.java:376) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBean Support.java:322) at org.jboss.system.ServiceDynamicMBeanSupport.invoke(ServiceDynamicMBeanSu pport.java:124) at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668) at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:18 9) at $Proxy38.start(Unknown Source) DEPLOYMENTS IN ERROR: Deployment "vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/jtds-ds.xml" is in error due to the following reason(s): java.lang.ClassNotFoundException: javax.jcr.RepositoryException from BaseClassLoader@24ad8 I am not sure if I am missing some jndi related parameter setting somewhere, and why the class loader is unable to load the RepositoryException class even though all related jars are present. Any advice/help would be appreciated. Thanks Anit -----Original Message----- From: Alexander Klimetschek [mailto:aklimets@day.com]=20 Sent: Wednesday, November 11, 2009 2:12 AM To: users@jackrabbit.apache.org Subject: Re: 1.0 or 2.0 On Wed, Nov 11, 2009 at 01:03, Phukan, Anit wrote: > Has anyone configured the repository.xml to use JNDI look up for making DB connections instead of directly specifying DB URLs with userid/password in the repository.xml? See http://wiki.apache.org/jackrabbit/UsingJNDIDataSource Regards, Alex --=20 Alexander Klimetschek alexander.klimetschek@day.com ------_=_NextPart_001_01CA6336.7A7541C1--