Identity Manager on Tomcat AND name resolution

The summary of the problem is this.

I have modified the "host" file on the windows machine and I can ping a host fine but the Tomcat served Sun Identity Manager test connection or any other java application will not resolve the hostname matt.base4u.com.

Your comments would be appreciated

Test connection failed for resource(s):

LDAP: Could not connect to LDAP server 'MATT.base4u.com'. ==> javax.naming.CommunicationException: MATT.base4u.com:489\n

Above is the error message that I receive when testing a connection to an LDAP server.

If I ping the hostname it resolves fine

C:\>ping matt.base4u.com

Pinging matt.base4u.com [192.168.0.103] with 32 bytes of data:

Reply from 192.168.0.103: bytes=32 time<1ms TTL=128

Reply from 192.168.0.103: bytes=32 time<1ms TTL=128

Reply from 192.168.0.103: bytes=32 time<1ms TTL=128

Reply from 192.168.0.103: bytes=32 time<1ms TTL=128

Ping statistics for 192.168.0.103:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 0ms, Maximum = 0ms, Average = 0ms

[1177 byte] By [SavorToday] at [2007-11-26 10:50:25]
# 1
Are you sure it is the hostname that it cannot resolve? Is the LDAP listening on port 489 for requests?
timbo at 2007-7-7 3:03:00 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2

OK so here is the network setup.

host A (192.168.0.103)

Directory Server (o=netscaperoot) on port 389

Directory Server (o=base4u.com) on port 489

modified host file as follows

matt.base4u.com 192.168.0.103

Ping is successful to matt.base4u.com

javabased LDAP browser is successful to matt.base4u.com:489

host B (192.168.0.104)

modified host file as follows

matt.base4u.com 192.168.0.103

Ping is successful to matt.base4u.com

javabased LDAP browser is not successful to matt.base4u.com:489

Sun Identity Manager, Tomcat and MySQL loaded and starts fine but cannot connect to matt.base4u.com

I have never seen a time where ping will work and resolve a name but the hosts file is ignored. I think that the problem is centered with JAVA configuration or security but don't know where that is...help --

SavorToday at 2007-7-7 3:03:00 > top of Java-index,Web & Directory Servers,Directory Servers...
# 3
And to answer the above question directly...I can connect to LDAP on port 489 from Host A but not from Host B
SavorToday at 2007-7-7 3:03:00 > top of Java-index,Web & Directory Servers,Directory Servers...
# 4
do you have a firewall between those two machines blocking the port? try telnet 192.168.0.103 489
handat_luc at 2007-7-7 3:03:00 > top of Java-index,Web & Directory Servers,Directory Servers...
# 5
Thanks...that was it. I had checked the client side firewall but did not look at the server side firewall settings where the directory instance was running. Thanks again -- :-)
SavorToday at 2007-7-7 3:03:00 > top of Java-index,Web & Directory Servers,Directory Servers...