Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 78290 invoked from network); 6 Sep 2007 06:16:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Sep 2007 06:16:19 -0000 Received: (qmail 63253 invoked by uid 500); 6 Sep 2007 06:16:05 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 63238 invoked by uid 500); 6 Sep 2007 06:16:05 -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 63208 invoked by uid 99); 6 Sep 2007 06:16:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Sep 2007 23:16:05 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Sep 2007 06:17:20 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1ITAeR-000087-U1 for users@jackrabbit.apache.org; Wed, 05 Sep 2007 23:15:39 -0700 Message-ID: <12516250.post@talk.nabble.com> Date: Wed, 5 Sep 2007 23:15:39 -0700 (PDT) From: intovoid To: users@jackrabbit.apache.org Subject: RMI Server / Client - Lock MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: intovoid@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org I am trying to make a RMI server with a client to connect to the server. I used the code from the wiki example: Server: System.setProperty("org.apache.jackrabbit.repository.home", "c:/jcr"); System.setProperty("org.apache.jackrabbit.repository.conf", "c:/jcr/repository.xml"); Repository repository = new TransientRepository(); ServerAdapterFactory factory = new ServerAdapterFactory(); RemoteRepository remote = factory.getRemoteRepository(repository); Registry reg = LocateRegistry.createRegistry(RMI_PORT); reg.rebind("jackrabbit", remote); Client: ClientRepositoryFactory factory = new ClientRepositoryFactory(); Repository repository = factory.getRepository("rmi://localhost:1100/jackrabbit"); Session session = repository.login(); try { String user = session.getUserID(); String name = repository.getDescriptor(Repository.REP_NAME_DESC); System.out.println("Logged in as " + user + " to a " + name + " repository."); } finally { session.logout(); } When i run both classes from within Eclipse it works, when i jar the RMI server and start it in a DOS box and after that i run the Client in Eclipse i get the following message: WARN - Existing lock file C:\jcr\.lock detected. Repository was not shut down properly. When i kill the server and delete the .lock it gives me the same result and leaves the .lock behind. Does anyone have an idea on what i am doing wrong ? intovoid -- View this message in context: http://www.nabble.com/RMI-Server---Client---Lock-tf4389896.html#a12516250 Sent from the Jackrabbit - Users mailing list archive at Nabble.com.