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

UnauthorizedSessionRequestException: SESN0008E If user leaves application inactive in browser for some time

I keep getting following error in my JSF application when I leave app sitting in browser for some time, then try using it again; com.ibm.websphere.servlet.session.UnauthorizedSessionRequestException: SESN0008E: A user authenticated as anonymous has…
pixel
  • 9,653
  • 16
  • 82
  • 149
0
votes
1 answer

How can I use Open Liberty dev mode with my Maven WAR project and include JavaScript and CSS files from outside my project (eg from my local machine)?

I have some JavaScript and CSS files which are not part of my WAR module source repository. They are not packaged in a Maven dependency either. I separately extract them to a path on my local system. How can I use include these resources in my…
Scott Kurz
  • 4,985
  • 1
  • 18
  • 40
0
votes
1 answer

Getting CWWKF0044E incompatible feature error using Open Liberty with Maven, but I didn't configure incompatible features

When using Open Liberty version 22.0.0.5 and liberty-maven-plugin version 3.3 with a server config (server.xml) configuring just a single feature: batch-2.0 and running "dev…
Scott Kurz
  • 4,985
  • 1
  • 18
  • 40
0
votes
0 answers

Running Open-Liberty as a non root user

We are trying to run an Open Liberty on a Red Hat server 7.9, however, the service will not start. Systemd script which is starting the application is giving the following message: OPENLP.service - IBM WebSphere Application Server Loaded: loaded…
0
votes
0 answers

Maven: how to mitigate mvn "fileNameMapping has been removed ... use outputFileMapping instead"

using mvn install I get the error message "fileNameMapping has been removed with version 3.0.0 but you are still using it...". First of all, I am not using "fileNameMapping" anywhere, but I might use some pom which in turn might use it. First…
0
votes
0 answers

How to fetch ${wlp.server.name} in log4j2.properties when we are using websphere liberty profile

My application is using websphere liberty profile(wlp) as server and my application is springboot application. I have a bootstrap file like below: Server_log_filepath=/somepath/${wlp.server.name} application_log_filename=${wlp.server.name} Now…
0
votes
2 answers

How can I return a custom reponse for a bean validation error under Open Liberty?

We are using beanValidation-2.0 and cdi-2.0 under Open Liberty 20.0.0.3. This works fine in that Open Liberty returns a 400 Bad Request response containing the bean validation error message when a a bean validation error is detected. I would like…
Geoff Alexander
  • 419
  • 5
  • 13
0
votes
1 answer

OpenLiberty JakartaEE with IBM MQ Resorce Adapater - java.lang.NoClassDefFoundError

I'm upgrading an OpenLiberty application to Jakarta EE 9.1 that integrates with IBM MQ using it's JMS resource adapter. Resource adapter is declared in the server.xml like this:
Evandro Pomatti
  • 13,341
  • 16
  • 97
  • 165
0
votes
1 answer

How to utilize jeemanagement-1.1 performance statistics in openliberty

We're migration a legacy software from WebSphere traditional to OpenLiberty. Just recently we have been extracting Performance Data based on the jeemanagement specification which says: JSR77.6.1 Performance Data Framework The Performance Data…
dag
  • 1,133
  • 12
  • 25
0
votes
2 answers

How to read Open-Liberty server config property file value in java class?

I have a scenario where I need to read an url from my property file I have created in a server config directory of my created server i.e. C:\\openliberty-21.0.0.11\wlp\usr\servers\TestServer\config\test.properties . I…
Anonymous
  • 1,726
  • 4
  • 22
  • 47
0
votes
1 answer

JSP-Error: Only a type can be imported. com.ibm.ws.webcontainer.webapp.WebAppErrorReport resolves to a package

I am migrating a project from Websphere server to OpenLiberty-21.0.0.1 along with other technical stack. While running the application , in one of the JSP page it gives me runtime error as bellow: Only a type can be imported.…
Anonymous
  • 1,726
  • 4
  • 22
  • 47
0
votes
1 answer

Why is OpenLiberty datasource not available in unit tests?

OpenLiberty is running in dev-mode. Somewhere in my code i use Context initContext = new InitialContext(); DataSource ds = (DataSource) initContext.lookup("app/myDB"); with a datasource configured in the webserver:
kanonroald
  • 41
  • 6
0
votes
1 answer

What are the differences in features between Websphere Liberty Core, Websphere Liberty Base and Open Liberty versions?

What are the differences in features between Websphere Liberty Core, Websphere Liberty Base and Open Liberty versions? Apart from the Websphere Liberty ones requiring a license, of course and Open Liberty being the 'upstream' open-source project, of…
David G.
  • 161
  • 1
  • 11
0
votes
1 answer

NullPointer while using JPA EntityManager in a ThredPoolExecutor

I'm implementing a JavaEE8 application using CDI and running on an Open Liberty (v20.0.0.4). The application has a event-triggered job, which runs some code in an separate thread using the ThreadPoolExecutor like this: @Singleton public class…
0
votes
1 answer

How does WSSubject.getCallerPrincipal() extract a logged in user data in Java EE application?

I am being new to Java EE application. I am working on one of the legacy project migration task, while doing that I need to get some idea how the authentication machanism works in the application. It is using IBM OpenLiberty server. As per the…
Anonymous
  • 1,726
  • 4
  • 22
  • 47