geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Bohn <joe.b...@earthlink.net>
Subject Re: JNDI lookup in trunk is broken?
Date Thu, 08 Feb 2007 18:02:09 GMT
Jarek,

Is this on tomcat?  I'm seeing some different jndi lookup problems with 
tomcat but not with jetty.

Joe


Jarek Gawor wrote:
>> 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