dcsimg
JMS Appender for log4j Not Working
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Neha_Gupta
Posted On:   Tuesday, August 26, 2008 01:45 AM

Hi All I am trying to use JMS Appender of log4j in my application using log4j.properties file - but its not running. I am using the jboss-4.2.2.GA Server. The error I am getting is as follows: log4j:WARN No appenders could be found for logger(org.jboss.mq.referenceable.SpyConnectionFactoryObjectFactory). log4j:WARN Please initialize the log4j system properly. The code does not run ahead of this warning and it stucks there. I searched a lot but am not able to find the solution. The log4j.properties file configuration which I am using is as follows: log4j.rootLogger=DEBUG, jmsapp log4j.appender.jmsapp=org.apache.log4j.net.JMSAppender log4j.appender.jmsapp.InitialContex   More>>

Hi All
I am trying to use JMS Appender of log4j in my application using log4j.properties file - but its not running.
I am using the jboss-4.2.2.GA Server. The error I am getting is as follows:

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

The code does not run ahead of this warning and it stucks there.

I searched a lot but am not able to find the solution.
The log4j.properties file configuration which I am using is as follows:

log4j.rootLogger=DEBUG, jmsapp
log4j.appender.jmsapp=org.apache.log4j.net.JMSAppender
log4j.appender.jmsapp.InitialContextFactoryName=org.jnp.interfaces.NamingContextFactory
log4j.appender.jmsapp.ProviderURL=jnp://localhost:1099
log4j.appender.jmsapp.TopicBindingName=topic/testTopic
log4j.appender.jmsapp.TopicConnectionFactoryBindingName=ConnectionFactory

If someone knows about the problem - please let me know. Any help is a welcome.

Thanks
Neha

   <<Less
About | Sitemap | Contact