How to use WebSphere Runtime libraries inside Spring Download as a place next to the application

I am trying to create a spring console application. To start, I use the Spring v 1.3.1 initializer.

it's a simple β€œhello world” without the Internet, no JPA, nothing. Now I edited pom.xml and added a dependency on a jar file called 'com.ibm.ws.ejb.thinclient_8.5.0.jar'

all of a sudden i get the following build errors

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 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 

How to include Websphere 8 runtime libraries in a stand-alone Spring-Boot application

Purpose: I am trying to develop a simple standalone java application that will reference EJB services through IIOP. This application works on the side (as a separate client) and talks to the EJB application inside websphere.

+3
source share
2 answers

By default, jmx is included in spring-boot.

If you are not using JMX for your project. Add this line to application.properties. This should solve this problem.

 spring.jmx.enabled=false 
+2
source

I had to add the following to my application.properties for Spring boot 1.3.5.RELEASE

 spring.jmx.enabled=false spring.jta.enabled=false 
0
source

Source: https://habr.com/ru/post/1212574/


All Articles