Menu ▾ ▴

#191 UnknownHostException on Windows 2003 Server

open
nobody
Service (34)
5
2012-12-11
2008-01-09
REMIX136
No

Is there any issue running the wrapper under Windows 2003 Server (32 bit)?

Our application was working correctly in Windows 2000 Server. Due to new initiative, we need to migrate to Windows 2003 Server and are having issues.

Wrote a simple Java program to get the host name as InetAddress.getLocalHost().getHostName() it returns correctly in Windows 2000 Server and also when run standalone in Windows 2003 Server. But, returns "localhost" when run via Service.

O/S/VM details

Windows 2003-5.2/x86
Java 1.4.2_03

I have tried adding the machine name in the hosts file under system32 directory, etc., but have had no success.

------ section of log file

java.net.UnknownHostException: MACHINE123: MACHINE123
at java.net.InetAddress.getLocalHost(InetAddress.java:1191)
at com.calypso.apps.startup.TestApp.main(TestApp.java:38)

------

Discussion


Log in to post a comment.