Dear Dim, Thanks for ur help, in the meantime i studied the InitialContext Class and found that passing null in new InitialContext Means that the ResourceManager will look for some property file in Java_home/lib , so i created one property file (jndi.properties) there, for the parameters which earlier i was trying to do in HashTable only and with all ur advise and directions the thing started working.
Still i am facing some problem in looking up beans, i feel they are not deployed properly and is a minor issue now, if u still have some suggestions u can send me ur thoughts. ------ I am getting NamingException ----- best regards asheesh ----- Original Message ----- From: Dmitri Colebatch <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 03, 2001 7:24 PM Subject: Re: Initialcontext problem > The construction of an InitialContext will look for system properties: > > java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory > java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces > java.naming.provider.url=localhost > > The above values are for use with JBoss, but essentially those properties > should be set for the InitialContext constructor to work. What I would do > is a System.getProperty() for each of the above property and see what the > values are. I suspect that the values specify a JNDI implementation that > you might have downloaded on trial, and the trial period has > expired... does that make sense? > > let me know > > hth > dim > > > On Wed, 3 Oct 2001, asheesh wrote: > > > Thanks for ur reply, but i am sorry to say that i am not getting to it, as > > far as i know following command does not req. any property file. > > > > Now my problem is as soon as i try to create refrence of Context using > > InitialContext, Tomcat stops with the one line message and there are no > > details in any of the log files too. > > > > Do u have anyother comments or suggestions, or Pls. let me know how to > > proceed. My immediate aim is to execute following line of code on Linux. > > > > Context ctx = new InitialContext(); > > then i can initialize my context with HashTable or Some property file. > > > > thanks !! > > > > regards > > asheesh > > > > > > ----- Original Message ----- > > From: Dmitri Colebatch <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Wednesday, October 03, 2001 4:59 PM > > Subject: Re: Initialcontext problem > > > > > > > What environment variables are you setting for JNDI? Do you have a > > > jndi.properties file in your classpath? > > > > > > cheers > > > dim > > > > > > On Wed, 3 Oct 2001, asheesh wrote: > > > > > > > Dear all > > > > > > > > i am posting it for 3rd time, let me know if anyone can help me in this. > > > > > > > > I am running tomcat3.2.3 on Linux with Borland Application Server. My > > whole > > > > code was working fine on NT platform, but when i shifted the thing to > > Linux, > > > > at the time of execution of command > > > > > > > > Context ctx = new InitialContext(); > > > > The server returns an error License Expired, and stops, and there is > > no > > > > additional information for this. > > > > > > > > What could be the possible cause? I tried to look around this but could > > not > > > > find document or help material. Also to point out that I don't have any > > exp. > > > > on linux. > > > > > > > > If someone is running same setup with any of the EJB Containers pls. do > > let > > > > me know if this command works fine or what i am overlooking. It may be > > some > > > > OS security constraints which are causing this problem. > > > > > > > > thanks in advance!!! > > > > > > > > regards > > > > asheesh > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >