Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 413 invoked by uid 500); 1 Oct 2001 14:29:54 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 387 invoked from network); 1 Oct 2001 14:29:54 -0000 Subject: Re: pulling my hair out re: EJB in tomcat To: tomcat-user@jakarta.apache.org X-Mailer: Lotus Notes Release 5.0.5 September 22, 2000 Message-ID: From: mlamb@roinet.com Date: Mon, 1 Oct 2001 10:29:24 -0400 X-MIMETrack: Serialize by Router on Corporate/ROI/US(Release 5.0.6a |January 17, 2001) at 10/01/2001 10:29:56 AM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N >On Fri, 28 Sep 2001 mlamb@roinet.com wrote: > >> Now I just keep getting the "java.lang.ClassCastException: >> javax.naming.NameClassPair" on the sample's line: >> >> Object ref = jndiContext.lookup("interest/Interest"); > >are you actually getting the classcast there? or on a subsequent line >where its something like > > InterestHome iHome = (InterestHome) ref; > >? Does doing a > > InterestHome iHome = (InterestHome) PortableRemoteObject.narrow( > jndiContext.lookup("interest/Interest"), > InterestHome.class); Unfortunately, it's definitely happening during the lookup. If the lookup were to succeed, it would continue t0: InterestHome home = (InterestHome) PortableRemoteObject.narrow(ref, InterestHome.class); But it's not getting there. - Marty