Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 1964 invoked from network); 6 Apr 2008 14:53:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Apr 2008 14:53:56 -0000 Received: (qmail 12838 invoked by uid 500); 6 Apr 2008 14:53:55 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 12824 invoked by uid 500); 6 Apr 2008 14:53:55 -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 12813 invoked by uid 99); 6 Apr 2008 14:53:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Apr 2008 07:53:55 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of learn.koa@gmail.com designates 209.85.146.180 as permitted sender) Received: from [209.85.146.180] (HELO wa-out-1112.google.com) (209.85.146.180) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Apr 2008 14:53:14 +0000 Received: by wa-out-1112.google.com with SMTP id j4so941322wah.1 for ; Sun, 06 Apr 2008 07:53:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=a7zHGtKA6O1ZOrcyAk897ALQVPtCjbreJ9U44hShoYo=; b=kP1tdpFdTQJ/aZQ0gRr0BRuaXwwhSxjzieXQ6M/o0ztW/VEbfBzqJPQRVC3+byMTPbUYCyzhOB4zGvg/CPPwk2uqZscq0PXzFXTsn3UYoBNozJSFWYZ1Lg7ACQCUMiQwjDNJoMUR2WKMwpawm4rEQ68gKaWphGh+lJjbjmrFwZM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=d1BgJHautOqKWZIlgsDs+OMQvzYvYetLko+yDNpvdoMqtHERbJ0AKfJR3zB45WR+IQgt7PkD54j4yAEH8eb+7SJ2ol5kVeZB3OYLXiNTJz5RiMDTO4zVIO7+3AycH7hqxb28iV9srZerle/caedoemidg2Q57g6svNi7U/FHzFs= Received: by 10.114.88.1 with SMTP id l1mr4752093wab.126.1207493606431; Sun, 06 Apr 2008 07:53:26 -0700 (PDT) Received: by 10.114.127.19 with HTTP; Sun, 6 Apr 2008 07:53:26 -0700 (PDT) Message-ID: Date: Sun, 6 Apr 2008 22:53:26 +0800 From: CG To: user@geronimo.apache.org Subject: problem JNDI lookup in geronimo MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org Hi, I am facing problem in using JNDI to do lookup. I have tried to solve several problem using google before hitting this I have materialType.properties and jndi.properties file deployed in geronimo materialType.properties ================ jndi.process.ejb = java:comp/env/ejb/MaterialTestBean jndi.properties ============ java.naming.factory.initial=org.openejb.client.RemoteInitialContextFactory java.naming.provider.url=localhost:4201 java.naming.security.principal=system java.naming.security.credentials=manager The problem I face seems like not able to find the class org.openejb.client.RemoteInitialContextFactory . I think the reason should be openejb library missing or invalid but I can't figure out where the openejb library in geronimo .. Any help is appreciated , thanks. Error msg ========= javax.naming.NoInitialContextException: Cannot instantiate class: org.openejb.client.RemoteInitialContextFactory [Root exception is java.lang.ClassNotFoundException: org.openejb.client.RemoteInitialContextFactory] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288) at javax.naming.InitialContext.init(InitialContext.java:223) at javax.naming.InitialContext.(InitialContext.java:175) at test.com.quesofttech.FirstEJB3TutorialClient.main(FirstEJB3TutorialClient.java:39) Caused by: java.lang.ClassNotFoundException: org.openejb.client.RemoteInitialContextFactory :: InitialContext context; MaterialTestBeanRemote beanRemote = null; ResourceBundle bundle = null; bundle = ResourceBundle.getBundle("materialType", Locale.getDefault(), FirstEJB3TutorialClient.class.getClassLoader()); String jndiName = bundle.getString("jndi.process.ejb"); try { context = new InitialContext(); beanRemote = (MaterialTestBeanRemote) context.lookup(MaterialTestBean.RemoteJNDIName); beanRemote.testMaterial(); beanRemote.testMaterialType(); }