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
---
Alison Stevenson
IT Innovation Centre
2 Venture Road
Chilworth Science Park
Southampton
SO16 7NP, UK
mailto:[EMAIL PROTECTED]
http://www.it-innovation.soton.ac.uk/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user