Questions tagged [websphere-liberty]

1

votes
1

answer
64

Views

Read variable by name from server.xml

How can I programmatically read temp from the xml file from a Java based web application? Was trying: String temp = System.getenv('temp');
bobbyrne01
1

votes
2

answer
231

Views

configuring dev and prod datasource in liberty dynamically to load based on the environment

I am running java batch(jsr352) using liberty server. The datasource configured in server.xml. I would like to load server.xml based on the region(like dev, sit, prod). How can I pass arguments to start liberty server and load the datasource dynamically There could be possiblity with server.env file...
user3540722
1

votes
2

answer
47

Views

javax.naming.NameNotFoundException: on WebSphere Liberty

I'm trying to use a datasource configurated as a JNDI on a WebSphere Application Server Liberty however I'm getting the follwoing error: javax.naming.NameNotFoundException: java:comp/env/jdbc/myapp/master The configuration for the datasource in Websphere application server is: The connection to data...
SocketM
1

votes
1

answer
419

Views

Liberty ldap security-role/group mapping not working

In my server.xml I have the following configuration: My subject after the authentication looks like this: Principal: WSPrincipal:uid=MEMYSELFANDI,ou=person,o=somedir Public Credential: [email protected], realmName=LdapRegistry, securityName=MEMYSELFANDI,...
kinglite
1

votes
1

answer
132

Views

how to unwrap PostgreSQL connection from the IBM WSJdbc41Connection

I have been trying to unwrap PostgreSQL connection from the IBM JNDI (WebSphere liberty ) and have had no luck please any help with that : Context ctx = new InitialContext(); DataSource dataSource = (DataSource) ctx.lookup('jdbc/indi'); Connection cnx = dataSource.getConnection(); I get this excepti...
Joe Kel
1

votes
1

answer
311

Views

how can i use securityUtility --encoding=custom in WAS Liberty 8.5.5.9?

I am using WAS Liberty version 8.5.5.9 (with license) and implementing CustomPasswordEncryption class to do encryption and decryption. I tried to follow as per below link from IBM: https://www.ibm.com/support/knowledgecenter/en/SSAW57_liberty/com.ibm.websphere.wlp.nd.multiplatform.doc/ae/twlp_develo...
Beginner
1

votes
2

answer
497

Views

Connect to Sql Server on liberty using mssql-jdbc

I'm trying to connect to a Sql Server database from a liberty server. Doesn't work as I'm getting a 500 from the liberty server and the logs give me this error message: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: SQL Server...
mTv
1

votes
1

answer
212

Views

Disable batch security in WebSphere Liberty

We use a WebSphere Liberty server behind a reverse proxy. We enabled the appSecurity-2.0 feature to add a custom TAI which validates HTTP request between the proxy and Liberty. To use the batch framework that comes with WebSphere Liberty, we enabled the feature batchManagement-1.0 and added the requ...
Patrick
1

votes
0

answer
99

Views

Grails JNDI issue on WebSphere Liberty

I am having a web application running on Wildfly 10. Application is developed on Grails 2.5 with JNDI data source. When I try to deploy this application on WebSphere Liberty 17.0.0.4, it throws error in log file. Here is the error stacktrace for the same. Stack Dump = java.lang.ClassNotFoundExceptio...
Parth Bhagat
1

votes
1

answer
62

Views

Accessing LoginContext from an OSGi bundle in IBM Liberty

I'm trying to perform a user authentication from within an OSGi bundle deployed inside the IBM WebSphere Liberty server. If I try ctx = new LoginContext('system.DEFAULT', handler); ctx.login(); I get the exception: javax.security.auth.login.LoginException: unable to find LoginModule class: com.ibm.w...
fca
1

votes
0

answer
148

Views

IBM MQ How to tell if your JNDI Bindings are LDAP

I'm currently in the process of migrating an application from AIX to LINUX. One of the processes is to install and setup MQ. I've gotten past setting up the Connection Factory and Activation Spec in my server.xml. My application is connecting to the MQ(which is on the same box). However, it's una...
fergp25
1

votes
1

answer
253

Views

How to setup HTTP Basic Authentication for SOAP Client within WebSphere Liberty

We are trying to deploy an EAR on WebSphere Liberty. Our application contains an EJB-module, which contains and EJB that makes a call to another SOAP server. The WSDL of the service defines a wsp:Policy with ExactlyOne of http:BasicAuthentication xmlns:http='http://schemas.microsoft.com/ws/06/2004/p...
McBeelen
1

votes
0

answer
237

Views

Session expiring too quickly Liberty Profile

I'm having some trouble regarding the session timeout configuration of my JSF 2.2 web application deployed on Websphere Liberty Profile 17.0.0.1. Sometimes (it's an intermittent behavior) after just 1 minute of inactivity the session expires. I have configured this on my server.xml: In addition, I...
Alexandre Gazola
1

votes
0

answer
36

Views

How do I use OSGi services programatically in my Web Application?

I am building a web application where the customer will be allowed to call their custom OSGi services for validations in the form. For this, I need to continuously monitor a particular folder for any new OSGI bundles being added to it. I have tried numerous links and tutorials but none of them give...
Abhishek Kothari
1

votes
1

answer
90

Views

Time-out w/ Gradle deploy of Spring-based web application to WAS Liberty

I am trying to write a simple Spring-based web service to run on WAS Liberty 8.5.5.9. The application is a Gradle project, and I build and deploy the application with the command gradle clean build deploy. However, this fails with the following message: [ant:deploy] CWWKM2006I: Deploying applicati...
Mark Lavin
0

votes
0

answer
9

Views

Error code 200 when opening a connection to websocket using spring-boot-starter-websocket

I am using spring-boot-starter-websocket and trying to create a websocket, without sockJS option. I use 1.5.4.RELEASE version. I use 'Simple Websocket Client' chrome extension to test my websocket. I get error failed: Error during WebSocket handshake: Unexpected response code: 200 when I try to ope...
csharpnewbie
1

votes
1

answer
36

Views

What is order of evaluation for @Autowiring in SpringBoot project

I'm trying to write a simple SprintBoot REST Controller to run on Websphere Liberty, and having a problem with @Autowire. Here are the relevant (I think) pieces of code: @CrossOrigin @RestController @RequestMapping(path = 'userSetting') public class RESTInterface { @Autowired private UserSettingDA...
Mark Lavin
1

votes
1

answer
49

Views

Moving SpringBoot simple web service from Tomcat to Liberty doesn't recognize end point

With help from SpringInitializr, I've written a simple web service to recognize one endpoint '/hello'. When I build a .war on Gradle and run it, the service starts on (built-in) Tomcat and correctly responds to the URL 'localhost:8080/hello'. I then copy the .war file to Liberty .../dropins/ and st...
Mark Lavin
1

votes
0

answer
72

Views

IBM JSR 352 joblogs empty

I run IBM JSR 352 java batch application on Websphere Liberty Profile server. The application used to write job logs, e.g. C:\web servers\liberty_profile\wlp-javaee7-17.0.0.1\wlp\usr\servers\javnat-batch-server\logs\joblogs\Job1000\2018-05-24\instance.19401\execution.19401\part.1.log part.1.log cont...
Java guy
1

votes
0

answer
41

Views

How to retrieve decision id of IBM JSR 352 JSL

I run IBM JSR 352 batch job under Liberty Profile server. My JSL contains decision, e.g. I have tried to retrieve the id of the decision from decider/batchlet but with no luck. It is not inside JobContext or StepContext. Does any of you guys know how I can retrieve it? Thanks a bunch!
Java guy
1

votes
0

answer
32

Views

Propagating Usernametoken username to EJB in Liberty Profile

I have a web service that is authenticated with Usernametoken without a password. Usernames are in LDAP and LDAP is configured in server.xml. When calling from Web service a stateless EJB where roles are defined with annotations for different users I always have an error: CWWKS9400A: Authorization f...
JJ78
1

votes
0

answer
210

Views

Spring boot application deploymnet in Liberty throwing Class cast exception

Am getting an error when I tried to deploy an already built spring boot application to Liberty 8.5. We are using maven & Spring boot 1.5.7. POM.XML : 4.0.0 com.demo.smartdemo smartdemo 0.0.1-SNAPSHOT jar smartdemo http://maven.apache.org org.springframework.boot spring-boot-starter-parent 1.5.7.RELE...
1

votes
1

answer
67

Views

How to add virtual-host and how to change context root WAS DEV Maven

i tried to create Maven project for WAS Liberty server. mvn archetype:generate -DarchetypeGroupId=net.wasdev.wlp.maven -DarchetypeArtifactId=liberty-archetype-ear -DarchetypeVersion=2.2 -DgroupId=com.test -DartifactId=test -Dversion=1.0-SNAPSHOT Can you please tell me how to configure Context path...
Suresh Babu
1

votes
1

answer
38

Views

Configuring scheduler or timer service in Liberty

We are migrating our code from WAS 8 to Liberty.In WAS 8 we have a configuration to place the updated policies to the Message Queue between 3 to 8 with 1 hour interval. We tried to imitate the same configuration in Liberty. Could anyone please help us on how to configure this
Venkatesh
1

votes
1

answer
108

Views

Using microprofile-config-api: WELD-001408: Unsatisfied dependencies for type String with qualifiers @ConfigProperty

I playing with the mpConfig-1.2 feature, but it seems to not work in my setup. Using Liberty 18.0.0.2. Have added the maven dependency for microprofile-config-api, CDI is working fine, but the @ConfigProperty is failing at startup with the message [ERROR ] CWWKZ0106E: Could not start web applicati...
bwa
1

votes
1

answer
35

Views

Is it possible to use wildcards for queue permissions in WebSphere Liberty?

The embedded messaging server in WebSphere Liberty supports access control on queues. In the server.xml, the following structure can be added under the messagingEngine section: ALL This would grant the admin user access to the queue myQueues.queue_1 but, if I want to grant access to multiple queues...
danishrulez
1

votes
1

answer
223

Views

Liberty web service response ISO-8859-1

my SOAP web service responds with ISO-8859-1 if no charset was set in the http request header. I tried the following: set the following in jvm.options: -Dfile.encoding=UTF-8 -Duser.language=en -Duser.country=US -Dclient.encoding.override=UTF-8 set environment variable (global): DEFAULT_CLIENT_ENCODI...
kinglite
1

votes
2

answer
114

Views

openshift-liberty : jdbc drivers not getting loaded

Websphere Liberty server running on openshift getting below error on startup. As the workarea in liberty is created during start time how can we grant r/w access to the same JVMSHRC155E Error copying username into cache name JVMSHRC686I Failed to startup shared class cache. Continue without using it...
funtoos
1

votes
1

answer
127

Views

kill: invalid signal number or name: igterm

I have an application deployed on cloud foundry, And when hit my application in browser getting the following error 502 Bad Gateway: Registered endpoint failed to handle the request. And in the logs i found this error: [APP/PROC/WEB/0] ERR .app-management/scripts/start: 1: kill: invalid signal numb...
User
1

votes
0

answer
34

Views

ApiClient HTTPS call fetching certificates from wrong truststore

I am using a Swagger-generated client to call a REST service from within a webapp running on Liberty. The connection uses SSL but fails because the certificate is not found. I switched on debugging and saw that the call accesses the JRE trust store and not the Liberty truststore in /opt/ibm/wlp/outp...
paul
1

votes
1

answer
100

Views

Accessing remote ejb from classic websphere application with websphere liberty application

I need some help using remote ejb calls. There is the following setup: Background: A JavaEE web application (naming it app1) is hosted on an oldschool WAS8 application server. The application provides at least one (knowen) remote ejb for application to application communication. An other JavaEE web...
Joko
1

votes
1

answer
86

Views

Transaction timeout on step level vs server.xml

On JSR-352 batch, I'm defining a transaction timeout in step level for chunk processing as 900s. At the same time I have transaction timeout mentioned in server.xml as 1800s. this chunk processing step is partitioned using PartitionMapper step. My question is when the step gets executed, few thread...
user3540722
1

votes
0

answer
42

Views

liberty-arquillian container adapter not reading server.env file

Issue Overview When running an arquillian liberty managed container test, the specifiec environment variables are not resolved in the server.xml file. WLPManagedContainer.class can be seen trying to find the server.env, however, a running app in the runtime using server.env is not resolved during te...
Hassan Nazar
1

votes
0

answer
140

Views

Container Managed Transactions - Asynchronous method calls

The below is my requirement: 1. An MDB receives a message Triggers a asynchronous method in another session bean - asynchronous because this method will be a long running thread and we don't want to hold the MDB thread for long time. The asynchronous method read's records from DB, processes them an...
Sanjeev
1

votes
1

answer
51

Views

Stop WLP from writing System.out into messages.log

I have a WebSphere application which uses some third party libraries which write HTTP traffic into System.out / PrintWriter. WLP by default writes those messages into the messages.log file. I want to disable this as there may be sensible data in the HTTP traffic which I don't want to be logged. In...
Jdv
1

votes
1

answer
2.8k

Views

No runtime on my Worklight 6.2 Console

After deploying an war file in a Worklight 6.2 environment, the console doesn't show the associated runtime environment : No runtime can be found. It's a basic usage of Worklight 6.2, but I don't know how to fix it ! What I've done : Installation of Worklight Entreprise 6.2 on WebSphere Liberty 8.5....
Aymeric
1

votes
1

answer
590

Views

Worklight RuntimeMBeanCallable.call() exception

Ever since I merged my project from worklight 6.1 to 6.2 I have following error in my Eclipse Worklight Development Server log when deploying my application: [ERROR ] RuntimeMBeanCallable.call() exception java.lang.reflect.UndeclaredThrowableException [INFO ] Result: PrivateBanker: worklight//...
Hans
1

votes
1

answer
1.9k

Views

Worklight 6.2 Enterprise Server Deployment error

I am trying to deploy an application I have migrated from 6.1 to a 6.2 Server instance running as follows: Liberty(8.5.5.3) Derby(10.8) SLES 11 linux on System z java version '1.7.0' Java(TM) SE Runtime Environment (build pxz6470sr6-20131015_01(SR6)) I am attempting deployment using the ant script...
RenegadeAndy
1

votes
1

answer
791

Views

Basic Auth on bluemix

I am trying to deploy a web application on BlueMix Liberty Profile and I want to enable Basic HTTP authentication on this application. The app seems to be running fine, but no web.xml changes or updates allow me to do basic or form based auth.
1

votes
1

answer
1.2k

Views

Setting up WebSphere Liberty Profile HTTP Access Logging

I am trying to enable HTTP access logging for requests to my application running on WebSphere Liberty Profile 8.5.5.2. I have tried adding the logging configuration globally as well as in the specific HTTP endpoint. In all attempts, the http_access.log file is created, but no data is ever logged....
Vince Thyng

View additional questions