Questions tagged [open-liberty]

Open Liberty is a highly composable, fast to start, dynamic application server runtime environment distributed under the EPLv1 license.

This tag is specifically for questions relating to the Open Liberty.

Developer download links

Forum links

More resources

456 questions
1
vote
1 answer

Configure OpenLiberty server to use application's Logback configuration file

I have a web application that uses Open Liberty for development — using the Maven plugin. Currently there is no custom/special configuration applied to the same, just the plugin in the pom.xml file for "development":
x80486
  • 6,627
  • 5
  • 52
  • 111
1
vote
1 answer

Custom JsonbSerializer serialises properly on one machine, generates incomplete JSON on another

I'm trying a custom serialiser for Order objects in Jakarta EE. The problem is that it works properly on one machine, while the other complains about incomplete JSON. It's the exact same code pulled from our Github, including pom.xml, server.xml,…
stitch123
  • 197
  • 9
1
vote
1 answer

Unable to bind JMS resources with Openliberty

I am doing my first steps with Jakarta Messaging on OpenLiberty. A simple sender and receiver "test". But I am having troubles binding the JNDI resources. This is my server.xml config: ...
kanonroald
  • 41
  • 6
1
vote
1 answer

JSF user logs in successfully even after user account was locked by LDAP

I use JSF 2 deployed on Liberty 22.0.0.6 server. My FORM based authentication is against LDAP using j_security_check. It is working and my user can log in/authenticate and get LTPA2 token back. And logout functionality works as well. However, I…
pixel
  • 9,653
  • 16
  • 82
  • 149
1
vote
1 answer

Configuring Apache Derby dependency in Open Liberty Maven project

I'm trying to connect a Derby database with my Open Liberty application, but I can't get it to work. I don't think I understood the process correctly. Here's what I did. I downloaded db-derby-10.15.2.0-bin.tar.gz from the Derby website and extracted…
1
vote
1 answer

How to configure external properties folder and libraries in Liberty server 22.0.0.13

I am working with IBM WebSphere Liberty and I have multiple applications that require the same set of properties and libraries. I would like to configure these common properties and libraries at the server level so that they are available to all…
1
vote
2 answers

Spring Boot on Open Liberty - "IllegalArgumentException: Could not resolve placeholder" substituting "LOG_DIR" env var value in application.properties

I have Spring Boot API that I run on Liberty or OpenLiberty server. In Liberty server.env file I have settings for logging like: log_dir=C:\mydir log_level=INFO Then in my application.properties file, I have setting…
pixel
  • 9,653
  • 16
  • 82
  • 149
1
vote
1 answer

Common library path when using liberty maven plugin

I'm trying to use the open liberty maven plugin. My app has a set of common jars that I define as listed below in the server.xml file. To use the liberty maven plugin I can't use the element (AFAIK) . Can I config a shared library…
Mr Smith
  • 3,318
  • 9
  • 47
  • 85
1
vote
1 answer

Getting "A feature definition could not be found for microprofile-5.0" after deploying Open Liberty Docker image on Kubernetes

We are facing an issue were we are trying to upgrade our liberty version from 19.0.0.6 to 23.0.0.1. We are deploying the applications as containerized application on K8 cluster using open-liberty:kernel-slim-java8-openj9-ubi image. This the…
RAK
  • 13
  • 3
1
vote
1 answer

Openliberty login issue "The user is not granted access to any of the required roles"

or maybe someone can tell me what is wrong. I am working on a small app..following this tutorial : https://openliberty.io/guides/security-intro.html Problem I get is : Authorization failed for user bob while invoking ServletsJspExperiments on…
Teshte
  • 624
  • 1
  • 7
  • 26
1
vote
0 answers

Openliberty looking in wrong location for application dependencies

I have a multi-module java / maven application that I'd like to run on openliberty in dev mode (mvn liberty:dev). The application is structured as follows: root \ejb \ear OpenLiberty is looking for dependencies in the \ejb\target\classes folder on…
John Deverall
  • 5,954
  • 3
  • 27
  • 37
1
vote
2 answers

Open Liberty application server and jandex version

I want to improve the startup time of my Open Liberty application using Jandex, as described in https://www.ibm.com/support/pages/node/745421 and…
stefan.m
  • 1,912
  • 4
  • 20
  • 36
1
vote
2 answers

Servlet code is reached but does not find the html file

I am following this tutorial: https://openliberty.io/guides/microprofile-config-intro.html I have the following servlet : import jakarta.servlet.RequestDispatcher; import jakarta.servlet.ServletException; import…
Teshte
  • 624
  • 1
  • 7
  • 26
1
vote
3 answers

Authenticate all OpenLiberty end-points through JWT

I have a setup such that end-points annotated with @RolesAllowed require both authentication and authorization. However, those end-points without any particular annotation don't even demand authentication. How do I configure the server such that all…
DanielM
  • 1,106
  • 3
  • 17
  • 27
1
vote
0 answers

Liberty can not serialize record type to json

I have this setup : @Path("/client") @Stateless @Produces({MediaType.APPLICATION_JSON}) @Consumes({MediaType.APPLICATION_JSON}) public class ClientResources { @EJB private ClientService clientService; @GET @Path("/get") public…
mah454
  • 1,571
  • 15
  • 38