Return-Path: X-Original-To: apmail-jackrabbit-users-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 04AA9D679 for ; Tue, 14 Aug 2012 15:22:03 +0000 (UTC) Received: (qmail 22127 invoked by uid 500); 14 Aug 2012 15:22:02 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 22046 invoked by uid 500); 14 Aug 2012 15:22:02 -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 22038 invoked by uid 99); 14 Aug 2012 15:22:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Aug 2012 15:22:02 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Carl.Furst@mlb.com designates 66.192.34.20 as permitted sender) Received: from [66.192.34.20] (HELO bleachers2.mlb.com) (66.192.34.20) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Aug 2012 15:21:57 +0000 X-IronPort-AV: E=Sophos;i="4.77,767,1336363200"; d="scan'208";a="90014070" Received: from unknown (HELO BAMEXCH-HUB02.MLBAM.mlb.org) ([10.3.3.77]) by bleachers2.mlb.com with ESMTP; 14 Aug 2012 11:21:37 -0400 Received: from BAM-EXCH07.MLBAM.mlb.org ([10.3.3.70]) by BAMEXCH-HUB02.MLBAM.mlb.org ([10.3.3.77]) with mapi; Tue, 14 Aug 2012 11:21:36 -0400 From: "Furst, Carl" To: "users@jackrabbit.apache.org" Date: Tue, 14 Aug 2012 11:21:37 -0400 Subject: Re: Some findings Thread-Topic: Some findings Thread-Index: Ac16MH4ENQNxS1omSRa5FhSknNmMlw== Message-ID: In-Reply-To: <1344756228610-4656285.post@n4.nabble.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.2.3.120616 acceptlanguage: en-US MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="windows-1252" X-Virus-Checked: Checked by ClamAV on apache.org I found that full text searches don't work even with just using a transient repository. Lucine is not indexing full text fields.. Even when you follow the proper indexing configuration. I used Luke to analyze Lucine after I had stored a bunch of stuff in jcr:data nodes and nope=8A not a single word indexed. So searches came up empty. Carl Furst On 8/12/12 3:23 AM, "director" wrote: >Dear JackRabbit users, > >I started using JackRabbit just before one and half month. With in this >period, I think, I found something that is useful for all of us. > >**** Never use RMI to connect to the JackRabbit server. Always get the >local >server instance before you do something. I started connecting to >JackRabbit >with the RMI and it even didn't perform search operation with the xpath >query. But the server instance will easily do that. > >Currently I am using JackRabbit in my project and I am facing difficulties >in user creation. And this user creation part is very important for my >project. I have done the following things for creating users but some >error >arouse: > >Repository repository =3D >JcrUtils.getRepository("http://localhost:8088/server"); >String username =3D "admin"; >String password =3D "admin"; > =20 >System.out.println(repository); >session =3D repository.login(new SimpleCredentials(username, >password.toCharArray()));-----up to this line of code is ok as I can get a >session. > >But when I use the following code to get a user manager, it shows the >error. >UserManager um =3D ((JackrabbitSession)session).getUserManager(); > > >The error is: >Exception in thread "main" java.lang.ClassCastException: >org.apache.jackrabbit.jcr2spi.SessionImpl cannot be cast to >org.apache.jackrabbit.api.JackrabbitSession > at jack.Repconfautomatic.(Repconfautomatic.java:88) > at jack.Repconfautomatic.main(Repconfautomatic.java:116) > >After getting this error, I printed the class of session that I am >receiving >with the above java program by using the following code: >System.out.println(session.getClass()) and this line prints the session's >class. > >To solve this error, I have tried many things. I searched almost all the >links in the internet but I couldn't get any thing to solve this. Yes, >there >are some more posts about the same error but there is no solution. I also >tried with the Titus Barik's example from ibm.com to get a repository >instance through jndi but it also has so many problems. > >I am looking forward for any suggestions and ideas to solve this problem. > >Thank you in advance. > > >=20 > > > >-- >View this message in context: >http://jackrabbit.510166.n4.nabble.com/Some-findings-tp4656285.html >Sent from the Jackrabbit - Users mailing list archive at Nabble.com. ********************************************************** MLB.com: Where Baseball is Always On