activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mukeshs <mukesh...@gmail.com>
Subject Configuring bridge between Activemq and openjms
Date Wed, 09 Sep 2009 16:57:04 GMT

Hi,

I was trying to configure a bridge between Activemq and openjms,
but i am getting the error in Initializing the JMSConnector.

Activemq.xml config file which i am using is as following,

        <jmsBridgeConnectors>
            <jmsQueueConnector name="OpenJMSBridge-Inbound"
jndiOutboundTemplate="#remoteJndi"
outboundQueueConnectionFactoryName="ConnectionFactory"
localQueueConnectionFactory="#localFactory">

             <inboundQueueBridges>
              <inboundQueueBridge inboundQueueName="jmstojmsBridgeQueue"
localQueueName="jmstojmsBridgeQueue"/>
             </inboundQueueBridges>


             </jmsQueueConnector>
        </jmsBridgeConnectors>

     </broker>

    <bean id="remoteJndi" class="org.springframework.jndi.JndiTemplate">
       <property name="environment">
         <props>
            <prop
key="java.naming.factory.initial">org.exolab.jms.jndi.InitialContextFactory>
            </prop> 
            <prop key="java.naming.provider.url">tcp://BUC-PCVE0104:3035>
            </prop> 
         </props>
       </property>
    </bean>

    <bean id="localFactory"
class="org.apache.activemq.ActiveMQConnectionFactory">
      <property name="brokerURL" value="tcp://BUC-PCVE0104:61616" />
    </bean>



The error i am getting while launching the activemq is as follows.


jvm 1    | ERROR JmsQueueConnector              - Failed to initialize the
JMSCo
nnector
jvm 1    | javax.naming.NoInitialContextException: Cannot instantiate class:
org
.exolab.jms.jndi.InitialContextFactory> [Root exception is
java.lang.ClassNotFou
ndException: org.exolab.jms.jndi.InitialContextFactory>]
jvm 1    |      at javax.naming.spi.NamingManager.getInitialContext(Unknown
Sour
ce)
jvm 1    |      at javax.naming.InitialContext.getDefaultInitCtx(Unknown
Source)

jvm 1    |      at javax.naming.InitialContext.init(Unknown Source)
jvm 1    |      at javax.naming.InitialContext.<init>(Unknown Source)
jvm 1    |      at
org.springframework.jndi.JndiTemplate.createInitialContext(Jn
diTemplate.java:114)
jvm 1    |      at
org.springframework.jndi.JndiTemplate.execute(JndiTemplate.ja
va:86)
jvm 1    |      at
org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.jav
a:130)
jvm 1    |      at
org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.jav
a:155)
jvm 1    |      at
org.apache.activemq.network.jms.JmsQueueConnector.initializeF
oreignQueueConnection(JmsQueueConnector.java:193)
jvm 1    |      at
org.apache.activemq.network.jms.JmsQueueConnector.init(JmsQue
ueConnector.java:54)
jvm 1    |      at
org.apache.activemq.network.jms.JmsConnector.start(JmsConnect
or.java:116)
jvm 1    |      at
org.apache.activemq.broker.BrokerService.startAllConnectors(B
rokerService.java:1831)
jvm 1    |      at
org.apache.activemq.broker.BrokerService.start(BrokerService.
java:455)
jvm 1    |      at
org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesS
et(XBeanBrokerService.java:50)
jvm 1    |      at
org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1288)
jvm 1    |      at
org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1257)
jvm 1    |      at
org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:438)
jvm 1    |      at
org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:383)
jvm 1    |      at java.security.AccessController.doPrivileged(Native
Method)
jvm 1    |      at
org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:353)
jvm 1    |      at
org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:245)
jvm 1    |      at
org.springframework.beans.factory.support.DefaultSingletonBea
nRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)
jvm 1    |      at
org.springframework.beans.factory.support.AbstractBeanFactory
.getBean(AbstractBeanFactory.java:242)
jvm 1    |      at
org.springframework.beans.factory.support.AbstractBeanFactory
.getBean(AbstractBeanFactory.java:164)
jvm 1    |      at
org.springframework.beans.factory.support.DefaultListableBean
Factory.preInstantiateSingletons(DefaultListableBeanFactory.java:400)
jvm 1    |      at
org.springframework.context.support.AbstractApplicationContex
t.finishBeanFactoryInitialization(AbstractApplicationContext.java:736)
jvm 1    |      at
org.springframework.context.support.AbstractApplicationContex
t.refresh(AbstractApplicationContext.java:369)
jvm 1    |      at
org.apache.xbean.spring.context.ResourceXmlApplicationContext
.<init>(ResourceXmlApplicationContext.java:64)
jvm 1    |      at
org.apache.xbean.spring.context.ResourceXmlApplicationContext
.<init>(ResourceXmlApplicationContext.java:52)
jvm 1    |      at
org.apache.activemq.xbean.XBeanBrokerFactory.createApplicatio
nContext(XBeanBrokerFactory.java:96)
jvm 1    |      at
org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBe
anBrokerFactory.java:52)
jvm 1    |      at
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerF
actory.java:71)
jvm 1    |      at
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerF
actory.java:54)
jvm 1    |      at
org.apache.activemq.console.command.StartCommand.startBroker(
StartCommand.java:111)
jvm 1    |      at
org.apache.activemq.console.command.StartCommand.runTask(Star
tCommand.java:73)
jvm 1    |      at
org.apache.activemq.console.command.AbstractCommand.execute(A
bstractCommand.java:57)
jvm 1    |      at
org.apache.activemq.console.command.ShellCommand.runTask(Shel
lCommand.java:129)
jvm 1    |      at
org.apache.activemq.console.command.AbstractCommand.execute(A
bstractCommand.java:57)
jvm 1    |      at
org.apache.activemq.console.command.ShellCommand.main(ShellCo
mmand.java:79)
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
jvm 1    |      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Sourc
e)
jvm 1    |      at java.lang.reflect.Method.invoke(Unknown Source)
jvm 1    |      at
org.apache.activemq.console.Main.runTaskClass(Main.java:222)
jvm 1    |      at org.apache.activemq.console.Main.main(Main.java:106)
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
jvm 1    |      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Sourc
e)
jvm 1    |      at java.lang.reflect.Method.invoke(Unknown Source)
jvm 1    |      at
org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimple
App.java:240)
jvm 1    |      at java.lang.Thread.run(Unknown Source)
jvm 1    | Caused by: java.lang.ClassNotFoundException:
org.exolab.jms.jndi.Init
ialContextFactory>
jvm 1    |      at java.net.URLClassLoader$1.run(Unknown Source)
jvm 1    |      at java.security.AccessController.doPrivileged(Native
Method)
jvm 1    |      at java.net.URLClassLoader.findClass(Unknown Source)
jvm 1    |      at java.lang.ClassLoader.loadClass(Unknown Source)
jvm 1    |      at java.lang.ClassLoader.loadClass(Unknown Source)
jvm 1    |      at java.lang.ClassLoader.loadClassInternal(Unknown Source)
jvm 1    |      at java.lang.Class.forName0(Native Method)
jvm 1    |      at java.lang.Class.forName(Unknown Source)
jvm 1    |      at com.sun.naming.internal.VersionHelper12.loadClass(Unknown
Sou
rce)
jvm 1    |      ... 51 more
jvm 1    | INFO  JmsConnector                   - JMS Connector
OpenJMSBridge-Inbound Started
jvm 1    | INFO  BrokerService                  - ActiveMQ JMS Message
Broker (l



If anybody can help me in this regard 


Thanks
Mukesh


-- 
View this message in context: http://www.nabble.com/Configuring-bridge-between-Activemq-and-openjms-tp25369150p25369150.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.


Mime
View raw message