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
4
votes
2 answers

WAS Liberty profile - Read property using ClassLoader.getSystemResourceAsStream

We are migrating our application from WAS 6.1 to Liberty. Our application uses third party jars that read property files byInputStream is = ClassLoader.getSystemResource("myproperty.properties"). In WAS 6.1, we set server classpath to the location…
Bruno
  • 43
  • 5
4
votes
1 answer

getServletContext().getRealPath("") returning null in WebSphere Application Server Liberty

I was previously using Tomcat v9.0 in local environment, while using getServletContext().getRealPath("") to retrieve the path, server returned ....metadata.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\WebApp\ However as client runs…
3
votes
1 answer

is it possible to use wildcards for application location in openliberty server.xml

I have a WAR file which contains the version number to it. In openliberty server.xml I had to specify the application location where the version number could be replaced by wildcard matching. e.g., the file name is: my-company-project-vX.Y.war and…
Mohammad Faisal
  • 5,783
  • 15
  • 70
  • 117
3
votes
0 answers

Locale aware bean validation message interpolation at ExceptionMapper in openliberty

I have a JAX-RS @POST endpoint whose input data has to be @Valid: @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public Response myEndpoint(@javax.validation.Valid MyInputData input) { /*...*/ } With…
rslemos
  • 2,454
  • 22
  • 32
3
votes
1 answer

Change custom properties IBM Liberty 20x

How can we define and change custom propeties values in IBM liberty , When migrated from WAS to liberty, below properties in WAS (Web Container Settings > Web container > Custom properties > New) has to be changed in…
user961524
  • 537
  • 1
  • 7
  • 19
3
votes
0 answers

Is it possible to send liberty batch logs to console

Liberty has rich support for logging and tracing as outlined in https://www.ibm.com/support/knowledgecenter/SSEQTP_liberty/com.ibm.websphere.wlp.doc/ae/rwlp_logging.html Based on that, I am able to get audit, messaging, and trace logs sent to the…
lmsurprenant
  • 1,723
  • 2
  • 14
  • 28
3
votes
2 answers

Why does my liberty configuration result in an unknown object name error?

We are trying to make our project which currently runs on WebSphere also work on Liberty. In trying to get an MDB to work I get the following error: JMSCMQ0001: IBM MQ call failed with compcode '2' ('MQCC_FAILED') reason '2085'…
Anthon
  • 95
  • 7
3
votes
0 answers

Accessing Keycloak-Service inside Docker by its Network Alias

Scenario I have secured webservice (JakartaEE + Microprofile + JWT) running in open liberty. As issuer of the jwt token I use keycloak. For testing and development i want to run both services in docker. Therefore I wrote a docker-compose file. As…
3
votes
0 answers

Exception handling for microprofile reactive messaging on open liberty

I am currently trying to implement a consumer for kafka messages based on the openliberty mpReactiveMessaging feature: https://openliberty.io/blog/2019/09/13/microprofile-reactive-messaging.html Given a method like: @Incoming("greetings") public…
3
votes
2 answers

XSD schema for Liberty server.xml

I am using Liberty application server, which have server.xml as a configuration file for server. Is there a XSD schema for server.xml? Any of schemes for open-liberty or websphere-liberty - would be good for me.
StrekoZ
  • 618
  • 6
  • 12
3
votes
0 answers

Servlet 4.0, JAX-RS 2.1, and HTTP/2 Multiplexing

I am reading https://www.mnot.net/blog/2019/10/13/h2_api_multiplexing and wondering what it means for our HTTP API implemented in JAX-RS 2.1; especially this excerpt: Your server implementation will also need to be carefully considered to exploit…
lmsurprenant
  • 1,723
  • 2
  • 14
  • 28
3
votes
1 answer

How to enable CORS set up for liberty server which is installed through Docker

I have installed IBM ODM through docker. I need to set up CORS(Cross-Origin Resource Sharing) policy for liberty server. I did CORS set up in server.xml in my local. But I didn't know how to do for docker installation. I added below lines of code in…
3
votes
1 answer

how to externalize context-param values in web.xml

I'm tryin to migrate some legacy (struts2-based) web application from Jboss to Open-Liberty server, and I'm wondering if there is a way to externalize the values of context-params (or filter init-params) from web.xml, like it is possible with the…
3
votes
1 answer

Override application-bnd security-role using configDropins

I have a docker image of a websphere liberty based application. By default, this image uses Basic Authentication with a basicRegistry that has a couple sample users. The basicRegistry group is then bound to a security-role as follows (and this…
lmsurprenant
  • 1,723
  • 2
  • 14
  • 28
3
votes
1 answer

How to define date example in MicroProfile OpenAPI

I tried to create minimal example of the problem. Let's say we have simple return object: public class Result { @Schema(example = "2012-01-01") private LocalDate sampleDate; // omitted getter and setter } returned by simple JAX-RS…
1
2
3
30 31