Questions tagged [open-liberty]
Open Liberty is a highly composable, fast to start, dynamic application server runtime environment distributed under the EPLv1 license.
462
questions
0
votes
1
answer
18
views
Openliberty 23 embedded server does not run servlets after upgrading from openliberty 20
After upgrading from openliberty version 21.0.0.3 to version 22.0.0.1 , my test suites are no longer able to properly load servlets that are placed into the dropins/ directory. I am receiving the ...
0
votes
0
answers
49
views
Connecting to ibm MQ via liberty server config failed due to SSL handshake issue
I have configured server.xml from this reference link (https://www.ibm.com/docs/en/was-liberty/nd?topic=dmal-deploying-jms-applications-liberty-use-mq-messaging-provider) .Initially we made the ...
0
votes
1
answer
34
views
OpenLiberty custom feature dataSource
I'd like my custom OSGi Liberty feature to inject/lookup JNDI datasource, the one that is already defined 'as usual'. Something like this:
<server description="my-server">
<!-- I ...
-1
votes
0
answers
46
views
Open Liberty: configure JAAS custom login module inside EAR application. LoginException: No LoginModules configured for AppLoginModule
I'm migrating a legacy jee application from Websphere to Open Liberty and jakarta 8.
The app contains a JAAS custom login module, which is in one of the app jar files. These jars are packaged in a lib ...
1
vote
1
answer
37
views
Cannot override default cache-control of primefaces resources
I am developing an application in Jakarta EE, Primefaces 12 and OpenLiberty. When I load the app, the primefaces resources (js and css files), mainly containing the URL as "jakarta.faces....
0
votes
0
answers
26
views
Jackson JsonMappingException: cannot be cast to java.lang.Integer
Having a strange issue. I'm trying to run a java app on Websphere Liberty that had been running on WAS 8.5. The site starts but I get the error below when the UI is calling the backend. The app is ...
0
votes
0
answers
56
views
Docker: The command '/bin/sh -c configure.sh' returned a non-zero code: 22
I have a Java application and it uses liberty server. My Dockerfile has suddenly stopped working in Travis. Although, it builds locally but it's not working in my Travis pipeline.
Dockerfile
FROM ...
0
votes
1
answer
58
views
Open Liberty EAR Deploy: NoClassDefFoundError. Server does not load libraries in Web Application WEB-INF/lib folder
Trying to deploy a legacy enterprise application to Open Liberty 23.0.03 (until now, it was working Webshpere 8.5).
The EAR structure:
Starting the server and trying to inizilice spring context and ...
1
vote
1
answer
29
views
CDI exception when trying to use Infinispan JCache on OpenLiberty
I'm trying to use Infinispan and JCache API to add some caching feature tu my JEE app running on OpenLiberty.
I'm trying to make it work in a POC project so, for now, I don't have any code, I'm just ...
0
votes
1
answer
24
views
OpenLiberty caching feature
I would like to add some caching features to my JEE application running on OpenLiberty.
I would rely on JCache API and Infinispan.
I understand that some OpenLiberty features could use some caching ...
0
votes
0
answers
23
views
Project in Eclipse not finding javax.servlet.* with open liberty
I'm trying to run a java project with open liberty, but the servlet API is not being found.
I'm using the WebSphere Application Server Liberty Profile v8.5
server and its pointing to a valid open ...
0
votes
1
answer
18
views
OpenLiberty => Change SAML issuer
Is there a way to change SAML issuer URI in OpenLiberty configuration? i cannot find any documentation about it.
IdP expects svil.environment while i'm sending https://svil.environment/ibm/saml20/...
1
vote
1
answer
19
views
The server is unable to process the 4.0 version and the http://xmlns.jcp.org/xml/ns/javaee namespace in the /META-INF/web-fragment.xml
I'm trying to convert a service that runs on websphere 8.5 to open liberty. I'm getting the error below. How can I find more details on this? I'm assuming something in my web.xml is not supported ...
1
vote
0
answers
14
views
Authorization in OpenLiberty using Custom Identity Store
I am trying to build a web application using primefaces and OpenLiberty. I built a custom identity store which authenticates the password and also returns the groups associated with the user.
I am ...
1
vote
0
answers
29
views
Can you encrypt regular variables in IBM/Open Liberty using securityUtility?
Liberty allows us to encode/encrypt password data. However, is this only for designated Liberty password fields? Or would Liberty automatically decrypt my custom variable if the value was an encrypted ...
0
votes
0
answers
22
views
GWT Compatibility issue with OPEN LIBERTY Vresion 23.0.0_0601
I have upgraded the Open liberty server version (v 23.0.0_601) in for my application.
when we have deployed with the following combination of
JDK version 8.0.372_01 and OPEN LIBERTY version 23.0....
0
votes
0
answers
19
views
Custom OpenLiberty HttpRequestFilter to use API-Keys
I'm using OpenLiberty 22 and my Java 17 EE application is secured with mpJwt-1.2 feature. My mpJwt configuration in server.xml looks like following:
<mpJwt audiences="ALL_AUDIENCES"
...
1
vote
2
answers
88
views
Planning migration from jboss to openliberty
I plan on migrating my application from jboss to openliberty. In jboss, I have a authentication and role mapping done using DatabaseServerLoginModule and configuring in standalone.xml file.
How do I ...
2
votes
0
answers
36
views
Kubernetes: Liveness for apps deployed in liberty app server
As of today, our application has a health check endpoint that is used for liveness probe checks in k8s. Liberty is configured with 50 executor threads. If all the 50 executor threads are busy, the ...
0
votes
0
answers
27
views
How can i override the http status for expired jwt when using microprofile jwt feature
I'm using microprofile jwt feature for role based access. When the jwt expires I receive a 401 status code. In order to maintain consistency with other systems here within the company I'd like to ...
0
votes
0
answers
24
views
source compilation errors for openliberty and JPMS
Does anybody else experience strange Source compilation had errors info messages when running an application with JPMS modules on openliberty. These are info messages I also see in my project:
...\src\...
1
vote
1
answer
47
views
openliberty integration testing with a jar file
I am trying to follow the guide here to learn to run integration tests which is exactly what we need functionality wise.
https://github.com/OpenLiberty/guide-jpa-intro/blob/prod/finish/backendServices
...
0
votes
1
answer
31
views
Liberty Batch function not using database persistence for job repository
I'm trying to use database persistence with the Open Liberty batch features. However, I'm seeing nothing inserted into my DB tables and I see this message in messages.log:
... I CWWKY0005I: The ...
2
votes
1
answer
117
views
How can I set the context root in Liberty using server configuration (server.xml) for my EAR-packaged WARs?
I tried to set my context root with the value "new-ctx" in Liberty server config:
server.xml
<application id="my-ear" location="my-ear.ear" name="my-ear" ...
1
vote
1
answer
143
views
Getting "Failed to notify project evaluation listener" using Liberty Gradle plugin
With a simple Open Liberty project like one generated using the starter website (https://start.openliberty.io/) I get the following error on gradle build:
$ gradle build
FAILURE: Build failed with an ...
0
votes
1
answer
97
views
How do I view the merged Liberty server configuration after includes and configDropins are combined with the original server.xml?
QUESTION
How can I see the "merged" server.xml that the runtime sees after all relevant config is combined according to Liberty precedence rules?
Background
My project's server.xml has a ...
2
votes
1
answer
115
views
How to - enable distributed tracing on our z/OS Connect servers (based on WebSphere liberty Profile and open-liberty)?
I am writing to you today to request assistance in enabling distributed tracing in z/OS Connect and CICS while working with API requesters - from COBOL routines (in the scope of online CICS ...
1
vote
0
answers
40
views
What is right list of dependencies for Microshed and Openliberty Gradle Integration Tests?
I'm trying to run tests with Microshed and Testcontainers but having a hard time with dependencies issues
I have these deps on my build.gradle:
dependencies {
providedCompile 'org.eclipse....
0
votes
0
answers
41
views
Can not inject EntityManager in Arquillian Test when running on OpenLiberty
I am preparing a new template project for Jakarta EE 10, https://github.com/hantsy/jakartaee10-starter-boilerplate
Java 17
Jakarta EE 10
OpenLiberty 23.0.0.5
I tried to add tests for CDI repository ...
1
vote
1
answer
104
views
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 ...
0
votes
1
answer
94
views
Liberty - No Extension Processor found for handling JSPs
In a REST microservice application, one can replicate it using one of the getting start with open liberty sample applications, if you add a JSP page you get a http 403 (forbiden) error and in the ...
0
votes
2
answers
93
views
Is it possible to isolate CDI producers within the module where they are defined (in a module application with shared module)
SETUP
Suppose that you have two bean archive modules A and B where A depends on B (we cannot modify B). Within B, suppose that there is a class in which an EntityManager is injected as follows:
@...
0
votes
0
answers
24
views
No configuration helper found for: class com.ibm.ws.springboot.support.web.server.initializer.WebInitializer
I am trying to build a Spring boot project running on Liberty server. I was able to build the jar. When I am trying to start my server I am getting and error
enter image description here
In build....
0
votes
1
answer
63
views
What are the tag names for icr.io/appcafe/open-liberty?
I need to use the 23.0.0.3 or 23.0.0.4 builds of OpenLiberty as Docker image from icr.io/appcafe.
But docker search icr.io/appcafe/open-liberty (returns http status 404) does not work, and icr.io/...
0
votes
0
answers
22
views
OpenLiberty - How to separate application logs from server logs and set the correct Log level [duplicate]
I use SLF4J with Logback to log events in my application which is deployed on OpenLiberty. The current log output:
[INFO] [07/05/2023 00:07:53:743 CEST] 0000005a SystemOut O [ERROR] o.p.c.p.c....
1
vote
1
answer
62
views
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 ...
0
votes
1
answer
135
views
Java Web Application not running correctly on OpenLiberty Server/Docker
this is going to be a longer question due to the required information to make it clear. I am currently writing a Microservice Application in Java with each Application running on an OpenLiberty Server ...
2
votes
1
answer
87
views
WELD-001408: Unsatisfied dependencies in OpenLiberty with implicit bean scanning (CDI) disabled
Recently, I've discovered the MVC Toolbox for Jakarta MVC. I decided to give it a try. So I'm developing an application with MVC and the Toolbox. I'm packaging the application as an EAR and aiming to ...
0
votes
1
answer
45
views
Is there a way to see all changes between open-liberty versions
We are running quite an older version of OL, and we would like to start upgrading the version, but since there has been so many newer versions, and the version we are on is not even on the docs ...
1
vote
1
answer
90
views
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:
...
...
0
votes
0
answers
85
views
Does WildFly have an equivalent of loose applications from Liberty?
Open Liberty and WebSphere Liberty both support loose applications, where instead of a WAR application you have an XML file that points to various class and jar files on the local filesystem. This can ...
0
votes
1
answer
98
views
How to configure a Liberty application server to connect to TIBCO EMS using JNDI lookup?
I am trying to configure JNDI for Tibco EMS in Liberty Application Server but I am having trouble finding the appropriate resource adapter for Tibco EMS. From my understanding, IBM MQ provides a ...
1
vote
1
answer
71
views
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 ...
0
votes
1
answer
38
views
Strange EclipseLink error - won't allow a table named 'User', other names work fine
I'm writing an application in Open Liberty. I've got this persistent entity (shortened for simplicity):
User.java
@Entity
@Table(name = "User")
public class User {
@Id
@...
1
vote
1
answer
143
views
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
votes
1
answer
58
views
Open Liberty 20.0.0 I need URL forwarding for context_root in server.xml
I am using an open liberty to deploy a war using the application tag in the server.xml. I am required to change the context_root for an application but I want the current context root to redirect to ...
1
vote
1
answer
162
views
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 ...
0
votes
3
answers
534
views
Cannot start Open Liberty server: Failed to execute goal io.openliberty.tools:liberty-maven-plugin:3.7.1:dev
I'm trying to run an Open Liberty server on Ubuntu 18.04, but getting the following error when when executing mvn liberty:dev:
Failed to execute goal io.openliberty.tools:liberty-maven-plugin:3.7.1:...
0
votes
1
answer
88
views
Is it possible to disable the OpenApi UI in OpenLiberty in a production environment?
I'm wondering whether it's possible to disable the OpenApi UI in OpenLiberty in a production environment? For testing purposes this OpenApi UI is great, but I don't want to expose the API in my ...
0
votes
0
answers
15
views
Trying to configure OpenLDAP users with a display name in OpenLiberty
I am using OpenLiberty v21.
I have configured a federated repository that has a participatingBaseEntry (my OpenLDAP repo). I am trying to figure out the correct way of configuring the OpenLiberty ...