websphere-liberty

HttpsUrlConnection using KeyStore instead of TrustStore with WebSphere Liberty Profile

半世苍凉 提交于 2019-12-08 06:32:10
问题 We are using HttpsUrlConnection in a WebSphere TAI in WebSphere Liberty Profile to connect to a security server. I had a lot of problems with SSL cert errors, until I discovered that it is looking for signer certs in the WLP keystore, not the WLP truststore or JVM truststore. There is nothing in the code setting this, it must be a default. But I am confused, because when we use an HTTP client in other code, it uses the JVM's truststore. How can I make the HttpsUrlConnection use the WLP or JVM

How do I configure a transaction timeout in WebSphere Liberty Batch?

别说谁变了你拦得住时间么 提交于 2019-12-07 10:31:30
问题 What is the role of javax.transaction.global.timeout ? Do I need to implement the checkpointTimeout() method in CheckpointAlgorithm ? Is there anything at the server config level? How does this interact with whatever is set at the application level? 回答1: ( Edit 2016-12-02: Reworked with an explanation of the defaulting behavior when a timeout value of '0' is set for the application transaction). Overview Let me describe the application-level options and how that interacts with the server

Java EE-Timer / @Schedule in Websphere Liberty Profile

荒凉一梦 提交于 2019-12-07 05:51:14
问题 I want to use the timer-Service (especially @Schedule Annotation) in WebSphere Liberty Profile. Is that possible? Is there a feature for? https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/downloads/wlp/8.5.5.0/ is nothing ;–( 回答1: Update: as pointed out this answer is no longer correct since support was added in June 2015. 8.5.5.6 and newer sports ejb timers. There is no support for EJB Timers in the Liberty profile. The infocenter details the supported features and EJB

HttpsUrlConnection using KeyStore instead of TrustStore with WebSphere Liberty Profile

社会主义新天地 提交于 2019-12-06 23:12:28
We are using HttpsUrlConnection in a WebSphere TAI in WebSphere Liberty Profile to connect to a security server. I had a lot of problems with SSL cert errors, until I discovered that it is looking for signer certs in the WLP keystore, not the WLP truststore or JVM truststore. There is nothing in the code setting this, it must be a default. But I am confused, because when we use an HTTP client in other code, it uses the JVM's truststore. How can I make the HttpsUrlConnection use the WLP or JVM truststore, and not the keystore? You can load your trust store as below and set it to SSLContext

WebSphere Liberty Profile: Context Root Not Found

一个人想着一个人 提交于 2019-12-05 19:40:40
I can't seem to get this working locally, even though the same WAR works on a remote server. When I go to visit my application locally, I get the "Context Root Not Found" error. The Liberty profile version is 8.5.5.5. Here are the relevant files: server.xml <?xml version="1.0" encoding="UTF-8"?> <server description="tlc server"> <!-- Enable features --> <featureManager> <feature>jsp-2.2</feature> <feature>ssl-1.0</feature> <feature>localConnector-1.0</feature> <feature>restConnector-1.0</feature> <feature>json-1.0</feature> <feature>jaxrs-1.1</feature> <feature>servlet-3.0</feature> <feature

How do I configure a transaction timeout in WebSphere Liberty Batch?

烈酒焚心 提交于 2019-12-05 12:03:31
What is the role of javax.transaction.global.timeout ? Do I need to implement the checkpointTimeout() method in CheckpointAlgorithm ? Is there anything at the server config level? How does this interact with whatever is set at the application level? ( Edit 2016-12-02: Reworked with an explanation of the defaulting behavior when a timeout value of '0' is set for the application transaction). Overview Let me describe the application-level options and how that interacts with the server-level timeout. In a chunk step in WebSphere Liberty Java Batch, you can either set an application-level timeout,

Websphere Liberty profile - transacted Websphere MQ connection factory

巧了我就是萌 提交于 2019-12-05 11:39:34
Trying to get my Liberty profile server to create a transacted jmsConnectionFactory to my instance of Websphere message queue. Liberty profile v 8.5.5.5 Websphere MQ 7.x I've tried to change the jmsQueueConnectionFactory to jmsXAQueueConnectionFactory but it does not help -> Then it seems to just ignore it and doesn't connect to the MQ server.xml <?xml version="1.0" encoding="UTF-8"?> <server description="new server"> <!-- Enable features --> <featureManager> <feature>wmqJmsClient-1.1</feature> <feature>jndi-1.0</feature> <feature>jsp-2.2</feature> <feature>localConnector-1.0</feature> <

Configuring a JNDI resource that isn't a datasource in Liberty Profile

流过昼夜 提交于 2019-12-05 02:40:40
问题 I'm trying to run an existing WebSphere application in Liberty Profile but have run into a problem. The application has a resource environment entry configured in the server which I need to translate into a Liberty Profile resource. How can I configure a JNDI resource in the server.xml, that isn't a datasource (dataSource) or a constant (jndiEntry)? Many thanks 回答1: You can configure this using the element in the server.xml. This is documented in the infocenter. Essentially you enable the

log4j2: Location for setting Log4jContextSelector system property for asynchronous logging

依然范特西╮ 提交于 2019-12-04 20:15:22
问题 I am attempting to set up asynchronous logging (for performance reasons) within REST web methods that currently run in a liberty profile server. In order to do this, I have set up the following property: System.setProperty("Log4jContextSelector", "org.apache.logging.log4j.core.async.AsyncLoggerContextSelector"); My problem is that no matter where I do this, sometimes it works and logging is very fast, and sometimes it doesn't. I have tried (a) in the constructor for the class containing all

“500 Error: Failed to establish a backside connection” - Bluemix Selenium Tests

偶尔善良 提交于 2019-12-04 20:09:59
I have deployed a simple web based project which runs basic test automation on browserstack (test environment) via IBM Cloud. URL : https://gaiaautomation0.au-syd.mybluemix.net/ The tests are executed by a call from the web page and an overlay is displayed when the tests are executing (Ajax call). During execution, IBM Cloud times out randomly at different test steps with the console error below however the tests are still getting executed. Is there a way to stop the 500 error shown below. Error in browser: 500 Error: Failed to establish a backside connection Error on console : 2018-02-08T22