tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitri Colebatch <...@bigpond.net.au>
Subject Re: Initialcontext problem
Date Wed, 03 Oct 2001 11:24:42 GMT
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 <dim@bigpond.net.au>
> To: <tomcat-user@jakarta.apache.org>
> 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
> > >
> > >
> > >
> > >
> > >
> >
> >
> 
> 


Mime
View raw message