Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 64621 invoked from network); 8 Feb 2007 16:48:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Feb 2007 16:48:24 -0000 Received: (qmail 5789 invoked by uid 500); 8 Feb 2007 16:48:29 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 5690 invoked by uid 500); 8 Feb 2007 16:48:28 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 5679 invoked by uid 99); 8 Feb 2007 16:48:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Feb 2007 08:48:28 -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 jgawor@gmail.com designates 66.249.92.174 as permitted sender) Received: from [66.249.92.174] (HELO ug-out-1314.google.com) (66.249.92.174) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Feb 2007 08:48:19 -0800 Received: by ug-out-1314.google.com with SMTP id m2so679988ugc for ; Thu, 08 Feb 2007 08:47:57 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=UekSdhnK9iuJUPQnYNE6dJ8bakl5A6TiMmDpjIqJmKdf5JSFP4LqDhy4MP1D5KEMBg5d7UiZC8bvb1bs84RatIQXsMJVl4jj9TQCw24T+mV0r06lg166eX6XI193EvqAUv/oy9FMteej9R2XkKGI9NvVFupkZajhe8UkLDQulQU= Received: by 10.78.134.12 with SMTP id h12mr14431hud.1170953266174; Thu, 08 Feb 2007 08:47:46 -0800 (PST) Received: by 10.78.187.18 with HTTP; Thu, 8 Feb 2007 08:47:46 -0800 (PST) Message-ID: <5eb405c70702080847p26f2b4aaqdeb5fa1d5290cacd@mail.gmail.com> Date: Thu, 8 Feb 2007 11:47:46 -0500 From: "Jarek Gawor" To: dev@geronimo.apache.org Subject: JNDI lookup in trunk is broken? MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org >From within a JSP, I'm doing: Context ctx = new InitialContext(); ctx = (Context) ctx.lookup("java:comp/env"); and I get: Caused by: javax.naming.NamingException [Root exception is java.lang.NullPointerException] at javax.naming.spi.NamingManager.getURLObject(NamingManager.java:588) at javax.naming.spi.NamingManager.getURLContext(NamingManager.java:533) at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:279) at javax.naming.InitialContext.lookup(InitialContext.java:351) at org.apache.jsp.StaxJSP_jsp._jspService(StaxJSP_jsp.java:71) ... 27 more Caused by: java.lang.NullPointerException at org.apache.openejb.core.ivm.naming.java.javaURLContextFactory.getContext(javaURLContextFactory.java:72) at org.apache.openejb.core.ivm.naming.java.javaURLContextFactory.getObjectInstance(javaURLContextFactory.java:45) at javax.naming.spi.NamingManager.getURLObject(NamingManager.java:584) ... 31 more Jarek