Questions tagged [websphere-liberty]
IBM WebSphere Liberty is a highly composable, fast to start, dynamic application server runtime environment.
1,694
questions
1
vote
1
answer
52
views
What does error SRVE0315E indicate in ibm websphere liberty server?
I have WebSphere application server liberty - 17.0.0.2 installed. When i try to hit website URL after turning up crsServer, The front page displays "An error has occurred. Please contact your ...
0
votes
0
answers
47
views
Duplicate a liberty server, application won't start
I have installed on my laptop a Liberty server, just unzipped, launched server create <name> and copied some files from the remote server test environment and put a .war with a local ...
-1
votes
1
answer
36
views
How do I run new features in a Java 8 project that will be upgraded to Java 11?
I'm supposed to upgrade a Java project from 8 to 11. I've been told to add some features initially to test if the server runs but it doesn't. This is what I did.
In pom.xml, I changed
<jdk.version&...
0
votes
0
answers
35
views
WSIF Service Failure
When running my application I am getting WSIFException
WSIFMessage outputMessage = execute(
"listar",
"listarRequest",
"listarResponse",
...
0
votes
1
answer
44
views
JSF user lockout after X failed login attempts
For my JSF 2.3 application, I use form login in to authenticate user (against LDAP). The container is Liberty server.
This is all working fine.
However, I am trying to implement user lockout after 3 ...
0
votes
1
answer
25
views
Security headers setup on WebSphere 9.0.5.13
I have to get all these Headers (mentioned below) green when checked the URL "https://.com" on securityheaders.com.
Headers: "Strict-Transport-Security" "Content-Security-...
1
vote
3
answers
58
views
ClassCastException with ECIConnectionFactory running in Liberty
The problem - I am receiving the following message:
java.lang.ClassCastException: com.ibm.connector2.cics.ECIConnectionFactory incompatible with com.ibm.connector2.cics.ECIConnectionFactory
I am ...
1
vote
0
answers
69
views
Liberty can not serialize record type to json
I have this setup :
@Path("/client")
@Stateless
@Produces({MediaType.APPLICATION_JSON})
@Consumes({MediaType.APPLICATION_JSON})
public class ClientResources {
@EJB
private ...
0
votes
0
answers
40
views
@Transactional on EJB beans
Too simple, this is my setup :
Jakarta : 9.1
Liberty Application Server : 22.0.0.10
server.xml :
<?xml version="1.0" encoding="UTF-8"?>
<server description=&...
0
votes
0
answers
113
views
How to create authorization roles from OIDC token in WebSphere Liberty server application using social login feature?
I am trying to implement role based authorization in an application running on WebSphere / Open Liberty server. Authentication is implemented using OIDC token & socual-login feature & it is ...
0
votes
1
answer
94
views
How to remote debug two applications on the same WebSphere Liberty
I have two applications Java 8 applications that exposes different typologies of services, but they rely on each other for some task. They are implemented in the same WebSphere Application Server on ...
0
votes
0
answers
59
views
Repeated JAAS call after connecting to filenet
I have an application running on a Liberty server, every time a request is made to Filenet through the eclipse console I get the following message over and over again:
2022/10/06 09:28:41:526-DEBUG- -...
0
votes
0
answers
63
views
I am getting internal server error 500 while hitting the url
ERROR:ws_common: websphereHandleRequest: Failed to handle request rc=2 ws_common: websphereShouldHandleRequest: Config was successfully reloaded
025400da 00000809 - ERROR: ws_common: ...
0
votes
1
answer
120
views
Environment variable in Jenkinsfile
We are trying to use ${server.config.dir} in jvmOptions
-Djava.security.auth.login.config=${server.config.dir}/kerberos/client_jaas.conf
Can we set this as part of Jenkins environment variables?
We ...
0
votes
0
answers
111
views
how to stop and start liberty cluster and its members
I have around 8 WLP servers running I did setup collective and its members. However, when I go to the WLP frontend and selected the cluster perform stop nothing happens. If I want to stop all WLP ...
0
votes
1
answer
124
views
Unable to establish connection using jms jndi
I am very new to JMS & JNDI, and I'm trying to receive message from a queue programatically, but I am not sure how I can connect to the server. I have Websphere console UI where I login to manage ...
0
votes
0
answers
70
views
SpringBoot: Unable to locate Spring NamespaceHandler for XML schema namespace [http://cxf.apache.org/jaxws]
When I start up my SpringBoot application I see the following exception:
2022-09-16 16:54:35.435 WARN 13916 --- [cutor-thread-13] ConfigServletWebServerApplicationContext : Exception encountered ...
1
vote
0
answers
131
views
Websphere Liberty: configure virtualHost alias for a springboot application
I have multiple instances of springboot application running in Websphere Libery, with following server.xml:
<?xml version="1.0" encoding="UTF-8"?>
<server description=&...
0
votes
1
answer
77
views
Liberty on Kubernetes: best way to restart server short of a pod restart?
This is related to another question about system properties. In that question, I make the offhand comment:
It seems to me you'd need to send a UNIX signal (SIGINT maybe?) to Open Liberty to cause it ...
0
votes
1
answer
35
views
share MQ Libraries installed on server1 to share on server2 liberty server.xml
We have configured WLP and MQ to use JMS messaging. On a server1 where the Liberty Servers and MQ installed we referred the MQ libraries as below and it's working fine. However, we are not sure from ...
0
votes
2
answers
55
views
DistributedMap feature: how to use it
How to use the Liberty's distributedmap feature in a Java application?
Where I can find the required Maven dependencies (com.ibm.websphere.cache..)?
1
vote
1
answer
57
views
Liberty server.xml <library> <folder includes="*.properties" scanInterval="5s">: refresh
I have a customer using open liberty on Azure Kubernetes Service. They have a server.xml which refers to properties files using the mechanism. Their setup is similar to this question:
java - WAS ...
1
vote
0
answers
42
views
Unable to get claims added to my jwt when using jwtsso+oidc in OpenLiberty
I am securing my frontend in Liberty with openidConnectClient, while also generating a JWT to achieve sso with different other downstream systems. For that I'm trying to benefit from the jwtSso ...
3
votes
1
answer
91
views
WebSphere Liberty - Batch reader/writer/etc. not showing updated values when job is re-run with different job parameter values
When I ran a job multiple times on the liberty server it allways takes the parameter values of my first job ran although I changed the values. So I can't run the job multiple times with different ...
0
votes
1
answer
63
views
Weblogic to Liberty w JPA upgrade - related entities intermittently not being queried
just a quick question please in case something stands out immediately.
We're migrating an EAR/EJB application from Weblogic 11g to latest WS Liberty (22.x) also upgrading several of the frameworks ...
0
votes
1
answer
413
views
WELD-001408: Unsatisfied dependencies for type Logger with qualifiers @Default
I have upgraded the project from Java EE to Jakarta. As a server, I am using Liberty. I got the following error after the project and server upgrade:
CWWKZ0002E: An exception occurred while starting ...
0
votes
0
answers
102
views
WebSphere Liberty Server not starting up on MacOS
My Liberty Server was working fine a couple of days back but now I am getting some errors and the server is in "Started" state but the application is in "Stopped" state. When I ...
0
votes
1
answer
61
views
Liberty encrypted passwords are not working in Docker
I am passing the datasource to liberty and running dokcer container.
My password = password
[pser@7723sd6 bin]$ ./securityUtility encode "password#01"
{xor}Lz4sLCgwLTt8b24=
I copied ...
1
vote
0
answers
102
views
Websphere Liberty allow outgoing ssl connection to oauth2 authorization server in a Spring boot application
I have an issue to call oauth authorization server to generate access token on websphere liberty core 20.0.0.10
To generate an access token, which will allow me to reach some APIs, I tried to reach ...
0
votes
0
answers
36
views
Force FetchType.LAZY on JPA (prevent eagerly loading of @OneToMany)
Given this entity:
@Entity
public class Person {
@Id
@GeneratedValue
private Long id;
@OneToMany(fetch = FetchType.LAZY)
private List<Role> roles;
...other attributes.....
0
votes
1
answer
221
views
How to log Websphere connection pool information like active connections in spring boot application
We are using Websphere liberty 20.0.0.12 and spring boot (parent) version 2.0.5.
I can find the connection pool information in the JConsole.
How can I print Websphere connection pool information in ...
0
votes
0
answers
18
views
How to install IBM ELM with clustered JAS with multiple Websphere Liberty profiles using IHS reverse proxy
I am using IBM ELM 7.0.2
I need to install ibm elm on single server with enterprise topology.
We need multiple websphere liberty profile.
Any guide which can help us to install ibm elm with clustered ...
2
votes
1
answer
68
views
WebSphere LibertyCore Class loader looking for wrong class
2 applications (A, B)are deployed on my server LibertyServer.
Both contain the "esapi-2.0.1" library.
my server.xml follows:
<library apiTypeVisibility="spec,ibm,api,ibm-spi,third-...
0
votes
1
answer
60
views
WebSphere 9.0 is out of sync
I'm running WebSphere 9.0 (WAS) with eclipse and when I run the ear in the debug's pespective, I note that a out of sync. The steps are different the code line. I builded the project and I deploy ...
1
vote
1
answer
294
views
H2 Database console errors with Sorry, remote connections ('webAllowOthers') are disabled on this server if Spring Boot App deployed to Liberty server
I have spring boot app that uses H2 database.
If I run it on Tomcat (comes embedded with spring boot), it works fine.
However, if I deploy the war to Liberty, I get error like:
Sorry, remote ...
0
votes
3
answers
603
views
With Open Liberty, how to use an environment variable as an application property?
I expected to be able to do something like this in my server.xml, but I could not get it to work:
<variable name="my.ldap.url" value="${LDAP_URL}" />
Setting it in jvm....
0
votes
1
answer
151
views
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: ...
0
votes
0
answers
80
views
IBM Liberty ND collective member getting SSL HANDSHAKE FAILURE while communicating with replica controller
We are using IBM Liberty ND 22.0.0.5, IBM JDK 1.8.0 and trying single collective with 2 replicas. Here is the setup
10.153.38.113
10.153.34.33
10.153.36.165
controller-1 (collective controller)
...
0
votes
1
answer
214
views
Cannot run Liberty server locally - error: Plug-in "com.ibm.ws.st.core" was unable to instantiate class WebSphereLaunchConfigurationDelegate
Trying to set up Liberty Server for running wlp locally. I have done this before, but now get an error:
Plug-in "com.ibm.ws.st.core" was unable to instantiate class "com.ibm.ws.st.core....
0
votes
0
answers
93
views
ORA-01000: Is the number of cursors equal statement cache size times connection pool size?
We migrated an application FROM Websphere 8.5 (bundled with OpenJPA 2) and Oracle 12.1
TO Websphere Liberty 22 with Hibernate 5.4 and Oracle 19c
and did thorough testing but no load tests.
After going ...
0
votes
0
answers
312
views
How to manage environment variables in server.env with Vault
How to manage enviroment variables in my config "server.env" at websphere liberty.
In my server websphere liberty:
server.env
username=admin
password=abc123
I want to use Vault to manage ...
0
votes
0
answers
36
views
Creating a new folder and access it via web application
I have this IBM Liberty webserver running on a Linux environment under a user call appserver.
I want to create a new folder outside the application structure and access it from Web UI.
The issue I´m ...
0
votes
1
answer
259
views
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....
0
votes
1
answer
166
views
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:
<featureManager>
<feature>...
0
votes
1
answer
38
views
How to configure outlook emails with Liberty server
There is a Websphere liberty server (linux) and I'm planning to configure outlook mails on that server for triggering a script upon receiving a specific type of email.
How can we make this possible?
0
votes
0
answers
118
views
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}
...
0
votes
0
answers
310
views
Upgrading to Springboot 2.5.x crashes application start on Liberty server
Spring Boot version (spring-boot-starter-parent): 2.5.1
Eclipse 2021
Liberty 20.x
After update to Spring Boot 2.5.1, I am getting following error when starting Liberty server to host my API
[AUDIT ] ...
0
votes
1
answer
40
views
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 ...
0
votes
1
answer
90
views
Logback can't access the specified logfiles
I'm running my app on Websphere Liberty with logback logging. I defined an appender in logback.xml but on startup logback throws FileNotFoundException.
This is the error output:
09:37:33,065 |-ERROR ...
1
vote
1
answer
180
views
Using Open Liberty with EclipseLink JPA provider - javax.persistence.sql-load-script-source not loading
Using Open Liberty version 21.0.0.12 with jpa-2.2 configured among features and Derby DS config:
server.xml
<featureManager>
<feature>jaxrs-2.1</feature>
<feature>...