Java.net. UnknownHostException during AAS startup in Linux

Source: Internet
Author: User

[Plain]
127.0.0.1 localhost

Server Operating System: Red Hat Enterprise Linux Server release 5.3

JDK: 1.6.0 _ 31

AAS: 7.0

Run./startapusic directly on the linux Command Line. The following exception occurs during running:

[Java]
11:04:09 error [apusic. service. Muxer] startup failed
Java.net. UnknownHostException: localhost. localdomain: localhost. localdomain
At java.net. InetAddress. getLocalHost (InetAddress. java: 1360)
At com.apusic.net. Muxer. startService (Unknown Source)
At com. apusic. service. Service. start (Unknown Source)
At sun. reflect. NativeMethodAccessorImpl. invoke0 (Native Method)
At sun. reflect. NativeMethodAccessorImpl. invoke (NativeMethodAccessorImpl. java: 39)
At sun. reflect. DelegatingMethodAccessorImpl. invoke (DelegatingMethodAccessorImpl. java: 25)
At java. lang. reflect. Method. invoke (Method. java: 597)
At com. apusic. jmx. MBeanDescriptor. invoke (Unknown Source)
At com. apusic. jmx. DynamicMBeanSupport. invoke (Unknown Source)
At com. sun. jmx. interceptor. DefaultMBeanServerInterceptor. invoke (DefaultMBeanServerInterceptor. java: 836)
At com. sun. jmx. mbeanserver. JmxMBeanServer. invoke (JmxMBeanServer. java: 761)
At com. apusic. server. J2EEServer. start (Unknown Source)
At com. apusic. server. J2EEServer. startup (Unknown Source)
At com. apusic. server. Main. main (Unknown Source)
Check that "java.net. UnknownHostException" is caused by incorrect hosts file configuration.
Open the current/etc/hosts file with the following content:

[Plain]
127.0.0.1 localhost
The exception information looks like the domain name localhost. localdomain cannot be recognized. Remember that the "host name" under DNS in the NIC configuration is configured as: localhost. localdomain, but the hosts file is not added to localhost. therefore, you can either adjust the host name, modify the/etc/hosts file, and modify the hosts file. Therefore, modify the/etc/hosts file as follows:

[Plain]
127.0.0.1 localhost. localdomain localhost
Restart AAS, OK!


From the far-reaching column of tranquility

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.