websphere-liberty

Spring boot : org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field “XX” in WebSphere

China☆狼群 提交于 2019-12-11 17:17:24
问题 I have a spring boot application that execute a reverse Swagger Yaml : <plugin> <groupId>io.swagger</groupId> <artifactId>swagger-codegen-maven-plugin</artifactId> <version>2.3.1</version> <executions> <execution> <id>generate-swagger-java</id> <goals> <goal>generate</goal> </goals> <configuration> <inputSpec>${basedir}/src/main/resources/swagger/cview.yaml</inputSpec> <apiPackage>client.api</apiPackage> <modelPackage>client.model</modelPackage> <output>${project.build.directory}/generated

NullPointerException when running CXF JAX-RS 2.0 client “target” method in Liberty Profile under a Thread

删除回忆录丶 提交于 2019-12-11 12:54:44
问题 I have some JAX-RS 2.0 clients running ok in Liberty Profile 8.5.5.6. They are all working ok sequentially, but I want to execute some of them in a Thread so they run concurrently. When I try to get a "target" inside a FutureTask with: WebTarget myResource = client.target(apiURLBase + ...); I get NullPointerExcepton in this com.ibm.ws... class: Caused by: java.lang.NullPointerException at com.ibm.ws.jaxrs20.client.bus.LibertyJAXRSClientBusFactory.getClientScopeBus(LibertyJAXRSClientBusFactory

Mobile First - How to segmentate logs depending on the session

这一生的挚爱 提交于 2019-12-11 12:34:36
问题 I'm working on a mobile banking solution using Mobile First v 7.0 and one of the requirements is to isolate the customer's logs in a dedicated log file which gets created once a session is started to track all the details by session. Is it possible to do such thing ? I'm using Liberty profile v 8.5 and I wonder if it's handled in Liberty or there is something which can be done from Mobile First perspective. 回答1: This is not related to MobileFirst but to the underlying application server that

JAX-WS and CDI not working together on WAS Liberty Profile 8.5.5.6

拜拜、爱过 提交于 2019-12-11 12:03:14
问题 I am experiencing strange behavior when I attempt to combine a JAX-WS web service endpoint class and a simple CDI injection. When I try to inject the object into the WebService implementation class, the injected object's PostConstruct method is never called. Indeed the classes constructor is not called either. Here is my JAX-WS implementation class and the injection point: @WebService(serviceName="eNC3BusinessWebService") public class eNC3BusinessWebServiceImpl { @WebMethod public

Using @Resource injection for Mongo db, inside Web Bundle inside OSGI, under Liberty Profile

a 夏天 提交于 2019-12-11 08:20:27
问题 I want to inject Mongo database (com.mongodb.DB) into OSGI Web Bundle Project, using @Resource. The application is to deployed to WebSphere Liberty Profile V8.5.5.1. Is this possible to do it? I got an error message "....The annotations could not be obtained because of the exception : java.lang.NoClassDefFoundError" However, I can inject Mongo database into WAR, using @Resource, running on WebSphere Liberty Profile, if not using OSGI. Below is lookup return null. public static final DB

ClassCastException during JNDI lookup for MongoDB, inside WAB, running Liberty

风流意气都作罢 提交于 2019-12-11 07:09:06
问题 I want to use JNDI lookup for MongoDB, inside WAB/OSGi, running Liberty Profile. import com.mongodb.DB; @WebServlet("/MongoServlet") public class MongoServlet extends HttpServlet { private static final long serialVersionUID = 1L; protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { DB db = (DB) new InitialContext().lookup("java:comp/env/mongodb"); } catch (NamingException e) { e.printStackTrace(); } } } The JNDI lookup

Is it possible to use Hibernate 5 as JPA engine in WAS Liberty Profile

让人想犯罪 __ 提交于 2019-12-11 06:49:18
问题 I use 4.3.11 in my Liberty projects but there is a bug with Hibernate solved in version 5. I have tried upgrading but I get different exceptions. Anybody is using Hibernate 5.x.x with Liberty Profile? What jars are you including in the dataSource library in server.xml? thanks 回答1: I've been able to get Hibernate 5.x at least partially working in Liberty if I include these JARs: <library id="hibernate"> <file name="${server.config.dir}/hibernate/antlr-2.7.7.jar"/> <file name="${server.config

Liberty Profile - Remote EJB

与世无争的帅哥 提交于 2019-12-11 06:39:35
问题 I am trying to call a remote ejb from my application and getting error org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.RuntimeException: javax.naming.NameNotFoundException: CNTR4009E: The edu.osu.cse5234.ooth.business.view.InventoryService remote interface for the InventoryServiceBean enterprise bean in the OutOfTheHouse-EJB.jar module in the OutOfTheHouse-EJBEAR application could not be obtained for the java:global/OutOfTheHouse

Configuring Liberty Profile to use H2 database

落花浮王杯 提交于 2019-12-11 05:49:41
问题 I have an embedded H2 database running that I have been connecting to as such: Browser H2 interface This works exactly as desired. I'm using JPA/EJB/JSF to build an EAR that will run on Liberty Profile. I've configured Liberty Profile to work with several different databases in the past, but am having no luck with H2. My server.xml looks like this: <!-- Enable features --> <featureManager> <feature>ejbLite-3.1</feature> <feature>servlet-3.0</feature> <feature>localConnector-1.0</feature>

Exception thrown by application class 'java.lang.String.substring:1339' Websphere Liberty

十年热恋 提交于 2019-12-11 05:48:54
问题 I am trying to run my app on websphere liberty. When I try to run my application I get the following error which was not present on Tomcat. I am trying to run netflix Eureka open source project (https://github.com/Netflix/eureka/blob/da2f9e5bcf2503487a52d839093f039bea065af2/eureka-core/src/main/java/com/netflix/eureka/StatusFilter.java) Exception thrown by application class 'java.lang.String.substring:1339' java.lang.StringIndexOutOfBoundsException: String index out of range: 8 at java.lang