Hi, I am working on migrating a spring based web app from Websphere to Tomcat 6.0. As part of it, I have been configuring the resources according to tomcat's requirements. When I configured the resources using ActiveMQ and started the application, I get this error.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ltcUpdateListenerContainer' defined in class path resource [xml/spring/nml-jms-config.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (2) are: PropertyAccessException 1: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [org.apache.activemq.ActiveMQConnectionFactory] to required type [javax.jms.ConnectionFactory] for property 'connectionFactory'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [org.apache.activemq.ActiveMQConnectionFactory] to required type [javax.jms.ConnectionFactory] for property 'connectionFactory': no matching editors or conversion strategy found PropertyAccessException 2: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [org.apache.activemq.command.ActiveMQQueue] to required type [javax.jms.Destination] for property 'destination'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [org.apache.activemq.command.ActiveMQQueue] to required type [javax.jms.Destination] for property 'destination': no matching editors or conversion strategy found I know this question has come up quite a few times. But I have tried everything. There are no multiple jms.jars on my classpath. I have removed all the Websphere related references from the project and added ActiveMQ references. This is my bean definition <bean id="ltcUpdateListenerContainer" class="org.springframework.jms.listener.DefaultMessageListenerContainer"> <property name="concurrentConsumers" value="1"/> <property name="maxConcurrentConsumers" value="1"></property> <property name="connectionFactory" ref="nmlConnectionFactory"/> <property name="destination" ref="ltcUpdateQueue"/> <property name="messageListener" ref="ltcResponseListener"/> <property name="exceptionListener" ref="exceptionListener"/> <property name="cacheLevel" value="0"/> </bean> <bean id="nmlConnectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean"> <property name="jndiTemplate"> <ref bean="jndiTemplate"/> </property> <property name="lookupOnStartup"> <value>true</value> </property> <property name="jndiName"> <value>java:comp/env/jms/NMLConnectionFactory</value> </property> <property name="resourceRef"> <value>true</value> </property> </bean> And the resource defn for NMLConnectionFactory <Resource name="jms/NMLConnectionFactory" auth="Container" type="org.apache.activemq.ActiveMQConnectionFactory" factory="org.apache.activemq.jndi.JNDIReferenceFactory" brokerURL="vm://localhost" brokerName="LocalActiveMQBroker" /> Am i missing some classes here? How do i ensure that the ActiveMQConnectionFactory is interpreted as a JMS Connection Factory? Any tips in this regard would be very helpful. A -- View this message in context: http://www.nabble.com/ActiveMQ-connection-Factories-tp25351311p25351311.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.