Christophe Demez wrote:
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

You can find that class in the directory "client" under the jboss distribution.
The client need that classes, among others in that directory, to access to JNDI registered resources.
Hope this helps (and hope it's right !!!!)
  Fabrizio
-- 
/--------------------------------------------------------\
| Fabrizio Sciarra              |  Sistema               |
| via Resistenza, 59            |  Information Systems   |
| 19033 Molicciara (SP) ITALY   |  via U. Bassi, 54      |
| mailto:[EMAIL PROTECTED]    |  58100 Grosseto ITALY  |
| mailto:[EMAIL PROTECTED]        |                        |
| phone: +39 0187 693138        |  http://www.sistema.it |
\--------------------------------------------------------/
 


Reply via email to