A call to an InitialContext.lookup() from within an EJB never returns.
External clients do not have a problem.  I have placed System.out.println
statements both immediately before and immediately after the lookup, as
well as in a "catch Throwable" clause and a finally block.  Only the
before logging statement occurs.  The problem section looks like this:

    InitialContext context = new InitialContext();

    // create the 'new' UserSessionBean
    System.out.println("About to lookup user session in comp/env.");
    UserSessionHome userHome =
            (UserSessionHome)context.lookup("java:comp/env/ejb/UserSession");
    System.out.println("Looked up user session in comp/env.");

And the output looks stops at:

    [LoginViewModel] About to lookup user session in comp/env.

I have also tried looking up the bean in the global JNDI namespace, as an
external client would, and the results are the same.

If I lookup a name that is not bound, I immediately get a
javax.naming.NameNotFoundException.

The code runs fine on both Windows 2000 and Solaris 2.7.

I am having the problem on Red Hat Linux 7.1 using Blackdown's JDK.  The
output of 'java -version' is:

    java version "1.3.0"
    Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.3.0-FCS)
    Java HotSpot(TM) Client VM (build Blackdown-1.3.0-FCS, mixed mode)

Sun's JDK does not run for me on Red Hat 7.1; I can't even run 'java
-version'.  I am currently downloading IBM's JDK, but that will take quite
a while with my slow connection.

I am currently using JBoss 2.2.1, but I have had similar results on 2.2.2
and 2.4 beta.

I have searched the mailing list archives, and found a few JNDI problems,
but nothing that appears to be this; I apologize if this problem has
already been addressed.

Thanks in advance for any help,
Xandy


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to