Spring boot 如何在Spring Boot中使用WebSphere运行时库作为备用应用程序

Spring boot 如何在Spring Boot中使用WebSphere运行时库作为备用应用程序,spring-boot,ejb,websphere,Spring Boot,Ejb,Websphere,我正在尝试构建一个Spring引导控制台应用程序。 首先,我使用spring初始化器V1.3.1 这是一个简单的“hello world”,没有网络,没有JPA,什么都没有 现在我编辑了pom.xml并向jar文件添加了一个名为 'com.ibm.ws.ejb.thinclient_8.5.0.jar' 在构建时,我突然出现了以下错误 Caused by: org.springframework.beans.BeanInstantiationException: Failed to instan

我正在尝试构建一个Spring引导控制台应用程序。 首先,我使用spring初始化器V1.3.1

这是一个简单的“hello world”,没有网络,没有JPA,什么都没有 现在我编辑了pom.xml并向jar文件添加了一个名为 'com.ibm.ws.ejb.thinclient_8.5.0.jar'

在构建时,我突然出现了以下错误

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.management.MBeanServer]: Factory method 'mbeanServer' threw exception; nested exception is org.springframework.jmx.MBeanServerNotFoundException: Could not access WebSphere's AdminServiceFactory.getMBeanFactory/getMBeanServer method; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE]
... 37 common frames omitted
如何将WebSphere8运行时库包含到SpringBoot独立应用程序中

目标:
我正在尝试开发一个简单的独立java应用程序,它将通过IIOP调用EJB服务。此应用程序在外部运行(作为独立客户端),并与websphere内部的EJB应用程序进行对话。

默认情况下,jmx在spring boot中启用

如果您的项目没有使用JMX。在application.properties中添加此行。这应该可以解决这个问题

spring.jmx.enabled=false

我必须为Spring boot
1.3.5.RELEASE

spring.jmx.enabled=false
spring.jta.enabled=false

我仍然在寻找答案,但我找到了一个临时解决办法,那就是我将Spring boot版本从1.3.1降级到1.1.1