Hmmm. Never seen that problem. Check what properties you are using to get the Context. What happens if your code tries to use some other methods of Context besides lookup? Try using some of the Context methods to display contents of Context.
Thanks for the reply..
i'm still stuck at the same.. i'm not able to figure out why this is happening. my bean get deployed sucessfully.
12:38:21,915 INFO [MainDeployer] Successfully completed deployment of package:
12:38:21,945 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss
12:38:22,055 INFO [EjbModule] Creating
12:38:22,075 INFO [EjbModule] Deploying Log
12:38:22,976 INFO [EjbModule] Created
12:38:22,976 INFO [EjbModule] Starting
12:38:22,986 INFO [EjbModule] Started
12:38:22,986 INFO [MainDeployer] Successfully completed deployment of package:
12:38:23,016 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss
12:38:23,127 INFO [EjbModule] Creating
12:38:23,147 INFO [EjbModule] Deploying HelloTopicMDB
12:38:23,197 INFO [EjbModule] Created
12:38:23,207 INFO [EjbModule] Starting
12:38:23,207 INFO [EjbModule] Started
12:38:23,217 INFO [MainDeployer] Successfully completed deployment of package:
but, i tried setting the properties inside the code as well.
Properties env = new Properties();
Context ctx = new InitialContext(env);
but when i run the client.. it gets the context & stops there.
C:\jbosstomcat\ejbexam\jbossmdb>javac -classpath .;c:\jbosstomcat\client\ejb.jar
C:\jbosstomcat\ejbexam\jbossmdb>java -classpath .;c:\jbosstomcat\client\jboss-c
Did you ever get this problem figured out? I'm having the same problem.
My client program hangs after doing a JNDI lookup on the initial context. In my code I get the InitialContext just fine. But when I try to get an EJB home object from it, it just sits there. Profiling my CPU shows the JVM gives up on the lookup about 10 seconds after I start it. Basically, nothing happens. Every once in a while, if I let go long enough, lookup will return null. I'm getting no Exceptions and nothing is getting written to the logs. This is very frustrating since I can't provide more details.
I've been going through the forums for the past day now and haven't really found anything that helps.
Help, I need to port our app to JBoss and can't even do a simple JNDI lookup!!!
try playing with your NICs, try disconnecting from network etc and see if it makes a diff. Usually some kind of funky network setup that prevents JVM (RMI?) from connecting.
couldn't you post the code (along with the descriptors)?
PS: I've faced a similar situation some time ago and it was a network misconfiguation issue. Perhaps, you should take a look in the /etc/hosts file.