2 Replies Latest reply on Aug 1, 2005 2:31 PM by Alan Berezin

    jndi problem with 4.0.3rc1 and EJB3

    Alan Berezin Newbie

      I have been playing around with EJB on 4.0.1SP1 and just moved to 4.0.3rc1. I added the persistance.xml in place of the hibernate.properties. I have a very simple test with one Entity and one stateless Session. Everything is running in a single VM. No changes to default configuration were made to the server=all.

      The server starts up fine, creates or updates the db table behind the Entity. JNDI works to the exent I can do this:
      InitialContext ctx = new InitialContext();
      Object o = ctx.lookup("java:/testDS");
      System.out.print(o);

      However, if I do this:
      PersonSessionLocal dao = (PersonSessionLocal) ctx.lookup(PersonSessionLocal.class.getName());

      I get this:

      javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
      org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1115)
      org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1223)


      I have tried running the app outside eclipse(doesnt help), trying a fresh install of jboss (using the installer).

      Does anyone have any ideas?