Successfully deployed but the client seems not to connect to the JBoss server. the client waits for a while and finally shows up following errors:
compile:
[javac] Compiling 1 source file to C:\Java\jboss\docs\ejbwJboss.ExFiles\Tita
n-JBoss-3.2-12d\workbook\ex04_1\build\classes
ejbjar:
run.client_41a:
[java] javax.naming.CommunicationException. Root exception is java.rmi.Con
nectException: Connection refused to host: 128.196.239.109; nested exception is:
[java] java.net.ConnectException: Connection timed out: connect
[java] at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:
567)
[java] at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.
java:185)
[java] at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.jav
a:171)
[java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:101)
[java] at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
[java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:49
2)
[java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:47
1)
....
I've tried to change the jndi.properties with "jnp://localhost:1099" and also tried to make the InitialContext with Properties. either doesn't work!
Anyone happened to similar situation?
are you sure you don't have a firewall such as iptables or ipchains running?
Cheers,
sacha