• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

jndi lookup problem....

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic