You need to use the 2.2.2 version to use the form of the jndi.properties
file
that uses the jnp protocol in the provider url. Change the
examples/resources/jndi.properties file to the following for earlier
versions:
resources 645>cat jndi.properties
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=localhost:1099
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
----- Original Message -----
From: "Alison Stevenson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 05, 2001 8:27 AM
Subject: [JBoss-user] Newbie Question: Compiling the test client
> Dear All,
>
> This is my first day with EJB & JBoss (running under Windows 2000). I'm
> working my way through the 'First Steps' tutorial and have come unstuck.
> Having deployed the 'Interest' EJB I am trying to compile the test client.
> However when I execute the following ant command:
> "ant intro-interest-client"
> the output reads get as far as
> "compile:
> interest-client:
> [java] Got context
> [java] javax.naming.ServiceUnavailableException: jnp [Root exception
is
> java.net.UnknownHostException: jnp]
> BUILD SUCCESSFUL"
>
> There is no output on the server console.
>
> Looking at the code in InterestClient.java it would seem that this is
where
> problems occur.
> "// Get a reference to the Interest Bean
> Object ref = jndiContext.lookup("interest/Interest");
> System.out.println("Got reference"); "
> Do I need to edit the contents of jndi.properties where the java.naming
> information is held?
> It currently reads
> "java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
> java.naming.provider.url=jnp://localhost:1099
> java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces"
> Hmmmmmmmm. Any suggestions very much appreciated.
>
> Alison
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user