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?



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3887736#3887736

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3887736


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to