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
2
votes
1 answer

Servlet encoding woes in Open Liberty

I have a simple test servlet that should output a non ASCII character (right single quotation mark - ’). In Tomcat, it works, but in Liberty I get junk. Is this a bug in Liberty, am I doing it wrong, or a config issue? package test; import…
Jim W
  • 4,866
  • 1
  • 27
  • 43
2
votes
1 answer

My welcome-file is returning an empty page in Open Liberty

On Open Liberty 21.0.0.6., instead of presenting my welcome JSF page, my browser returns empty content when I point it to http://:/, web.xml
Scott Kurz
  • 4,985
  • 1
  • 18
  • 40
2
votes
2 answers

Openliberty PostgreDB connection with sslMode=verify-ca fails

i'm trying to connect my Openliberty Server to a PostgreDB with a higher sslMode than just "require". Here's the server.xml: jaxrs-2.1 mpHealth-2.1 ejbLite-3.2
sofarsoghood
  • 243
  • 2
  • 16
2
votes
2 answers

How to control module loading order in Liberty profile

I have an ear file with a web module and a ejb module(just used for message driven beans). The ejb module has dependency on web module and it's classes. I would need to load the web module first and then ejb module. But the liberty always loading…
2
votes
4 answers

Enable and run sipservlets on openliberty

I am looking at using openliberty as you seem to support the sipservlet module. Looking at your docs it is only described in the reference section which doesn't provide any examples of use. Assuming that it follows the standard I tried to run a…
ChrisM
  • 21
  • 4
2
votes
2 answers

Is it possible to use Jakarta ee 9 in OpenLiberty 20.0.0.2-beta and any version of MicroProfile?

Is there a way in OpenLiberty (v20.0.0.2-beta or other version) to use jakarta ee 9 (either viawebProfile-9.0orjakartaee-9.0or any jakarta ee only packages) with MicroProfile, preferably v4.0 but v3.0 would be OK too Currently using jakarta + MP…
titou10
  • 2,814
  • 1
  • 19
  • 42
2
votes
1 answer

How can I start an Open Liberty server in debug mode with the liberty-maven-plugin "run" goal?

The liberty:run goal of the liberty-maven-plugin provides a single goal to create a server, install needed features and deploy my app, but what if I want to attach a debugger to step through my application? The liberty:debug goal isn't the answer…
2
votes
1 answer

log4j-to-slf4j not picking up log4j2.xml

Trying to deploy a liberty application to OCP and merge the liberty logging with the application logging per example: https://openliberty.io/blog/2020/05/19/log4j-openshift-container-platform.html Our application uses LOG4J2 to configure and run the…
kenny
  • 1,157
  • 1
  • 16
  • 41
2
votes
1 answer

Why is hostname verification done even though verifyHostname is false?

In trying to get secure rest services to work on Open Liberty in a container, I get the following error: CWPKI0824E: SSL HANDSHAKE FAILURE: Host name verification error while connecting to host [hostname]. The host name used to access the server…
Anthon
  • 95
  • 7
2
votes
1 answer

Liberty OpenId Connect Error 403: AuthorizationFailed

I am trying to access a protected servlet(whoAmI) which require xyz role. Using keycloak as openid provider, this is my openid-connect configuration
Dyapa Srikanth
  • 1,231
  • 2
  • 22
  • 60
2
votes
1 answer

Why can my queue not be found in context lookup?

We have a service to send messages to an IBM MQ queue. I'm trying to get this to work in Liberty, but when the service class is in postConstruct I get a NullPointerException looking up the queue by its JNDI name. Here is the relevant portion of the…
Anthon
  • 95
  • 7
2
votes
1 answer

How to activate hot-deployment in OpenLiberty for single files?

I have installed openLiberty 20.0.0 and I want to activate hotdeployment. For that I added the applicationMonitor tag into the server.xml
Ralph
  • 4,500
  • 9
  • 48
  • 87
2
votes
0 answers

Auth failed when run tests against Liberty Arquillian Remote

OpenLiberty 20.0.0.1 AdoptOpenJDK 8 Here is the sample codes. The arquillian.xml config.
Hantsy
  • 8,006
  • 7
  • 64
  • 109
2
votes
2 answers

OpenLiberty Docker image with *all* features enabled

The OpenLiberty Docker Images tagged as full contain a server.xml that only enables the javaee-8.0 feature. Those tagged as microProfile3 only enable microProfile-3.0. I want both... even better: I'd like to have just all features enabled while I'm…
rü-
  • 2,129
  • 17
  • 37
2
votes
1 answer

How to get global attributes like application name in was liberty

I'm googling but I find difficulties in finding translate for the strings to pass to the config.getServletContext().getAttribute() method in the next two lines. These lines are from an application deployed on WAS 8.5. String applicationName =…
Falco
  • 1,458
  • 3
  • 19
  • 47