logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Walker <walk...@divinvest.com>
Subject Chapter4 JMSAppender Example
Date Wed, 09 Apr 2003 21:05:48 GMT
I've tried the example in the Log4j book using JBoss 3.0.1 (and 3.0.6)
exactly as it is described, but while the JMSSink seems to work
properly, the LogStdin gives me a warning and appears to prevent it from
sending messages:

log4j:WARN No appenders could be found for logger
(org.jboss.mq.referenceable.SpyConnectionFactoryObjectFactory).
log4j:WARN Please initialize the log4j system properly.

The complete stdout for the LogStdin is:

log4j: Threshold ="null".
log4j: Level value for root is  [debug].
log4j: root level set to DEBUG
log4j: Class name: [org.apache.log4j.net.JMSAppender]
log4j: Setting property [initialContextFactoryName] to
[org.jnp.interfaces.NamingContextFactory].
log4j: Setting property [providerURL] to [jnp://127.0.0.1:1099].
log4j: Setting property [URLPkgPrefixes] to
[org.jboss.naming:org.jnp.interfaces].
log4j: Setting property [topicConnectionFactoryBindingName] to
[ConnectionFactory].
log4j: Setting property [topicBindingName] to [topic/testTopic].
log4j: Setting property [userName] to [guest].
log4j: Setting property [password] to [guest].
log4j: Setting property [locationInfo] to [true].
log4j: Getting initial context.
log4j: Looking up [ConnectionFactory]
log4j:WARN No appenders could be found for logger
(org.jboss.mq.referenceable.SpyConnectionFactoryObjectFactory).
log4j:WARN Please initialize the log4j system properly.
log4j: About to create TopicConnection.
log4j: Creating TopicSession, non-transactional, in AUTO_ACKNOWLEDGE
mode.
log4j: Looking up topic name [topic/testTopic].
log4j: Creating TopicPublisher.
log4j: Starting TopicConnection.


My application startup line is:

java -classpath
.:/usr/local/jakarta-log4j/dist/lib/log4j-1.2.8.jar:/usr/local/jboss-3.0.1/client/jboss-j2ee.jar:/usr/local/jboss-3.0.1/client/jnp-client.jar:/usr/local/jboss-3.0.1/client/jnet.jar:/usr/local/jboss-3.0.1/client/jbosssx-client.jar:/usr/local/jboss-3.0.1/client/jbossmq-client.jar:/usr/local/jboss-3.0.1/client/jboss-common-client.jar:/usr/local/jboss-3.0.1/client/concurrent.jar:/usr/local/xercesImpl.jar
chapter4.LogStdin chapter4/jboss.xml

Thanks for your guidance.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org


Mime
View raw message