0 Replies Latest reply on Feb 19, 2009 10:04 PM by Daniel Jao

    Syslog Jboss Nullpointer

    Daniel Jao Newbie

      Hi All,


      Im trying to set up syslog on JBOSS.

      I uncommented this part in the log4j.xml.

      <!-- Syslog events -->











      <appender-ref ref="CONSOLE"/>
      <appender-ref ref="FILE"/>



      I also already enabled syslog.

      Enabling UDP in syslog(linux):

      In /etc/sysconfig/syslog(change is in red):

      # Options to syslogd
      # -m 0 disables 'MARK' messages.
      # -r enables logging from remote machines
      # -x disables DNS lookups on messages recieved with -r
      # See syslogd(8) for more details
      SYSLOGD_OPTIONS="-r -m 0"
      # Options to klogd
      # -2 prints all kernel oops messages twice; once for klogd to decode, and
      # once for processing with 'ksymoops'
      # -x disables all klogd processing of oops messages entirely
      # See klogd(8) for more details
      KLOGD_OPTIONS="-2"

      But when i restart the jboss, im encountering the ff error:

      18:12:48,116 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
      18:12:48,262 WARN [Log4jService$URLWatchTimerTask] Failed to check URL: resource:log4j.xml
      java.lang.NullPointerException
      at org.apache.log4j.net.SyslogAppender.append(SyslogAppender.java:241)
      at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)


      I hope some could help me.

      Thanks,
      Daniel