【问题标题】:WebSphere 8.5.5 and JMS annotations crash server applicationWebSphere 8.5.5 和 JMS 注释使服务器应用程序崩溃
【发布时间】:2016-07-04 17:18:27
【问题描述】:

我正在将一个使用 Spring 4.2.5、Hibernate 4.2.8 和 JMS 1.1 的应用程序部署到 WebSphere 8.5.5 和 Oracle 12 上。

数据库连接管理器和 JMS 连接工厂等资源在服务器中设置并使用 JNDI 连接到 Spring 应用程序。

当应用启动时,我会在日志中看到:

[3/18/16 15:18:32:717 EST] 0000008b SystemOut     O   [B@631dd237/Set;
    at org.springframework.jms.annotation.JmsListenerAnnotationBeanPostProcessor$1.inspect(JmsListenerAnnotationBeanPostProcessor.java:202)
    at org.springframework.jms.annotation.JmsListenerAnnotationBeanPostProcessor$1.inspect(JmsListenerAnnotationBeanPostProcessor.java:198)
    at org.springframework.core.MethodIntrospector$1.doWith(MethodIntrospector.java:72)
    at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:495)
    at org.springframework.core.MethodIntrospector.selectMethods(MethodIntrospector.java:68)
    at org.springframework.jms.annotation.JmsListenerAnnotationBeanPostProcessor.postProcessAfterInitialization(JmsListenerAnnotationBeanPostProcessor.java:197)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:421)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1559)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
    ... 58 more

[3/18/16 15:18:32:718 EST] 0000008b SystemOut     O   [FIAT-CSP-NA] [WebContainer : 0] 2016-03-18 15:18:32,718 [INFO ] org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean: Closing JPA EntityManagerFactory for persistence unit default

如您所见,JMSListenerAnnotationBeanPostProcessor 中似乎存在某种错误,随后出现一条消息,表明 JPA 实体管理器正在关闭。

据此推测存在导致应用程序关闭的 JMS 问题。

有人看过吗?你知道可能是什么问题吗?

我真的被困在这上面了。

【问题讨论】:

    标签: jms websphere


    【解决方案1】:

    答案原来是类路径问题。 (不就是 Websphere 上的一切吗!)

    我需要从与提供的 jars web sphere 冲突的 war 文件中删除几个 jars。

    【讨论】:

      猜你喜欢
      • 2023-04-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-04-26
      • 1970-01-01
      • 1970-01-01
      • 2015-07-24
      • 2016-04-25
      相关资源
      最近更新 更多