Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 21971 invoked from network); 13 Nov 2006 10:02:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Nov 2006 10:02:09 -0000 Received: (qmail 33565 invoked by uid 500); 13 Nov 2006 10:02:17 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 33544 invoked by uid 500); 13 Nov 2006 10:02:17 -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 33533 invoked by uid 99); 13 Nov 2006 10:02:17 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Nov 2006 02:02:17 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of willi.nuesser@gmx.net designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 13 Nov 2006 02:02:03 -0800 Received: (qmail invoked by alias); 13 Nov 2006 10:01:42 -0000 Received: from p548B46FA.dip0.t-ipconnect.de (EHLO [192.168.0.2]) [84.139.70.250] by mail.gmx.net (mp033) with SMTP; 13 Nov 2006 11:01:42 +0100 X-Authenticated: #17383359 From: Willi =?iso-8859-1?q?N=FC=DFer?= Reply-To: wilhelm.nuesser@fhdw.de To: "Manu George" Subject: Re: ClassCastException in org.openejb.client.CgLibProxy Date: Mon, 13 Nov 2006 11:04:06 +0100 User-Agent: KMail/1.9.1 Cc: user@geronimo.apache.org, reich@hs-furtwangen.de References: <466797bd0611122254l3fd092ady731bf17928858ce6@mail.gmail.com> In-Reply-To: <466797bd0611122254l3fd092ady731bf17928858ce6@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200611131104.06660.willi.nuesser@gmx.net> X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org Christoph, Manu thanks for your reply. To Manu:=20 Geronimo reports the Application to be running in the console. Furthermore: the usual JNDI naming problems were solved before. So I can't see any connection to 2297. But perhaps I'm only looking at the wrong places ... To Chris: the ejb-bar.xml seems to give the correct information. It is appended below. Best Willi =3D=3D=3D ejb-jar.xml =3D=3D=3D J2EE Hello-Beispiel J2EEHelloBean Eine triviale EJB HelloBean HelloBean HelloBean echo.HelloBeanHome echo.HelloBeanRemote echo.HelloBeanLocalHome echo.HelloBeanLocal echo.HelloBean Stateless Container Am Montag, 13. November 2006 07:54 schrieb Manu George: > Hi, > Check whether it is because of this issue > http://issues.apache.org/jira/browse/GERONIMO-2297 >=20 > Thanks > Manu >=20 >=20 > On 11/12/06, Christoph Reich wrote: > > Hi Willi, > > > > your client looks good to me. Have you checked, that you are > > using remote and remote-home interfaces in the EJB? If you > > are using lokal interfaces I think you get a similar error > > message > > > > Cheers, > > Chris > > > > On Fri, 10 Nov 2006 14:36:25 +0100, Willi N=FC=DFer wrote > > > Hi all, > > > > > > I know it must be something trivial (config ...) but I'm at a loss. > > > Can't find anything related in the web, groups etc. > > > > > > The problem: > > > running a very simple standalone HelloWorld client against > > > a corresponding EJB app in Geronimo 1.1.1 gives > > > the following error message: > > > > > > > java echo.client.SayHelloClient > > > java.lang.ClassCastException: > > org.openejb.client.CgLibProxy$$EnhancerByCGLIB$$28a286c9 > > > at > > > org.openejb.client.CgLibProxy$$EnhancerByCGLIB$$eaec4f0a.create() > > at =2E.. > > PS: > > Relevant source client code: > > > > private static final String PURE_JNDI_HELLOBEAN =3D "echo.HelloBean"; > > private static HelloBean hellobean; > > > > private static void getEJBReference () { > > > > =A0 Properties props =3D new Properties(); > > =A0 props.put("java.naming.factory.initial", > > =A0 =A0 =A0 =A0 =A0 =A0 =A0"org.openejb.client.RemoteInitialContextFact= ory"); > > =A0 props.put("java.naming.provider.url", "127.0.0.1:4201"); > > =A0 props.put("java.naming.security.principal", "system"); > > =A0 props.put("java.naming.security.credentials", "manager"); > > > > =A0 try { > > =A0 =A0 =A0javax.naming.InitialContext initialContext =3D > > =A0 =A0 =A0 =A0 new javax.naming.InitialContext(props); > > =A0 =A0 =A0Object objRef =3D initialContext.lookup(PURE_JNDI_HELLOBEAN); > > =A0 =A0 =A0HelloBeanHome hellobeanHome =3D (HelloBeanHome) > > =A0 =A0 =A0 =A0 =A0PortableRemoteObject.narrow(objRef, HelloBeanHome.cl= ass); > > >> crash here > > =A0 =A0 =A0hellobean =3D hellobeanHome.create(); > > =A0 } catch (Exception ex) { > > =A0 =A0 =A0ex.printStackTrace(); > > =A0 } > > > > =A0} > > > > --