• Post Reply Bookmark Topic Watch Topic
  • New Topic

jndi lookup problem....  RSS feed

 
abhishek kunal
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hii. i am simply trying to access a deployed bean in IBM websphere,but i don't want to embed the naming server details in the client code,i want it to be there in a jndi.properties file...and i have done so.... the contents of jndi.properties are as follows.....

Context.INITIAL_CONTEXT_FACTORY=com.ibm.websphere.naming.WsnInitialContexDirecotory
Context.PROVIDER_URL=corbaloc:iiop:localhost:2809

and i have added the location of this file into the classpath, but the jre does'nt seem to finding this...and here is what i get as error message....

javax.naming.NoInitialContextException cannot instantiate class: org.jboss.iiop.naming.ORBInitialContextFactory[root exception is NoClassFoundException]......


please help...

 
Eddi Alfare
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you get a ClassNotFoundException, this means the jar containing the org.jboss.iiop.naming.ORBInitialContextFactory class is not in your client's classpath.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!