logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chitnis, Pooja" <Pooja_Chit...@BMC.com>
Subject JBoss Activemw issue while using JMSAppender
Date Thu, 23 Oct 2008 13:34:55 GMT
Hi All,

 

I am trying to use the JMSAppender 

I am using following appender configuration in jboss-log4j.xml

 

<appender name="JMS" class="org.apache.log4j.net.JMSAppender">

    <param name="ProviderURL" value="tcp://localhost:61616"/>

    <param name="InitialContextFactoryName"
value="org.activemq.jndi.ActiveMQInitialContextFactory"/>

    <param name="topicBindingName" value="MyTopic"/>

    <param name="topicConnectionFactoryBindingName"
value="ConnectionFactory"/>

    <param name="LocationInfo" value="false"/>

    <param name="Threshold" value="DEBUG"/>

  </appender>

 

But I get the exception:

 

18:29:15,396 INFO  [Log4jService$URLWatchTimerTask] Configuring from
URL: resource:jboss-log4j.xml

log4j:ERROR Error while activating options for appender named [JMS].

javax.naming.NoInitialContextException: Cannot instantiate class:
org.activemq.jndi.ActiveMQInitialContextFactory [Root

exception is java.lang.ClassNotFoundException: No ClassLoaders found
for: org.activemq.jndi.ActiveMQInitialContextFactor

y]

        at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)

        at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)

        at javax.naming.InitialContext.init(InitialContext.java:223)

        at javax.naming.InitialContext.<init>(InitialContext.java:197)

 

 

Can anybody help me resolving this error?

 

 

Thanks & Regards,

Pooja Chitnis

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message