Christophe,
The JNDI implemetation is different for each server. EJB servers are required to
implenet JNDI, but how, is not specified. Hence you need to include for your client
the JNDI specific info (Simmilar to jdbc). You need to add to your client classpath
the following *.jar inside JBOSS_HOME/client:
1. jnp-client.jar
2. jboss-client.jar
this shuld take care of your problem.
Rolando Rivera "El Matador"
---------- Original Message ----------------------------------
From: Christophe Demez <[EMAIL PROTECTED]>
Reply-To: "jBoss" <[EMAIL PROTECTED]>
Date: Fri, 22 Dec 2000 10:51:40 +0100
>Hi,
>
>I have create a class that need to acces a remote EJB, during the creation
>of the InitialContext I have
>a ClassNotFoundError.
>
> tProperties.put(Context.INITIAL_CONTEXT_FACTORY,
>"org.jnp.interfaces.NamingContextFactory");
> tProperties.put("java.naming.factory.url.pkgs", "org.jboss.naming");
> tProperties.put(Context.PROVIDER_URL, "http://bf_ws_tst3:1099");
>
> //----
> return new InitialContext( tProperties );
>
>The class "org.jnp.interfaces.NamingContextFactory" is not found !
>
>So, it sounds that I need to include this class on the client !!!!
>So, the client is linked to a server specific class, it sounds that it is
>not really good !
>Why do I need to include this class ?
>
>Thanks a lot for your help
>
>Christophe
>
>
>--
>--------------------------------------------------------------
>To subscribe: [EMAIL PROTECTED]
>To unsubscribe: [EMAIL PROTECTED]
>List Help?: [EMAIL PROTECTED]
>
>
--
Rolando Rivera
CYMSoft Enterprise Architect
--
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]