Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 95539 invoked from network); 21 Jul 2009 07:27:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Jul 2009 07:27:06 -0000 Received: (qmail 74171 invoked by uid 500); 21 Jul 2009 07:28:10 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 74129 invoked by uid 500); 21 Jul 2009 07:28: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 74118 invoked by uid 99); 21 Jul 2009 07:28:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jul 2009 07:28:10 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ianboston@googlemail.com designates 74.125.78.24 as permitted sender) Received: from [74.125.78.24] (HELO ey-out-2122.google.com) (74.125.78.24) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jul 2009 07:27:58 +0000 Received: by ey-out-2122.google.com with SMTP id 9so612476eyd.13 for ; Tue, 21 Jul 2009 00:27:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=Hq7ZKLwtjI25Z3ujH6QMN9Jnpl4WxwSFrUP5jQGN6sQ=; b=WdDM3TIgCd9PFXbYV2dsbTG8MgjivxFHhIBkY1xH+6x5b2/JVwS2Xpya/eBkyTMktn 53Mw3FF1ZlQrLy6cBbgIBRcsKbV60nz1qnIXUBT9hs/aP3aE5NO8giyaqi8ji8QXLWGN h+sPZxmoeiZtRygmvIKezrKlFd8Y4UZ/TgG7E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=sender:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=lB6sTieRaoiX+3b0ptPT4FCANYCKcwD6x5CiEWP5VfWmbURmAajkiT0sZrdZ7GhI7u ZmP0yuvf0pkvfEbGwBnwDEHzozlRzHMRIOaQgptJp3J0d+gjMwBGlC9a1Dt/LTp6T2C0 m4UpImxq5X0unMquc/GID8EjfeIUF2HSDKqFk= Received: by 10.210.63.2 with SMTP id l2mr4748007eba.32.1248161258307; Tue, 21 Jul 2009 00:27:38 -0700 (PDT) Received: from ?192.168.115.101? (cpc6-papw1-0-0-cust601.cmbg.cable.ntl.com [86.1.46.90]) by mx.google.com with ESMTPS id 28sm656818eyg.52.2009.07.21.00.27.36 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 21 Jul 2009 00:27:36 -0700 (PDT) Sender: Ian Boston Message-Id: <86E98919-E452-40C5-AB54-726EDC7E28D5@tfd.co.uk> From: Ian Boston To: users@jackrabbit.apache.org In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Subject: Re: Exception in thread "main" java.lang.NoClassDefFoundError: javax/jcr/Repository Date: Tue, 21 Jul 2009 08:27:35 +0100 References: <24582711.post@talk.nabble.com> <4A6569FB.5010503@gmx.de> X-Mailer: Apple Mail (2.935.3) X-Virus-Checked: Checked by ClamAV on apache.org What classloader environment are you running in ? OSGi ? NoClassDefFoundError means that the Class was found but the byte array associated with the class could not be loaded (hence no definition). If the class is not in your classpath, then you will normally get a ClassNotFoundException. The only time I have seen a NoClassDefFoundError is a) when the jar is corrupt or b) in OSGi where there is no bundle import (in the manifest) on the package in question. OSGi classloaders apply rules to finding and loading classes, you may be in an environment with similar rules. HTH Ian On 21 Jul 2009, at 08:17, simer anand wrote: > ya > but i do have have jcr-1.0.jar in my classpath > and javax/jcr/respository.class is within it