-
1. Re: java.net.UnknownHostException
joelvogt Jul 15, 2002 8:12 PM (in response to nghianja)can you post the bit of the log where the error is?
-
2. Re: java.net.UnknownHostException
nghianja Jul 16, 2002 10:37 AM (in response to nghianja)Here is part of the log which show the error:
ERROR [WebService] Failed to get localhost name
java.net.UnknownHostException: earth
at java.net.InetAddress.getAllByName0(InetAddress.java:566)
at java.net.InetAddress.getAllByName0(InetAddress.java:535)
at java.net.InetAddress.getAllByName(InetAddress.java:528)
at java.net.InetAddress.getLocalHost(InetAddress.java:718)
at org.jboss.web.WebService.(WebService.java:76)
at java.lang.reflect.Constructor.newInstance(Native Method)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:786)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:240)
at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:267)
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:86)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:167)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:130)
at org.jboss.system.ServiceController.install(ServiceController.java:217)
at java.lang.reflect.Method.invoke(Native Method) -
3. Re: java.net.UnknownHostException
uromahn Jul 16, 2002 3:38 PM (in response to nghianja)Well, if you don't have a DNS, you need to put the name of your computer in a file called 'hosts'.
On Unix/Linux this file is usually in /etc and on Windows machines in C:\WinNT\system32\driver\etc.
You need to make an entry such as:
192.168.1.5 server-name
in which you replace the IP with the IP of your machine (in Unix/Linux issue the command 'ifconfig', in Windows 'ipconfig') and 'server-name' needs to be replaced by the name of your machine.
NOTE: on Unix/Linux, you need to have root access to modify 'hosts' or run the 'ifconfig' command. This usually should solve your issue.
-Uli