• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JNDI Lookup Error on Sun One Application Seerver.

Karan V Praba
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am using Sun One Application Server.
When I try to run my JMS Client application (Simple application which used to send and receive Messages) I am getting the following error.

{java.naming.provider.url=iiop://localhost:3700, java.naming.factory.initial=com.sun.jndi.cosnaming.CNCtxFact
javax.naming.NameNotFoundException [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL mg.org/CosNa
at com.sun.jndi.cosnaming.ExceptionMapper.mapException(Unknown Source)
at com.sun.jndi.cosnaming.CNCtx.callResolve(Unknown Source)
at com.sun.jndi.cosnaming.CNCtx.lookup(Unknown Source)
at com.sun.jndi.cosnaming.CNCtx.lookup(Unknown Source)
at javax.naming.InitialContext.lookup(Unknown Source)
at MessageSender.sendMessage(MessageSender.java:130)
at MessageSender.startMeessageSender(MessageSender.java:90)
at SDPSimulator.main(SDPSimulator.java:66)
Caused by: org.omg.CosNaming.NamingContextPackage.NotFound: IDL mg.org/CosNaming/NamingContext/NotFound:1.0
at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(Unknown Source)
at org.omg.CosNaming._NamingContextExtStub.resolve(Unknown Source)
... 7 more
JNDI API lookup failed: javax.naming.NameNotFoundException [Root exception is org.omg.CosNaming.NamingContextPackage.Not
Found: IDL mg.org/CosNaming/NamingContext/NotFound:1.0]

Please let me know how to resolve this error.
Its bugging my head from last two days
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic