websphere-liberty

Exception thrown when posting JSON in JAX-RS app running on WLP 8.5.5.8

情到浓时终转凉″ 提交于 2019-12-01 12:39:18
问题 I have a very simple Java app using JAX-RS, running on WLP 8.5.5.8. When I post JSON that is a composite structure I get this error: [ERROR ] Error occurred during error handling, give up! Invalid type of value. Type: [java.util.LinkedHashMap] with value: [{d=e}] [ERROR ] SRVE0777E: Exception thrown by application class 'org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage:116' java.lang.RuntimeException: org.apache.cxf.interceptor.Fault: Invalid type of value. Type: [java

SSL handshake failure for liberty application using cloudant

≯℡__Kan透↙ 提交于 2019-12-01 11:33:17
I've been stuck on this far longer than I want to admit. I want to connect to cloudant/couchdb using WebSphere Liberty. I'm fairly new to Java app development, Liberty, Cloudant and Bluemix. I believe I need to add a SSL certificate for cloudant in a local trust store but the only way to do it seems to be by using the Websphere Application Server Integrated Solutions Console, which I can't run using Liberty? If anyone can guide me in the right direction I would appreciate it alot! [ERROR ] CWPKI0022E: SSL HANDSHAKE FAILURE: A signer with SubjectDN CN=*.cloudant.com, OU=Engineering, O="Cloudant

In a (Liberty) Batch chunk step, getting “ResultSet is closed” when scrolling through ResultSet from database query issued earlier in the step

孤人 提交于 2019-12-01 09:57:09
问题 I am reading data from DB2 table and dumping it into a file. I execute my simple select query in the chunk listener's beforeChunk() and use the step context to get it in itemreader. In the chunk i set the checkpoint policy as item and itemcount as 5. The output is the first 5 records being read and written over and over again. In this sample java batch code from IBM's site they have start and end parameters in the query. Is it necessary to have start and end parameters in your query? Is there

SSL handshake failure for liberty application using cloudant

纵然是瞬间 提交于 2019-12-01 09:32:51
问题 I've been stuck on this far longer than I want to admit. I want to connect to cloudant/couchdb using WebSphere Liberty. I'm fairly new to Java app development, Liberty, Cloudant and Bluemix. I believe I need to add a SSL certificate for cloudant in a local trust store but the only way to do it seems to be by using the Websphere Application Server Integrated Solutions Console, which I can't run using Liberty? If anyone can guide me in the right direction I would appreciate it alot! [ERROR ]

Websphere Liberty 8.5: Setting Java classpath

☆樱花仙子☆ 提交于 2019-12-01 00:57:33
I am running Websphere Liberty 8.5. My application reads some files from the file system that are obtained via the Java CLASSPATH and I can't seem to find a way to append a directory from the file system to the CLASSPATH Liberty reads from. I've tried manually changing JAVA_CMD and JAVA_DEBUG but none of them take. Does anyone know how this is possible? It is not possible to modify the JVM application classpath (normally specified via the -classpath JVM argument or the CLASSPATH environment variable). I would recommend using a <library> to give your applications visibility to the resources. If

Websphere Liberty 8.5: Setting Java classpath

与世无争的帅哥 提交于 2019-11-30 20:25:01
问题 I am running Websphere Liberty 8.5. My application reads some files from the file system that are obtained via the Java CLASSPATH and I can't seem to find a way to append a directory from the file system to the CLASSPATH Liberty reads from. I've tried manually changing JAVA_CMD and JAVA_DEBUG but none of them take. Does anyone know how this is possible? 回答1: It is not possible to modify the JVM application classpath (normally specified via the -classpath JVM argument or the CLASSPATH

Setting up a datasource with WebSphere Liberty Profile 8.5

倖福魔咒の 提交于 2019-11-30 15:06:08
问题 My web app is getting a data source from JNDI with: javax.naming.InitialContext ctx = new javax.naming.InitialContext(); javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup("java:comp/env/jdbc/db"); In the app's WEB-INF/web.xml , I have: <resource-ref> <description>DataSource</description> <res-ref-name>jdbc/db</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref> In the app's WEB-INF/ibm-web-bnd.xml , I have: <web-bnd xmlns="http:/

Setting up a datasource with WebSphere Liberty Profile 8.5

不打扰是莪最后的温柔 提交于 2019-11-30 13:47:10
My web app is getting a data source from JNDI with: javax.naming.InitialContext ctx = new javax.naming.InitialContext(); javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup("java:comp/env/jdbc/db"); In the app's WEB-INF/web.xml , I have: <resource-ref> <description>DataSource</description> <res-ref-name>jdbc/db</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref> In the app's WEB-INF/ibm-web-bnd.xml , I have: <web-bnd xmlns="http://websphere.ibm.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation

How to make “HTTPS redirect” work on WebSphere Application Server Liberty Profile?

ぐ巨炮叔叔 提交于 2019-11-29 15:18:11
问题 I want make HTTP Redirect work on WebSphere Application Server Liberty Profile (WLP). For example:- When user types: http://localhost:8080/helloworld , the browser should automatically go (be redirected) to https://localhost:9443/helloworld To achieve this, I followed this document, Section 6.2, page no. 136. Below is the sample server.xml and web.xml:- server.xml <server description="new server"> <!-- Enable features --> <featureManager> <feature>jsp-2.2</feature> <feature>wab-1.0</feature>

No Runtime can be found in Worklight Console

安稳与你 提交于 2019-11-29 12:38:22
I am trying to set up test environemnt for worklight project. Every thing looks like started successfully without any errors , however, the worklight console says 'No runtime configuration could be found" . And I can not access my application in browser either. However, AppCenter is available. The system is set up in Redhat OS, Worklight version 6.2, DB2 as database and WS-Liberty 8.5 as server. As suggested in different SO questions, I tried cleaning up the workarea of liberty server, clean-built and deploy, tried using java 1.6 instead of java 1.7 but nothing has worked. Thanks for spending