Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 47420 invoked from network); 8 Apr 2008 06:54:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Apr 2008 06:54:09 -0000 Received: (qmail 34221 invoked by uid 500); 8 Apr 2008 06:54:08 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 34189 invoked by uid 500); 8 Apr 2008 06:54:08 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 34178 invoked by uid 99); 8 Apr 2008 06:54:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Apr 2008 23:54:08 -0700 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: local policy) Received: from [98.136.44.58] (HELO smtp103.prem.mail.sp1.yahoo.com) (98.136.44.58) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 08 Apr 2008 06:53:17 +0000 Received: (qmail 48441 invoked from network); 8 Apr 2008 06:53:36 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Mime-Version:In-Reply-To:References:Content-Type:Message-Id:Content-Transfer-Encoding:From:Subject:Date:To:X-Mailer; b=wMLXStDxRUFQrsbll8/Eijfx6o6ffnUX97AbxyI/qLpbYSliydaXVt7NQyBo6ky6j8QoMGpIcCCsELuZSEl3XJUbF5wLV1Hme9yo0wd4+ntmpG0K1rxlDxUQqazHjhhkl5Z5UHWNDQjpXk6pCEZyzqCIIEFmRF6UmdbZbGOdfZo= ; Received: from unknown (HELO ?192.168.1.106?) (david_jencks@67.102.173.8 with plain) by smtp103.prem.mail.sp1.yahoo.com with SMTP; 8 Apr 2008 06:53:35 -0000 X-YMail-OSG: 4Hlo6jsVM1lUYv6a1MR3Ct0X7sur0cHEIi.iSlvIQ4X0hZeT2lsynrWFPZYNHwWDpPCDRSlL5g-- X-Yahoo-Newman-Property: ymail-3 Mime-Version: 1.0 (Apple Message framework v753) In-Reply-To: <92e0cdfc0804072320p79657154i1f5a7ee1b8cd0065@mail.gmail.com> References: <92e0cdfc0804072320p79657154i1f5a7ee1b8cd0065@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <6E2CD001-9A25-41B4-8945-C484510D7258@yahoo.com> Content-Transfer-Encoding: 7bit From: David Jencks Subject: Re: how to lookup ejb from jndi, in a stand alone client. ? Date: Mon, 7 Apr 2008 23:53:36 -0700 To: user@geronimo.apache.org X-Mailer: Apple Mail (2.753) X-Virus-Checked: Checked by ClamAV on apache.org I get confused by the jndi "directory" part but suspect that one problem is your use of InitialDirContext rather than InitialContext. Also are you sure you are using the openejb client library that goes with the server? While we've tried to keep compatibility with older versions there may have been some changes in the authentication bits.... I know there were in the code if not the protocol. thanks david jencks On Apr 7, 2008, at 11:20 PM, Mohammad Shamsi wrote: > Hi All, > > in Gmo 2.1, i want to lookup a EJB from a standalone client > > i write this code : > > Properties environment = new Properties(); > environment.put("java.naming.factory.initial", > "org.openejb.client.RemoteInitialContextFactory"); > environment.put("java.naming.provider.url", "localhost:4201"); > > try { > InitialContext context = new InitialDirContext > (environment); > > Object o = context.lookup("SampleBean"); > > but i got this exception : > > javax.naming.AuthenticationException: Cannot read the response from > the server (OEJP/2.0) : null; nested exception is: > java.io.OptionalDataException > at org.openejb.client.JNDIContext.authenticate(JNDIContext.java: > 196) > at org.openejb.client.JNDIContext.getInitialContext > (JNDIContext.java:181) > > > any idea ? > -- > sincerely yours > M. H. Shamsi