websphere-liberty

WLP :: Change default context root on http

扶醉桌前 提交于 2019-12-02 01:48:22
When I do a http get on my websphere liberty profile v8.5.5 (let's assume http://my.domain.com ) I'm presented with a nice page that says amongs other things "Welcome to the WebSphere Application Server V8.5 Liberty Profile" It looks like this http://rdt1.demos.ibm.com/ How do I configure my server to not display this page and perhaps redirect my request to a login page on https? Is this a configuration related to a new context root of a new app to be installed? Like this answer below? How to make "HTTPS redirect" work on WebSphere Application Server Liberty Profile? I feel like this should be

Log4j JDK Logging adapter: Apply LogManager system property late in the startup process

痴心易碎 提交于 2019-12-02 01:07:35
I have an WebSphere Application Server which runs an WebApp. I start the Server from Eclipse. The main logging framework in that application is log4j2, but there are some third party libraries which use java.util.logging. I want to redirect those logs to log4j2 so it uses my filters, log format etc. To achieve this I can use the Log4j JDK Logging Adapter . Usually one would set the system property -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager , for example in the jvm.options. The problem is that I can't seem to make that solution work because the server uses java util

How to change Jackson version in JAX-RS app (WebSphere Liberty)

假装没事ソ 提交于 2019-12-01 23:25:01
问题 I am migrating a JAX-RS application from WebSphere 8.0 to WebSphere Liberty 8.5.5. In WebSphere 8.0, Jackson was provided by WebSphere. I can find jackson-core-asl-1.9.12.jar , jackson-jaxrs-1.9.12.jar , jackson-mapper-asl-1.9.12.jar and jackson-xc-1.9.12.jar files in the AppServer\plugins\ directory. In the new application server (WebSphere Liberty), I get the following exception: org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "myPropertyName" . I think that

How to change Jackson version in JAX-RS app (WebSphere Liberty)

别来无恙 提交于 2019-12-01 22:35:45
I am migrating a JAX-RS application from WebSphere 8.0 to WebSphere Liberty 8.5.5. In WebSphere 8.0, Jackson was provided by WebSphere. I can find jackson-core-asl-1.9.12.jar , jackson-jaxrs-1.9.12.jar , jackson-mapper-asl-1.9.12.jar and jackson-xc-1.9.12.jar files in the AppServer\plugins\ directory. In the new application server (WebSphere Liberty), I get the following exception: org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "myPropertyName" . I think that this exception happens because the annotation @JsonIgnoreProperties(ignoreUnknown = true) on the

WebSphere liberty class loading PARENT LAST as default

廉价感情. 提交于 2019-12-01 21:42:28
问题 I have been investigating using WebSphere's Liberty profile as a light weight alternative to having a fully fledged WebSphere instance deployed on my local machine (late to the party, I know). 1 thing that I can not figure out: How do I set Parent Last class loading to be default? I want to deploy any application and have it automatically be parent last. I am aware that I can deploy an EAR with the deployment.xml to trigger parent last class, or run a Jython script. However, I would rather

WebSphere liberty class loading PARENT LAST as default

风格不统一 提交于 2019-12-01 20:04:55
I have been investigating using WebSphere's Liberty profile as a light weight alternative to having a fully fledged WebSphere instance deployed on my local machine (late to the party, I know). 1 thing that I can not figure out: How do I set Parent Last class loading to be default? I want to deploy any application and have it automatically be parent last. I am aware that I can deploy an EAR with the deployment.xml to trigger parent last class, or run a Jython script. However, I would rather have it be the default behavior. Any ideas anyone? WebSphere Version: Liberty 8.5.5.8 If you're trying to

JSR 352 with Liberty Profile - how to implement checkpointing when ItemReader does a DB query

帅比萌擦擦* 提交于 2019-12-01 19:14:02
I have 10 records in my source table and I am having item count as 3. I have 2 partitions to process these 10 records(i.e first 5 records will be processed in first partition and remaining records processed in 2nd partition while processing records in 2nd partition I am throwing an exception so job will be failed at 2nd chunk of 2nd partition.when I am restarting the job ,failed partition is processing all the records again(that is first chunk and 2nd chunk). Restarting the job should only process from last failed chunk records but not all the records in that partition.Can you please guide me

New To Bluemix, getting error “The host is taken” for new app

限于喜欢 提交于 2019-12-01 16:48:26
I am new to Bluemix as part creating an app following the steps below: Log in to Bluemix with your Bluemix account. Open the Catalog menu. From the Runtimes section, click Liberty for Java. In the App field, specify the name of your app [entered name] Click the Create button I am getting the error below: BXNUI2032E: An error occurred when contacting Cloud Foundry to create a resource. Resource: routes. Cloud Foundry message: "The host is taken: vTest." See the Troubleshooting topics in the IBM Bluemix Documentation to check service status, review troubleshooting information, or for information

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

老子叫甜甜 提交于 2019-12-01 13:16:35
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.util.LinkedHashMap] with value: [{d=e}] at org.apache.cxf.interceptor

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

China☆狼群 提交于 2019-12-01 13:15:15
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 no other way to make sure that when the query is run again it reads the next chunk of data and not the