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

OpenLibertyApplication in Openshift cloud cluster

Problem Deploying OpenLibertyApplication rewrites the /config/server.xml specified in the container image What did you do? Deployed OpenLibertyApplication with initial configuration in src/main/liberty/config/server.xml:
sam
  • 33
  • 6
1
vote
1 answer

Springboot and Liberty Server - Spring JPA - Having database credentials in server settings file instead of Spring application.properties

I am using Springboot with Spring JPA. My application is connecting to database and I am currently using spring.datasource.url=jdbc:oracle:thin:@..... spring.datasource.username=blahblah spring.datasource.password=xyz , specified in Spring…
pixel
  • 9,653
  • 16
  • 82
  • 149
1
vote
1 answer

How to setup stage-specific microprofile config with java-ee8, microProfile 4.0, Openliberty 21 and Docker

I have a problem with my application using JavaEE8, Openliberty 21.0.0.5 and Microprofile 4.0 inside a docker container. I cannot set the mpConfig-2.0-introduced mp.config.profile from "outside" the image. My setup is as…
1
vote
1 answer

liberty:devc: not being honored

I observe that the element, though it points to a valid Dockerfile is not honored by liberty:devc. Consider this output from mvn help:effective-pom:
edburns
  • 482
  • 1
  • 4
  • 13
1
vote
1 answer

JMS configuration issue in OpenLiberty 21.0.0.5

I have tried JMS in my sample project. When using a single queue it works well, e.g.:
Hantsy
  • 8,006
  • 7
  • 64
  • 109
1
vote
0 answers

Unmarshaller throws IllegalAccessError on simple XML String parsing

I would like to deserialize a simple xml string to an object using the javax.xml.bind.Unmarshaller in an java EE application running in open-liberty. I have following method to deserialize: Deserialize package com.my.deserializer; public class…
Michi-2142
  • 1,170
  • 3
  • 18
  • 39
1
vote
1 answer

SSL handshake failure for postgres connection over cloud in liberty

I have been stuck with this issue longer than i want to admit. I am trying to use postgres db connection for my small spring mvc project over liberty. My server.xml looks like below.
1
vote
0 answers

JPA 2.2 `EntityManager.merge` inserting instead of updating

I have only this simple Entity (no relationships at all, just some scalar fields): @Entity @Table @Access(AccessType.FIELD) public class MyEntity { @Id @Column private String myPK; /* ...other fields... */ public MyEntity(String myPK /*…
rslemos
  • 2,454
  • 22
  • 32
1
vote
1 answer

Liberty and OpenLiberty console/messages encoding to UTF-8

I'm using OpenLiberty (automatically downloaded through its maven plugin) and my application is working fine (jax-rs and servlet/jsp outputs are fine). But the console (and messages.log) output is messy. Here is one example: [INFORMAıåES] SRVE0253I:…
rslemos
  • 2,454
  • 22
  • 32
1
vote
1 answer

How do I build a runnable JAR from a WebSphere Liberty / Open Liberty Maven WAR project?

I want to build a runnable/executable JAR (to run with java -jar my.jar), using Open Liberty, from my Maven WAR project. If I run mvn package I get a WAR, but if I then run mvn liberty:package I get something like: [INFO] CWWKM2001I: Invoke command…
Scott Kurz
  • 4,985
  • 1
  • 18
  • 40
1
vote
1 answer

Setting Microprofile active profile using mp.config.profile not working in Liberty

Im currently trying to run a microprofile open liberty project as a jar. java -jar myapp.jar -Dmp.config.profile=test The app runs but is not picking the configuration values from microprofile-config-test.properties instead is using values from…
1
vote
1 answer

How can I run Open Liberty without enabling the javaagent: wlp/bin/tools/ws-javaagent.jar?

While using OpenLiberty docker image I found that by default ws-javaagent.jar enabled on server. Is their any way skip this ?
1
vote
0 answers

Liberty redeploy fail with mbean

Ibm liberty app redeployment of war with mbeans fail with below error, war fully copied to dropin but due this error, war not exploding at all.could see few jars from previous installment in exploded/appname/web-inf/lib folder. How to resolve this…
user961524
  • 537
  • 1
  • 7
  • 19
1
vote
1 answer

Dynamic Updates open-liberty in Eclipse

I have Open liberty server installed in eclipse. Any changes to .html , .java or server.xml files are picked as soon I save the file. However changes to .xhtml files are not picked in the same dynamic way. I have to do a runas on server to see the…
RocknRolla
  • 21
  • 1
1
vote
1 answer

How can I debug my tests in Open Liberty server dev mode (using liberty-maven-plugin) and toggle the debugger on/off?

SUMMARY How can I iteratively run my unit/integration tests in "dev mode" of the liberty-maven-plugin and easily turn on and off the launching of the debugger into the JVM running the tests themselves? BACKGROUND While the liberty-maven-plugin by…