1 Reply Latest reply on Oct 3, 2011 5:57 AM by markus78

    JBoss AS 7 EJB3 lookup failure

    migratetojboss Newbie

      jboss-as-7.0.1.Final: Trying to migrate applications from JBoss 4.x to JBoss 7.0.1

      An swing Applet trying to lookup EJB 3. Getting below exception:

       

      new env : {jnp.parsedName=, java.naming.provider.url=jnp://127.0.0.1:1099, java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming.client:org.jboss.naming:org.jnp.interfaces}

      address : java:app/hotel-ejb/Stupid!com.abcd.hotel.server.StupidBean

      network: Connecting socket://127.0.0.1:1099 with proxy=DIRECT

      java.security.PrivilegedActionException: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]

      at java.security.AccessController.doPrivileged(Native Method)

      at javax.security.auth.Subject.doAs(Unknown Source)

      at com.abcd.hotel.admin.bootstrap.EJBSecurityMain.main(EJBSecurityMain.java:68)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

      at java.lang.reflect.Method.invoke(Unknown Source)

      at com.sun.javaws.Launcher.executeApplication(Unknown Source)

      at com.sun.javaws.Launcher.executeMainClass(Unknown Source)

      at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)

      at com.sun.javaws.Launcher.run(Unknown Source)

      at java.lang.Thread.run(Unknown Source)

      Caused by: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]

      at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1159)

      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1239)

      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:527)

      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:520)

      at javax.naming.InitialContext.lookup(Unknown Source)

      at org.jboss.naming.client.java.javaURLContextFactory$EncContextProxy.invoke(javaURLContextFactory.java:114)

      at $Proxy0.lookup(Unknown Source)

      at javax.naming.InitialContext.lookup(Unknown Source)

      at com.abcd.shared.util.JndiUtil.lookup(JndiUtil.java:17)

      at com.abcd.hotel.admin.bootstrap.EJBSecurityMain$1.run(EJBSecurityMain.java:109)

      ... 12 more

      Caused by: java.net.SocketTimeoutException: Receive timed out

      at java.net.PlainDatagramSocketImpl.peekData(Native Method)

      at java.net.DatagramSocket.receive(Unknown Source)

      at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1129)

      ... 21 more

       

       

      I have also tried with localhost as provider url. Same issue.