Return-Path: X-Original-To: apmail-geronimo-user-archive@www.apache.org Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C9CE874CB for ; Sat, 22 Oct 2011 16:12:08 +0000 (UTC) Received: (qmail 31834 invoked by uid 500); 22 Oct 2011 16:12:08 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 31808 invoked by uid 500); 22 Oct 2011 16:12: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 31801 invoked by uid 99); 22 Oct 2011 16:12:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Oct 2011 16:12:08 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=FREEMAIL_FROM,FREEMAIL_REPLYTO,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.138.90.153] (HELO nm5-vm2.bullet.mail.ne1.yahoo.com) (98.138.90.153) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 22 Oct 2011 16:11:58 +0000 Received: from [98.138.90.48] by nm5.bullet.mail.ne1.yahoo.com with NNFMP; 22 Oct 2011 16:11:37 -0000 Received: from [98.138.89.174] by tm1.bullet.mail.ne1.yahoo.com with NNFMP; 22 Oct 2011 16:11:37 -0000 Received: from [127.0.0.1] by omp1030.mail.ne1.yahoo.com with NNFMP; 22 Oct 2011 16:11:37 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 505592.14415.bm@omp1030.mail.ne1.yahoo.com Received: (qmail 54076 invoked by uid 60001); 22 Oct 2011 16:11:37 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1319299897; bh=2pJ/c+oMjJb5yy1HsU4c6aOe9rJoqmNZaGOihbrMq10=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=u/0iOj9gRXfp/P2GO4uwCeKWD3Q6LxpgCwVGusFbrNM8xEini83UVFEtxl7DPIv0pcIoifezj+NVoSptVW35PpSsMHti0yYNqqgIKM1ELhnb7Y1VdJ1YHe44LskwIJzMkeqF0FYTqjIA1I999v0F8K14fB4tGGzqBLJoHbwH54Y= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=V+I2HtZ9MNdjh3sROH/M28ZzIarEhiGsa1QotLIgkxcde34QlNeBdIYRpaAMPw5oRDpZNt/Kdxsc7dRKzmmMfA8WWP030a3vurx187m5TaqH5SP/7VKD9ioy17uK/jpO5F2joD3R4JtSTclPoQPYffJDdzmSb9wk8quc/Si+Klo=; X-YMail-OSG: MYknf7AVM1mViyLqiHH6LP9E_GMtfwlKGQSkB_EXXKAwQP5 G9qE92J25IqgS10JGdHKf7AiPBjzRI.NyFhEbUyGluv9dGzvJvH_GMWhVHAh NUgjWa_OIlnIFCHiRxpWKBSyBEZpnp9yAo1EpoEKUSrSghESF9EaOR2PCLlM Dxxt.Z0bZk.QJzyYX6yLpB1RS0fPUqb3yt_TreK3HGWlFJO9VEe7cgFKE67P aE5CK.LxMkth1VUe5Sws0Byuma7EKY_4UIreX5Iud4QPh2APGA14ABz47BqR 7ieer.CXN0xwTMR2LecfkKZ0GUGL8hrOJDuKPYETUJppcVOMTFLIAcprxIxR k9R5yx547tSPywqF__gYgWCVBoUxGjsiiipmxU_YSANFjAJzcHB9GNV2VGr7 sXI_UUH3gSMRW9fER_kTaolz1nnDlDwXPfIusd_sr.SyRRn9XQH_VNPxhXCa dAGHzrWQ- Received: from [124.15.192.137] by web126107.mail.ne1.yahoo.com via HTTP; Sat, 22 Oct 2011 09:11:36 PDT X-Mailer: YahooMailWebService/0.8.114.317681 References: <1319269213.74906.YahooMailNeo@web126117.mail.ne1.yahoo.com> Message-ID: <1319299896.54072.YahooMailNeo@web126107.mail.ne1.yahoo.com> Date: Sat, 22 Oct 2011 09:11:36 -0700 (PDT) From: Da Feng Reply-To: Da Feng Subject: Re: can't find java:comp in application client To: "user@geronimo.apache.org" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi:=0AI find the harmony implementation of java.lang.InheritableThreadLocal= has a bug. I=A0 fixed it. Thanks, that wiki has a problem, only JMX servic= e need harmony rmi jndi, normal jndi doesn't need to be changed.=0A=A0=0A= =0ADaFENG=0ACoder=0ATelecommunication && Network Industry=0AGmail:sunspider= X@gmail.com=0A=0A=0A=0A________________________________=0AFrom: Ivan =0ATo: user@geronimo.apache.org; Da Feng = =0ASent: Saturday, October 22, 2011 5:33 PM=0ASubject: Re: can't find java:= comp in application client=0A=0A=0AI have not tried to run Geronimo on Harm= ony, but from the stack trace, the client application should use the in-vm = xbean jndi impl to look up the java:comp namespace.=0A=0A=0A2011/10/22 Da F= eng =0A=0AHi:=0A>I configure geronimo to run on harmony= lib. The VM is JikesRVM. I followed geronimo over harmony guide, and chang= ed JNDI, used harmony provider in rmi-naming and client module. Application= client still can't find java:comp env.=0A>=0A>=0A>=0A>=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A>=0A>Excepti= on initializing client: javax.naming.NameNotFoundException: Name is not bou= nd: java:comp [Root exception is java.rmi.NotBoundException: Name java:comp= is not associated with any remote reference.]javax.naming.NameNotFoundExce= ption: Name is not bound: java:comp [Root exception is java.rmi.NotBoundExc= eption: Name java:comp is not associated with any remote reference.]=0A>=A0= =A0=A0 at org.apache.harmony.jndi.provider.rmi.registry.RegistryContext.loo= kup(RegistryContext.java:227)=0A>=A0=A0=A0 at org.apache.harmony.jndi.provi= der.rmi.registry.RegistryContext.lookup(RegistryContext.java:238)=0A>=A0=A0= =A0 at javax.naming.InitialContext.lookup(InitialContext.java:403)=0A>=A0= =A0=A0 at org.apache.geronimo.client.StaticJndiContextPlugin.startClient(St= aticJndiContextPlugin.java:44)=0A>=A0=A0=A0 at org.apache.geronimo.client.A= ppClientContainer.main(AppClientContainer.java:128)=0A>=A0=A0=A0 at org.jik= esrvm.classloader.ReflectionBase$$Reflect94501.invokeInternal(Unknown Sourc= e)=0A>=A0=A0=A0 at org.jikesrvm.runtime.ReflectionBase.invoke(ReflectionBas= e.java:180)=0A>=A0=A0=A0 at org.jikesrvm.runtime.Reflection.invoke(Reflecti= on.java:72)=0A>=A0=A0=A0 at java.lang.reflect.VMCommonLibrarySupport.invoke= Virtual(VMCommonLibrarySupport.java:233)=0A>=A0=A0=A0 at java.lang.reflect.= VMCommonLibrarySupport.invoke(VMCommonLibrarySupport.java:174)=0A>=A0=A0=A0= at java.lang.reflect.Method.invoke(Method.java:397)=0A>=A0=A0=A0 at org.ap= ache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethod= Invoker.java:34)=0A>=A0=A0=A0 at org.apache.geronimo.gbean.runtime.GBeanOpe= ration.invoke(GBeanOperation.java:124)=0A>=A0=A0=A0 at org.apache.geronimo.= gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867)=0A>=A0=A0=A0 at = org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)= =0A>=A0=A0=A0 at org.dacapo.daytrader.DaCapoClientRunner.initialize(DaCapoC= lientRunner.java:49)=0A>=A0=A0=A0 at org.jikesrvm.classloader.ReflectionBas= e$$Reflect50658.invokeInternal(Unknown Source)=0A>=A0=A0=A0 at org.jikesrvm= .runtime.ReflectionBase.invoke(ReflectionBase.java:180)=0A>=A0=A0=A0 at org= .jikesrvm.runtime.Reflection.invoke(Reflection.java:72)=0A>=A0=A0=A0 at jav= a.lang.reflect.VMCommonLibrarySupport.invokeStatic(VMCommonLibrarySupport.j= ava:203)=0A>=A0=A0=A0 at java.lang.reflect.VMCommonLibrarySupport.invoke(VM= CommonLibrarySupport.java:172)=0A>=A0=A0=A0 at java.lang.reflect.Method.inv= oke(Method.java:397)=0A>=A0=A0=A0 at org.dacapo.daytrader.Launcher.initiali= ze(Launcher.java:77)=0A>=A0=A0=A0 at org.jikesrvm.classloader.ReflectionBas= e$$Reflect27057.invokeInternal(Unknown Source)=0A>=A0=A0=A0 at org.jikesrvm= .runtime.ReflectionBase.invoke(ReflectionBase.java:180)=0A>=A0=A0=A0 at org= .jikesrvm.runtime.Reflection.invoke(Reflection.java:72)=0A>=A0=A0=A0 at jav= a.lang.reflect.VMCommonLibrarySupport.invokeStatic(VMCommonLibrarySupport.j= ava:203)=0A>=A0=A0=A0 at java.lang.reflect.VMCommonLibrarySupport.invoke(VM= CommonLibrarySupport.java:172)=0A>=A0=A0=A0 at java.lang.reflect.Method.inv= oke(Method.java:397)=0A>=A0=A0=A0 at org.dacapo.harness.Tradebeans.prepare(= Tradebeans.java:49)=0A>=A0=A0=A0 at org.dacapo.harness.Benchmark.run(Benchm= ark.java:144)=0A>=A0=A0=A0 at org.dacapo.harness.TestHarness.runBenchmark(T= estHarness.java:221)=0A>=A0=A0=A0 at org.dacapo.harness.TestHarness.main(Te= stHarness.java:174)=0A>=A0=A0=A0 at Harness.main(Harness.java:17)=0A>Caused= by: java.rmi.NotBoundException: Name java:comp is not associated with any = remote reference.=0A>=A0=A0=A0 at org.apache.harmony.rmi.registry.RegistryI= mpl.lookup(RegistryImpl.java:194)=0A>=A0=A0=A0 at org.jikesrvm.classloader.= ReflectionBase$$Reflect59359.invokeInternal(Unknown Source)=0A>=A0=A0=A0 at= org.jikesrvm.runtime.ReflectionBase.invoke(ReflectionBase.java:180)=0A>=A0= =A0=A0 at org.jikesrvm.runtime.Reflection.invoke(Reflection.java:72)=0A>=A0= =A0=A0 at java.lang.reflect.VMCommonLibrarySupport.invokeVirtual(VMCommonLi= brarySupport.java:233)=0A>=A0=A0=A0 at java.lang.reflect.VMCommonLibrarySup= port.invoke(VMCommonLibrarySupport.java:174)=0A>=A0=A0=A0 at java.lang.refl= ect.Method.invoke(Method.java:397)=0A>=A0=A0=A0 at org.apache.harmony.rmi.r= emoteref.UnicastServerRef.processCall(UnicastServerRef.java:436)=0A>=A0=A0= =A0 at org.apache.harmony.rmi.server.ServerConnection$1.run(ServerConnectio= n.java:173)=0A>=A0=A0=A0 at java.security.AccessController.doPrivileged(Acc= essController.java:294)=0A>=A0=A0=A0 at org.apache.harmony.rmi.server.Serve= rConnection.run(ServerConnection.java:162)=0A>=A0=A0=A0 at java.lang.Thread= .run(Thread.java:797)=0A>=A0=A0=A0 at org.apache.harmony.rmi.client.ClientR= emoteCall.getExceptionFromServer(ClientRemoteCall.java:256)=0A>=A0=A0=A0 at= org.apache.harmony.rmi.client.ClientRemoteCall.executeCall(ClientRemoteCal= l.java:191)=0A>=A0=A0=A0 at org.apache.harmony.rmi.remoteref.UnicastRef.inv= oke(UnicastRef.java:262)=0A>[Ljava.lang.StringEditor;=0A>=A0=A0=A0 at org.a= pache.harmony.rmi.remoteref.UnicastRef.invoke(UnicastRef.java:152)=0A>=A0= =A0=A0 at org.apache.harmony.rmi.registry.RegistryImpl_Stub.lookup(Registry= Impl_Stub.java:136)=0A>=A0=A0=A0 at org.apache.harmony.jndi.provider.rmi.re= gistry.RegistryContext.lookup(RegistryContext.java:224)=0A=0A=0A-- =0AIvan