To add some more info:
In the client code, if I use empty properties object (from what I understand 
about InitialContext constructor it is supposed to read the resource file 
jndi.properties) then I get the following exception:
javax.naming.NamingException: Error accessing repository: Cannot connect to 
ORB
        at com.sun.enterprise.naming.EJBCtx.<init>(EJBCtx.java:51)
etc.
and if I put to properties the following:
(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory") 
then I get the exception described earlier.
Help please!

>From: "Indigo Blue" <[EMAIL PROTECTED]>
>Reply-To: "jBoss" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: [jBoss-User] Classpath
>Date: Tue, 16 May 2000 15:29:00 GMT
>
>Hi all,
>When I try to run a client application for my bean, I cannot get the
>InitialContext at all. I keep getting the following:
>javax.naming.NoInitialContextException: Cannot instantiate class:
>org.jnp.interfaces.NamingContextFactory.  Root exception is
>java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory
>Can anyone tell me do I need to add something to the classpath?
>Thanks in advance.
>Ina
>________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
>
>
>--
>--------------------------------------------------------------
>To subscribe:        [EMAIL PROTECTED]
>To unsubscribe:      [EMAIL PROTECTED]
>Problems?:           [EMAIL PROTECTED]
>

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to