• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Hi there

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm trying to run a stand-alone client from the command prompt that accesses an ELB that I've created but I'm getting a NoInitialContextException on java.naming.factory.initial.
I've checked my CLASSPATH and I seem to have all of the relevant jar files there (j2ee.jar, ldapbp.jar, providerutil.jar, jaas.jar and ldap.jar ar all there). Now I'm just stumped. I thought that the java.naming properties were set in the j2ee.jar?
Cheers for any help.
Jimbo
 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually, during init of InitialContext object it trying to find address and
port where to connect in order to recieve access JNDI server.
You can see description here:
http://java.sun.com/j2se/1.4.1/docs/api/javax/naming/InitialContext.html
Usually you have to set up two properties (java -D<prop_name>=<prop_value> .....)
java.naming.provider.url - URL of the server like tcp://localhost:3035
java.naming.factory.initial - Class name of JNDI factory like org.exolab.jms.jndi.InitialContextFactory
Br
Renat
 
My name is Inigo Montoya, you killed my father, prepare to read a tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic