[jboss-user] [EJB 3.0] - Re: InitialContext reference and definition

davestar do-not-reply at jboss.com
Tue Jan 20 15:17:02 EST 2009


Thanks Peter!
I no longer get the NoInitialContext exception.  
Now when I do a look up with the code
BurdenRateFacade bean = (BurdenRateFacade)context.lookup("BurdenRateFacade");

I get a Classcast exception.
java.lang.ClassCastException: org.jnp.interfaces.NamingContext

I did a context.lookup("BurdenRateFacade").getClass()
and it prints org.jnp.interfaces.NamingContext

I have the following entries in my jndi.properties
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
  | java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
  | java.naming.provider.url=jnp://localhost:1099

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4203404#4203404

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4203404



More information about the jboss-user mailing list