Results 1 to 4 of 4

Thread: Failed to convert [javax.naming.Reference] to [javax.jms.ConnectionFactory]

  1. #1

    Default Failed to convert [javax.naming.Reference] to [javax.jms.ConnectionFactory]

    Hi,

    I am tring to deploy maven based JMS application in to weblogic 10.0.
    When i deploy it gives below error.

    Code:
    <Nov 4, 2008 1:23:39 PM EST> <Warning> <HTTP> <BEA-101162> <User defined listener org.springframework.web.context.ContextLoaderListener failed: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jmsQueueConnectionFactory' defined in ServletContext resource [/WEB-INF/Spring-JMS-Context.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
    PropertyAccessException 1: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [javax.naming.Reference] to required type [javax.jms.ConnectionFactory] for property 'targetConnectionFactory'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [javax.naming.Reference] to required type [javax.jms.ConnectionFactory] for property 'targetConnectionFactory': no matching editors or conversion strategy found.
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jmsQueueConnectionFactory' defined in ServletContext resource [/WEB-INF/Spring-JMS-Context.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
    PropertyAccessException 1: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [javax.naming.Reference] to required type [javax.jms.ConnectionFactory] for property 'targetConnectionFactory'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [javax.naming.Reference] to required type [javax.jms.ConnectionFactory] for property 'targetConnectionFactory': no matching editors or conversion strategy found
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1303)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1042)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:485)
    	at java.security.AccessController.doPrivileged(Native Method)
    And i found from another forum that this may be class loaded problem. They suggested to remove jms.jar from war to get rid of this problem.

    I have removed jms.jar file from war file. Still i am getting same error.

    Please suggest me how to make this work?

    Thanks,
    Laks
    Last edited by laknarayan; Nov 4th, 2008 at 01:16 PM.

  2. #2

    Default

    Looks like i need to add com.ibm.mqjms.jar file in the project to get away from this error. but no where the error trace pointing it.

    some how resolved.

    Thanks,
    Laks

  3. #3

    Thumbs up

    Thanks for updating the solution. I had to include imq-4.4U1.jar on classpath for Sun MQ. Saved my day!

  4. #4
    Join Date
    Apr 2013
    Posts
    1

    Default

    Thanks, it really helps me. I just added imq-4.2.jar to my classpath.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •