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

Liberty Profile - getting error in Linux [Cannot start a new UOW. A LocalTransactionContainment is already active with work]

I'm using the following version of Websphere Liberty Profile in Windows WebSphere Application Server 19.0.0.6 (1.0.29.cl190620190617-1530) on Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_211-b12 (en_US) Linux WebSphere Application Server…
1
vote
2 answers

Install a default DataSource in OpenLiberty by maven plugin

I was trying to set a DefaultDataSource for openliberty 20.0.0.1. The src/liberty/config/server.xml is:
Hantsy
  • 8,006
  • 7
  • 64
  • 109
1
vote
1 answer

How can I execute a subset of tests in OpenLiberty dev mode

In order to execute the whole test suite you only have to press enter key in dev mode. But how to execute one only test or a subset of the whole test suite?
Paco Abato
  • 3,920
  • 4
  • 31
  • 54
1
vote
1 answer

Is development mode of Open Liberty executed in foreground or background

In Open Liberty server there are several goals to start it like liberty:run, liberty:start and liberty:dev. In the docs I see that run executes the server in foreground and start in background but I can't find if the development mode dev executes it…
Paco Abato
  • 3,920
  • 4
  • 31
  • 54
1
vote
2 answers

Openliberty enable wire debug traces

I'm facing an issue that requires me to debug the HTTP traffic within two microservices, we are implementing our microservices with microprofile v3 and openliberty. I've tried to enable the HTTP traces through server.xml and by environmental…
Javier Toja
  • 1,630
  • 1
  • 14
  • 31
1
vote
0 answers

JSR 352 Batch | java.sql.SQLRecoverableException: Closed Connection

I am trying to run a jee batch application. It works fine in my local machine but when I am trying to run the same jee application in a docker container, I am getting the below exception in…
Chirag
  • 211
  • 4
  • 16
1
vote
1 answer

Arquillian with Open Liberty

Im trying to add some simple integration tests for my application. Im following the guide here: https://openliberty.io/guides/arquillian-managed.html However, when I try to run the tests I get an error saying Tests run: 1, Failures: 0, Errors: 1,…
Awkjand
  • 11
  • 2
1
vote
1 answer

Open Liberty 19.0.0.7 batchManagement-1.0 feature cannot be found

I am running my app on Open Liberty 19.0.0.7/wlp-1.0.30.cl190720190711-1115 on Eclipse OpenJ9 VM, version 11.0.3+7 And even though I added batchManagement-1.0, batch stuff does not work. According to OL docs - this feature…
ikos23
  • 4,879
  • 10
  • 41
  • 60
1
vote
0 answers

How to prevent liberty from converting "+" to " " in URL

We had an issue where clients were sending "+" as part of a parameter value without percent-encoding it. After digging in, it looks like converting "+" to " " is from HTML form encoding, but not part of the URL spec. I found…
lmsurprenant
  • 1,723
  • 2
  • 14
  • 28
1
vote
1 answer

How to use custom converters within the server.xml configuration property literals/variables in OpenLiberty?

I really want to use container managed transactions with JPA and therefor would go the easy way of having the data source creation within the server.xml and then using the @PersistenceContext within my code. The problem I currently face - and maybe…
1
vote
2 answers

Open Liberty SSLHandshakeException for official Docker image microProfile3java11

I'm trying to access a dummy REST API like https://reqres.in/api/users or https://jsonplaceholder.typicode.com/todos with a simple JAX-RS client like: public class RandomDataProvider { private WebTarget webTarget; @PostConstruct public…
rieckpil
  • 10,470
  • 3
  • 32
  • 56
1
vote
1 answer

How to add verification public key at runtime to mp-jwt in openliberty micro profile for Cloud Foundry usage?

Based on this documentation: https://www.ibm.com/support/knowledgecenter/de/SSEQTP_liberty/com.ibm.websphere.wlp.doc/ae/twlp_sec_json.html it is possible to add the verification key to the keystore or hardcode it during design time. The problem I…
Inkvine
  • 129
  • 7
1
vote
1 answer

Setting custom revision information with Hibernate Envers on OpenLiberty

We're migrating an application from JEE7 to JEE8. This application relies on Hibernate-ORM and Hibernate-Envers. On JEE7 it was version 5.2.17, on JEE8 it is 5.4.3 now for both liberaries. We have a custom revision entity which extends the…
skedi
  • 13
  • 2
1
vote
1 answer

How to setup an EJB timerDataSource in Open Liberty

I try to deploy a Java EE Application containing several EJB Timer Services (with persistence=true). The server complains that no datasource was defined: Caused by: javax.ejb.EJBException: See nested exception; nested exception is:…
Ralph
  • 4,500
  • 9
  • 48
  • 87
1
vote
1 answer

Using Eclipse Microprofile NOT on root context (OpenLiberty)

I'm using the eclipse microprofile (2.1) feature on my open liberty. But all functions are running on root path (for example /health). I want to have it on an other context like "/app". Is it to possible to do a configuration for that (maybe on…
aemik
  • 35
  • 4