Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 84872 invoked from network); 5 May 2010 10:38:52 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 May 2010 10:38:52 -0000 Received: (qmail 94774 invoked by uid 500); 5 May 2010 10:38:52 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 94472 invoked by uid 500); 5 May 2010 10:38:49 -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 94463 invoked by uid 99); 5 May 2010 10:38:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 May 2010 10:38:48 +0000 X-ASF-Spam-Status: No, hits=1.1 required=10.0 tests=AWL,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [203.62.173.21] (HELO hs-smtpgw.virtusa.com) (203.62.173.21) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 May 2010 10:38:43 +0000 X-TM-IMSS-Message-ID: <49e41546000ad209@hs-smtpgw.virtusa.com> Received: from HS-MAILSVR01.Virtusa.com (hs-mailsvr01.virtusa.com [10.4.69.15]) by hs-smtpgw.virtusa.com ([10.4.95.32]) with ESMTP (TREND IMSS SMTP Service 7.0) id 49e41546000ad209 ; Wed, 5 May 2010 16:02:54 +0530 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_01CAEC3F.1382B282" Subject: RE: Getting noSuchMethodError in jackrabbit session.login() method [SEC=UNCLASSIFIED] Date: Wed, 5 May 2010 16:08:17 +0530 Message-ID: In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Getting noSuchMethodError in jackrabbit session.login() method [SEC=UNCLASSIFIED] Thread-Index: AcrsElYc4D8sZCJHRcqBp7JS/X3hagAKyJHQ References: <4BE0217D.3030207@gmail.com> From: "Jenni Pothu" To: X-TM-AS-Product-Ver: IMSS-7.0.0.6219-6.0.0.1038-17364.006 X-TM-AS-Result: No--28.927-4.0-31-1 X-imss-scan-details: No--28.927-4.0-31-1 X-TM-AS-User-Approved-Sender: No ------_=_NextPart_001_01CAEC3F.1382B282 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi=20Ross, =20=20=20=20=20=20=20=20Thank=20you=20very=20much=20Ross.=20I=20removed= =20all=20the=20jar=20files=20except jackrabbit-standalone-2.0.1.jar.=20=20Now=20my=20application=20is=20worki= ng. Actually=20my=20application=20is=20at=20location=20"C:\eclipse-workspace\= Web"=20in=20my machine.=20So=20=20repository=20is=20created=20in=20the=20same=20location= .=20But=20the=20nodes are=20not=20added.=20=20Where=20the=20nodes=20will=20get=20added.=20How= =20to=20view=20the=20nodes. Do=20you=20have=20any=20idea=20how=20to=20add=20the=20txt=20files=20to=20= repository=20using jackrabbit.=20 =20 public=20static=20void=20main(String[]=20args)=20throws=20Exception=20{ =20=20=20=20=20=20=20=20Repository=20repository=20=3D=20new=20TransientRe= pository(); =20=20=20=20=20=20=20Session=20session=20=3D=20repository.login(new SimpleCredentials("username",=20"password".toCharArray())); =20=20=20=20=20=20=20=20try=20{ =20=20=20=20=20=20=20=20=20=20=20=20Node=20root=20=3D=20session.getRootNo= de(); =20=20=20=20=20=20=20=20=20=20=20=20//=20Store=20content =20=20=20=20=20=20=20=20=20=20=20=20Node=20sampleNode=20=3D=20root.addNod= e("sampleNode"); Node=20childNode=20=3D=20sampleNode.addNode("childNode"); =20=20=20=20=20=20=20=20=20=20=20=20sampleNode.setProperty("message",=20"= Hello=20jackrabbit=20world"); =20=20=20=20=20=20=20=20=20=20=20=20session.save(); =20=20=20=20=20=20=20=20=20=20=20=20System.out.println("rootnode:"+sessio= n.getRootNode()+":"); =20=20=20=20=20=20=20=20=20=20=20=20//=20Retrieve=20content =20=20=20=20=20=20=20=20=20=20=20=20Node=20node=20=3D=20root.getNode("sam= pleNode"); =20=20=20=20=20=20=20=20=20=20=20=20System.out.println(node.getPath()); =20=20=20=20=20=20=20=20=20=20=20=20System.out.println(node.getProperty("= message").getString()); =20 =20=20=20=20=20=20=20=20=20=20=20=20//=20Remove=20content =20=20=20=20=20=20=20=20=20=20=20=20//root.getNode("hello").remove(); =20=20=20=20=20=20=20=20=20=20=20=20session.save(); =20=20=20=20=20=20=20 =20=20=20=20=20=20=20=20}=20catch=20(Exception=20e)=20{ =20=20=20=20=20=20=20=20=20=20=20=20e.printStackTrace(); =20=20=20=20=20=20=20=20=20=20=20=20//session.logout(); =20=20=20=20=20=20=20=20} Thanks, Jenni =20 From:=20Ross.Dyson@ipaustralia.gov.au [mailto:Ross.Dyson@ipaustralia.gov.au]=20 Sent:=20Wednesday,=20May=2005,=202010=2010:47=20AM To:=20users@jackrabbit.apache.org Subject:=20RE:=20Getting=20noSuchMethodError=20in=20jackrabbit=20session.= login() method=20[SEC=3DUNCLASSIFIED] =20 Jenni=20 I=20think=20you=20need=20to=20look=20again=20at=20your=20classpath=20and= =20the=20instructions=20in the=20First=20Hops=20example.=20 The=20only=20jar=20file=20you=20need=20in=20your=20path=20is jackrabbit-standalone-2.x.x.jar,=20it=20contains=20unjarred=20classes=20f= rom=20all of=20the=20dependent=20libraries.=20 Give=20that=20a=20shot=20and=20see=20how=20it=20goes.=20 Ross.=20 -------------------------------------------------------------------------= ------------------- This=20message,=20including=20any=20attachments,=20contains=20confidentia= l=20information=20 intended=20for=20a=20specific=20individual=20and=20purpose,=20and=20is=20= intended=20for=20the=20addressee=20only.=20Any=20unauthorized=20disclosur= e,=20use,=20dissemination,=20copying,=20or=20distribution=20of=20 this=20message=20or=20any=20of=20its=20attachments=20or=20the=20informati= on=20contained=20in=20this=20e-mail,=20or=20the=20taking=20of=20any=20act= ion=20based=20on=20it,=20is=20strictly=20prohibited.=20If=20you=20are=20n= ot=20the=20intended=20recipient,=20please=20notify=20the=20sender=20immed= iately=20by=20return=20e-mail=20and=20delete=20this=20message. -------------------------------------------------------------------------= ------------------- ------_=_NextPart_001_01CAEC3F.1382B282--