[JBoss AS7 Development] - JBoss AS 7 EJB3 lookup failure
by migratetojboss
migratetojboss [http://community.jboss.org/people/migratetojboss] created the discussion
"JBoss AS 7 EJB3 lookup failure"
To view the discussion, visit: http://community.jboss.org/message/629605#629605
--------------------------------------------------------------
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.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/629605#629605]
Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 3 months