geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jarek Gawor" <jga...@gmail.com>
Subject Re: JNDI lookup in trunk is broken?
Date Thu, 08 Feb 2007 18:05:08 GMT
That was with Jetty :)

Jarek

On 2/8/07, Joe Bohn <joe.bohn@earthlink.net> wrote:
> 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