geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jarek Gawor" <jga...@gmail.com>
Subject JNDI lookup in trunk is broken?
Date Thu, 08 Feb 2007 16:47:46 GMT
>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

Mime
View raw message