Java: MalformedURLException

Oct 04, 2013 13:10


Originally published at RTFM - администрирование, настройка серверов FreeBSD, Linux. You can comment here or there.


При запуске Apache Tomcat в логе ошибка:

# cat logs/catalina.out | grep cent Error: Exception thrown by the agent : java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: cent2: cent2
Проблема заключается в том, что система не смогла определить имя узла cent2.

Решение - дописать имя в файл /etc/hosts:

# cat /etc/hosts | grep cent 127.0.0.1 localhost.localdomain localhost cent2

Read the rest of this entry »

apache tomcat, java, Проблемы и решения

Previous post Next post
Up