On Jul 10, 2007, at 1:21 PM, Jacek Laskowski wrote:

On 7/10/07, David Blevins <[EMAIL PROTECTED]> wrote:

p.setProperty(Context.PROVIDER_URL, "ejbd://localhost: 4201");
...
Exception in thread "main" javax.naming.ServiceUnavailableException:
Cannot lookup '/z'. [Root exception is java.net.ConnectException:
Cannot connect to server 'ejbd://localhost:4201'.  Check that the
server is started and that the specified serverURL is correct.]

It looks pretty. One question - why is it "serverURL" not
"Context.PROVIDER_URL"?

The tricky part of that is the code that throws that exception is used for more than just JNDI. It does all our EJB requests and authentication requests too.

-David

Reply via email to