• Post Reply Bookmark Topic Watch Topic
  • New Topic

JNDI object missing!!! Please help me find it :|

 
alok khemka
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i am using j2ee1.4 app serv and created a JMS connection factory with the JNDI name of "jms/QueueConnectionFactory". when i try to get the factory in my app client with the following code:
Hashtable prop = new Hashtable();
prop.put("java.naming.factory.initial", "com.sun.jndi.cosnaming.CNCtxFactory");
prop.put("java.naming.provider.url", "iiop://localhost:3700");

Context ctx = new InitialContext(prop);
Object objRef = ctx.lookup("jms/QueueConnectionFactory");
i get an error saying:

javax.naming.NameNotFoundException [Root exception is org.omg.CosNaming.NamingContextPackage.NotFoun
d: IDL mg.org/CosNaming/NamingContext/NotFound:1.0]
at com.sun.jndi.cosnaming.ExceptionMapper.mapException(ExceptionMapper.java:44)
at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:453)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:492)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:470)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at Temp.main(Temp.java:22)
Caused by: org.omg.CosNaming.NamingContextPackage.NotFound: IDL mg.org/CosNaming/NamingContext/NotF
ound:1.0
at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHelper.java:72)
at org.omg.CosNaming._NamingContextExtStub.resolve(_NamingContextExtStub.java:406)
at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:440)
... 4 more
I am fighting with this for a long time and am still clueless about where did the factory object go in the JNDI maze!!!
help me find it!!! any help is really appriciated
alok
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!