Scot Bellamy writes:
 > Pedro wrote:
 > 
 > > Hi
 > >
 > > when i run the InterestClient in remote machine
 > >
 > > javax.naming.NoInitialContextException: Cannot instantiate class:
 > > org.jnp.interfaces.NamingContextFactory [Root exception is
 > > java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory]
 > >
 > > What's happening ?
 > >
 > > --
 > > --------------------------------------------------------------
 > > To subscribe:        [EMAIL PROTECTED]
 > > To unsubscribe:      [EMAIL PROTECTED]
 > > Problems?:           [EMAIL PROTECTED]
 > 
 > Yep, this is a familiar one.
 > 
 > you need to make sure that the jnp-client.jar is in your classpath when
 > running your client.  This jar file is found in the client subdirectory of
 > your jBoss installation

or set your contextclassloader with something like:

URL[] urls = new URL[1];
urls[0] = new URL( "http://jboss-host:8083/" );
Thread.currentThread().setContextClassLoader( new URLClassLoader( urls ) );

Tom
-- 
Tom Cook - Software Operations

"We rarely find that people have good sense unless they agree
 with us."
                - Francois, Duc de la Rochefoucauld

LISAsoft Pty Ltd - www.lisa.com.au

--------------------------------------------------
38 Greenhill Rd.          Level 3, 228 Pitt Street
Wayville, SA, 5034        Sydney, NSW, 2000

Phone:   +61 8 8272 1555  Phone:   +61 2 9283 0877
Fax:     +61 8 8271 1199  Fax:     +61 2 9283 0866
--------------------------------------------------


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

Reply via email to