Did you set Context.INITIAL_CONTEXT_FACTORY and Context.PROVIDER_URL when
obtaining InitialContext?

On Mon, 11 Sep 2000, Balasubrahmanyam wrote:

> I am using WebLogic 5.1 application server.
>
> -----Original Message-----
> From: Ashwani Kalra [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 11, 2000 5:55 AM
> To: [EMAIL PROTECTED]
> Subject:
>
>
> which application server you are using . Each has its own way of lookup.
>
> > ----------
> > From:         Balasubrahmanyam[SMTP:[EMAIL PROTECTED]]
> > Reply To:     A mailing list for Enterprise JavaBeans development
> > Sent:         Saturday, September 09, 2000 9:59 AM
> > To:   [EMAIL PROTECTED]
> > Importance:   High
> >
> > Hi All,
> >
> >         I have deployed the bean and it is successful. But I am getting
> > this
> > error while trying to run the Client in Solaris. Can you guide me?
> >
> > javax.naming.NoInitialContextException: Need to specify class name in
> > environment or system property, or as an applet parameter, or in an
> > application resource file:  java.naming.factory.initial
> >         at java.lang.Throwable.fillInStackTrace(Native Method)
> >         at java.lang.Throwable.<init>(Throwable.java:94)
> >         at java.lang.Exception.<init>(Exception.java:42)
> >         at javax.naming.NamingException.<init>(NamingException.java:104)
> >         at
> > javax.naming.NoInitialContextException.<init>(NoInitialContextException.ja
> > va
> > :58)
> >         at
> > javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:649)
> >         at
> > javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242)
> >         at
> > javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:279
> > )
> >         at javax.naming.InitialContext.lookup(InitialContext.java:349)
> >         at BaluHello.HelloClient.main(HelloClient.java:19)
> >
> > Thanks in Advance,
> > Balu.
> >
> > ==========================================================================
> > =
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> > body
> > of the message "signoff EJB-INTEREST".  For general help, send email to
> > [EMAIL PROTECTED] and include in the body of the message "help".
> >
> >
> >
> Visit http://www.NetVarsity.com for online learning
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff EJB-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff EJB-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to