简体   繁体   English

Websphere JMS部署错误

[英]Websphere JMS Deploy Error

I am trying deploy a application on websphere that I developed on jetty. 我正在尝试在码头上开发的Websphere上部署应用程序。 Locally, I use activeMQ and the application uses spring profile to change the configuration to use the websphere MQ on the Webpshere. 在本地,我使用activeMQ,而应用程序使用spring概要文件来更改配置,以在Webpshere上使用Websphere MQ。 But at deploy I am receiving the following error: 但是在部署时,我收到以下错误:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'postadorDeMensagemDeRespostaEventosSNCore': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.jms.core.JmsTemplate br.com.vr.pedidos.lancamentoeventual.api.integracao.infrastructure.PostadorDeMensagemDeRespostaEventosSNCoreComFila.jmsSaidaTemplateEventosSNCore; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jmsSaidaTemplateEventosSNCore' defined in class path resource [spring-api-jms.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'com.ibm.ejs.jms.JMSConnectionFactoryHandle' to required type 'javax.jms.ConnectionFactory' for property 'connectionFactory'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [com.ibm.ejs.jms.JMSConnectionFactoryHandle] to required type [javax.jms.ConnectionFactory] for property 'connectionFactory': no matching editors or conversion strategy found
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)

I found the problem. 我发现了问题。 The library jms local was in the package. 软件包中包含jms local库。 I just put the scope provided in the maven: 我只是把行家提供的范围:

            <dependency>
            <groupId>javax.jms</groupId>
            <artifactId>jms</artifactId>
            <version>${javax.jms.version}</version>
            <scope>provided</scope>
        </dependency>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM