Are you saying that if you used jnp://127.0.0.1:1100 it didn't work?
It will not deploy to begin with.
Can you share more details on the deployment failure?
It's actually execution time exception with the preference to IPv4 stack
javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.CommunicationException: Could not obtain connection to any of these urls: 127.0.0.1:1100 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server 127.0.0.1:1100 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server 127.0.0.1:1100 [Root exception is java.net.ConnectException: Connection refused: connect]]]]
Binding issues were happening with preference to IPv6 stack and are no longer an issue
I've been unable to reproduce your problem with the setup you sent me. I have no problem sending messages.
What's in your /etc/hosts file? Mine includes
# Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6
What params are you passing to run.sh when you start JBoss?
I have -Djava.net.preferIPv4Stack=true in run.sh
My localhost is resolved as ::1 and there are no explicit definitions in /etc/hosts for ::1.
127.0.0.1 localhost appears in the file.
I made a test on my system with the following line in the code (Windows 2k3):
127.0.0.1 localhost ::1 localhost6
This did not resolve the issue. I am able to ping localhost as ::1 and localhost6 as ::1 as well. 127.0.0.1 is pingable.
I think important part is that I am starting run.bat with -b <IPv4 IP>