Hi Azeez This is because TenantAwarePattern Layouts try to get the host name of the incoming LogEvent by InetAddress.getLocalHost(). This is a Mac OSX (Oracle java7u5) specific issue [1]. To temporary fix it, edit host files and append your host name to 127.0.0.1 loopback address:
sudo vi /etc/hosts 127.0.0.1 localhost YourHostname 255.255.255.255 broadcasthost ::1 localhost fe80::1%lo0 localhost 192.168.1.3 loki to set it in the first place, use: sudo scutil --set HostName YourHostname I will try to find an alternative approach to get the host name of the LogEvent in order to have the hostname information in the LogEvent to avoid this issue. [1] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7180557 [2] http://java.net/jira/browse/MACOSX_PORT-564 Regards, Amani On Thu, Oct 11, 2012 at 7:49 AM, Amani Soysa <am...@wso2.com> wrote: > Looking into this > > On Wed, Oct 10, 2012 at 7:21 PM, Afkham Azeez <az...@wso2.com> wrote: > >> java.net.UnknownHostException: azmac.lankacom.net.: azmac.lankacom.net.: >> nodename nor servname provided, or not known >> at java.net.InetAddress.getLocalHost(InetAddress.java:1438) >> at >> org.wso2.carbon.utils.logging.TenantAwarePatternLayout$TenantAwarePatternParser.<init>(TenantAwarePatternLayout.java:119) >> at >> org.wso2.carbon.utils.logging.TenantAwarePatternLayout.createPatternParser(TenantAwarePatternLayout.java:81) >> at org.apache.log4j.PatternLayout.<init>(PatternLayout.java:435) >> at org.apache.log4j.PatternLayout.<init>(PatternLayout.java:427) >> at >> org.wso2.carbon.utils.logging.TenantAwarePatternLayout.<init>(TenantAwarePatternLayout.java:64) >> >> >> -- >> *Afkham Azeez* >> Director of Architecture; WSO2, Inc.; http://wso2.com >> Member; Apache Software Foundation; http://www.apache.org/ >> * <http://www.apache.org/>** >> email: **az...@wso2.com* <az...@wso2.com>* cell: +94 77 3320919 >> blog: **http://blog.afkham.org* <http://blog.afkham.org>* >> twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> >> * >> linked-in: **http://lk.linkedin.com/in/afkhamazeez* >> * >> * >> *Lean . Enterprise . Middleware* >> >> >
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev