I'm trying to set up J2EE 1.4 with the Sun App Server on my home machine
for a testing
environment. I've got a tiny app that worked properly in 1.3 with the RI
which I don't seem
to be able to get to work on 1.4. I've noticed that the 1.4 Deploy Tool
seems to have built-in
naming conventions that I didn't see in 1.3, so I've followed those, but
I'm still crashing on my
JNDI lookup (I think). Here's the code in question:
Context initial = new InitialContext();
Object objref = initial.lookup("EjbLab1Bean");
The test fails on the second line with a NoInitialContextException but my
testing suggests
the problem is really with the first line because any other attempt to get
data from the
InitialContext also fails. I'm running J2EE 1.4 and Sun App Server 8. I've
checked the
JNDI name associated with the EJB I'm deploying, and it matches the above.
I'm using
the default server which is named domain1 and is running on localhost:4848.
I'm not
entirely sure if I'm logged into the server -- I know I'm logged in through
the deploytool,
and that says that my EJB is deployed and running, but I'm not sure how my
client
program is finding the proper server -- perhaps JNDI is doing that.
I'm also noticing that I can't run the RI as I've been doing in 1.3 --
trying to fire "j2ee -verbose"
gets me a "no such command" error at the Win XP command line.