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

Springboot: Spring JPA - How to get datasource properties from server container

I use WAS Liberty Server container which provides server.xml and server.env file for configuring many things in addition to configuring DataSource properties such as url, username, password etc. For security reasons, these properties are not known…
pixel
  • 9,653
  • 16
  • 82
  • 149
0
votes
1 answer

Open Liberty : sessionCache for SIP session

I would like to know if the functionnality described in the article JCache session persistence is applicable for SIP session as well ? If not, is there an other way to synchronize sip session between Open Liberty instances ? Thanks, Clément.
Clément Honoré
  • 137
  • 1
  • 12
0
votes
1 answer

Use @ArquillianResource to inject URL when deploying an EnterpriseArchive

I am using Arquillian for functional testing an application against a Jakarta EE application server. I am running into an issue where I am unable to properly inject the servlet URL to test against. public class SecurityTests extends ArquillianTests…
KyleAure
  • 465
  • 4
  • 15
0
votes
1 answer

Openliberty arquillian testing

I'm running into an issue when running an integration test with arquillian against openliberty. Basically it is timing out on the deployment. Apparently you can set appDeployTimeout which I have done. However it does not appear to be loaded as it…
user3465651
  • 706
  • 1
  • 4
  • 22
0
votes
2 answers

Share sessions data between different apps using httpSessionCache and HazelCast in OpenLiberty

Usings the OpenLiberty sessionCache-1.0 feature with HazelCast enables you to easily persist and share session data in a HazelCast in-memory cluster as explained here: https://openliberty.io/guides/sessions.html. However in this setup session data…
Jan Snelders
  • 203
  • 2
  • 5
0
votes
1 answer

Entity Manager is null when trying to connect to Dockerised DB2 in Java using JPA, also using maven & Open Liberty

So I'm developing an API and I'm trying to connect to a local docker instance of DB2 from java using JPA entity manager. After running Apache Maven and getting build success, I try a GET request from Postman to test an endpoint and get a list of all…
Dylan VR
  • 15
  • 4
0
votes
0 answers

CDI module in EJB-jar deployed in an EAR

I have the following setup: EAR app.war (WAR module) @Inject SomeService --> works! depends on ejb ejb.jar (EJB module) @Stateless SomeServiceBean @Inject Foo --> does not work beans.xml, bean-discovery-mode="all" depends on tools MANIFEST:…
MaNa
  • 51
  • 6
0
votes
2 answers

Liberty JavaEE 8 catch ConstraintViolationException

Is there any way to catch org.hibernate.exception.ConstraintViolationException in Liberty application server ? I have a this repository code : @Stateless @TransactionManagement(TransactionManagementType.BEAN) public class MarketRepository { …
mah454
  • 1,571
  • 15
  • 38
0
votes
2 answers

JNDI Liberty Server - Not Working if using ${server.config.dir}

I am using jdk 11 with Eclipse 2021 and WAS Liberty 21.0.0.4. I also have OpenLiberty 21.0.0.4 and the same issue happens there. I have ConnectionFactory code that looks like this public class ConnectionFactory { private static DataSource ds =…
pixel
  • 9,653
  • 16
  • 82
  • 149
0
votes
2 answers

How can I eliminate "Content-Language" header from Liberty's response?

WebSphere Liberty and Open Liberty, all version. I want remove "Content-Language" header from Servlet/JSP response, because of browser translation function accidentally popup. It seems that Liberty adds this header on all response in default, and…
Takakiyo
  • 3
  • 1
0
votes
1 answer

@RequestScoped + new thread

We use javaEE RequestScoped with OpenLiberty and new threads via EJB @Asynchronous. I am just curious what the actual value comes from when we inject RequestScoped bean inside a new thread? Will the RequestScoped bean be freshly initialized? Or will…
Dedyshka
  • 421
  • 3
  • 10
  • 20
0
votes
1 answer

Openliberty datasource always uses 1 database connection

I have configured openliberty (version 21) with a database (oracle) connection as follows in the server.xml :
0
votes
0 answers

OpenLiberty mpRestClient tutorial feature definition could not be found

I was excited to read about OpenLiberty's template interface feature to consume Rest endpoints. However, when I clone and run (liberty:run/liberty:debug) the sample project I see the following output in the console: [INFO] [ERROR ] CWWKF0001E: A…
Omnibyte
  • 361
  • 6
  • 18
0
votes
0 answers

Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: org.bouncycastle.asn1.ASN1ObjectIdentifier.e

When I am deploying in liberty server I am getting this error it is working in tomcat server but throwing error in IBM open liberty server [ERROR ] SRVE0777E: Exception thrown by application class…
Arvind Reddy
  • 31
  • 1
  • 8