[jboss-user] [Installation, Configuration & DEPLOYMENT] - Syslog Jboss Nullpointer
daniel_jao
do-not-reply at jboss.com
Thu Feb 19 22:04:06 EST 2009
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
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211670#4211670
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211670
More information about the jboss-user
mailing list