Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 1804 invoked from network); 12 Mar 2008 15:23:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Mar 2008 15:23:08 -0000 Received: (qmail 27162 invoked by uid 500); 12 Mar 2008 15:22:57 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 27148 invoked by uid 500); 12 Mar 2008 15:22:57 -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 27132 invoked by uid 99); 12 Mar 2008 15:22:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Mar 2008 08:22:57 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of fmeschbe@gmail.com designates 209.85.134.189 as permitted sender) Received: from [209.85.134.189] (HELO mu-out-0910.google.com) (209.85.134.189) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Mar 2008 15:22:17 +0000 Received: by mu-out-0910.google.com with SMTP id w8so3114395mue.1 for ; Wed, 12 Mar 2008 08:22:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=P/R76k+/NYCTXdpoVTP08Sc8Q5YFceSfmiNQ84HlmMw=; b=G0W4Fey9f1qFrz2pkKnj05uWMnYCiUKaLCXbAUakr2RVXiq5rAkkKyqB32pL9KqQpi5ZfKHzxUcjVWZMynUJ4M+P4onjQ818zgX1HoLNmWah6tzQbO3VWWVD8Mac7laX1rrZQqWUqpvVsHiiS4uJRJ/JH4wqsnYc6+gOKzMyVN4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=B057ETg/Rs7zjTKvv4MPAKLgGvyZv6na5ANpxVnIUpIHvpCZIc5StSOsQPZyDtl+ezC9iG4Y/0pFIeVN8RWSnYDBazkHODuix4ULHXAk5ZuxbfVo76ukER9+Cbq+Fim03s63S5IIvrdI9M73eIp/qJWXgAaXfWZt6cn1h1SUieU= Received: by 10.82.158.12 with SMTP id g12mr20045286bue.0.1205335346225; Wed, 12 Mar 2008 08:22:26 -0700 (PDT) Received: from ?192.168.1.100? ( [87.102.138.82]) by mx.google.com with ESMTPS id 13sm19510619fks.8.2008.03.12.08.22.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 12 Mar 2008 08:22:24 -0700 (PDT) Subject: Re: RMI - Need help registering node types From: Felix Meschberger To: users@jackrabbit.apache.org In-Reply-To: <78f07c210803060616x51f952e7q49827e5871e9fa43@mail.gmail.com> References: <78f07c210803060616x51f952e7q49827e5871e9fa43@mail.gmail.com> Content-Type: text/plain Date: Wed, 12 Mar 2008 16:22:22 +0100 Message-Id: <1205335342.3535.41.camel@bslm-046.corp.day.com> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 (2.10.3-8.fc7) Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Sebastian, You have to acquire your remote repository using the JackrabbitClientAdapterFactory instead of the default ClientAdapterFactory. Otherwise the Jackrabbit API is not available on the client side. In short you should do: LocalAdapterFactory aFactory = new JackrabbitClientAdapterFactory(); ClientRepositoryFactory rFactory = new ClientRepositoryFactory(aFactory); Repository repo = rFactory.getRepository(rmiURL); Then you can cast the NodeTypeManager you get from the workspace to a JackrabbitNodeTypeManager and can then register your node types. Hope this helps. Regards Felix Am Donnerstag, den 06.03.2008, 15:16 +0100 schrieb Sebastian Gomez: > Hi. > > I'm having trouble registering node types using RMI. My problem is > similar to this one: > > http://www.mail-archive.com/users@jackrabbit.apache.org/msg06431.html > > but I'm using Spring Modules. Everything goes OK until I try to > register node types, where I try to get a JackrabbitNodeTypeManager > but I receive a ClientNodeTypeManager, which makes a ClassCast > exception to be thrown (without the JackrabbitNodeTypeManager I can't > register node types). > > What have I got to configure so as to obtain a > JackrabbitNodeTypeManager? Should I touch the server's beans o the > client's beans? I think I've tried everything... > > I'd appreciate a lot your help. > > Best regards. > > Sebastian Gomez.