websphere-liberty

How to define CORS in Websphere Application Server Liberty Profile V8.5

霸气de小男生 提交于 2019-12-20 09:37:54
问题 Is it possible to apply cross-origin resource sharing (CORS) in a Websphere Application Server Liberty Profile V8.5 ? I searched the redbook but couldn't find IBM mention anything about it. (http://www.redbooks.ibm.com/abstracts/sg248076.html?Open) It's not possibility for me to set the headers programmatically like this: Access-Control-Allow-Origin: * (http://enable-cors.org/server.html) 回答1: You have to add following jars to your WEB-INF/lib folder: cors-filter-1.8.jar java-property-utils-1

WLP :: Change default context root on http

喜欢而已 提交于 2019-12-20 03:01:10
问题 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

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

牧云@^-^@ 提交于 2019-12-19 17:14:14
问题 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

Webpshere Liberty support for Java 9

非 Y 不嫁゛ 提交于 2019-12-19 10:28:07
问题 Does Webpshere Liberty support for Java 9? as of latest beta it is mentioned fully compatible with Java 8 but there is not mentioning about upgrade. Whether Java 9 Module path can be supported with Websphere liberty? 回答1: Websphere Liberty mostly works with Java 9 in "toleration mode", meaning that Liberty and apps can run on Java 9, but you can't take advantage of Java 9 modularity yet. You can find more detailed progress of OpenLiberty (an open-source subset of Websphere Liberty) support

What is the difference between OpenLiberty and WebSphere Liberty? [closed]

ぃ、小莉子 提交于 2019-12-19 05:46:23
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . Recently IBM created a new open source project called "OpenLiberty" that is largely shared with the codebase for WebSphere Liberty. What is the difference between OpenLiberty vs. WebSphere Liberty? What features do I get with the free open source version, and what extra features

Worklight Push notification (APNS) fails with javax.net.ssl.SSLHandshakeException

天涯浪子 提交于 2019-12-18 07:10:07
问题 I have a Worklight 6.1 app on iOS with push notifications. It works fine, until something goes wrong on the Worklight server. All push notifications after that fail until the server is restarted. The Worklight server is Liberty 8.5.5.0 on Linux x86_64 Using JDK : java-1.7.0-ibm-1.7.0.5.0.x86_64 The Worklight database is Derby (this is a test server) Everything works great when I start the server. 10 minutes after the server starts, I see: [2/20/14 19:39:15:319 CST] 0000003e com.notnoop.apns

No runtime on my Worklight 6.2 Console

你说的曾经没有我的故事 提交于 2019-12-17 17:15:56
问题 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.5.2 + DB2 V10.5 customisation of the configuration-liberty-db2.xml with my settings ant -f myxmlfile admdatabases ant -f myxmlfile adminstall ant -f myxmlfile databases ant -f myxmlfile install I

DataSource initialization error within liberty profile server

别说谁变了你拦得住时间么 提交于 2019-12-14 02:53:15
问题 I am trying to set up a DataSource in liberty profile server, but I'm getting a NullPointerException (on my ds variable below) when my code tries to use it. The relevant code, and server.xml entries are below. Interestingly, if I change the jndiName to java:comp/env/jdbc/Oracle I get an IllegalArgumentException on server startup, but with the config below it doesn't even seem to try to activate the DataSource... public abstract class DAOBase { //@Resource(name = "jdbc/Oracle", type = javax

How to use Websphere liberty in spring boot application

血红的双手。 提交于 2019-12-14 00:22:04
问题 I want to use Websphere liberty in spring boot application instead of tomcat server. If I am correct it is not supported out of the box. How can I configure spring boot/websphere liberty to achieve this? 回答1: Using the Liberty app accelerator you can download a zip containing a Maven buildable 'Spring Boot with Spring MVC' app as your starting point. Just run mvn install and you'll get the app running at http://localhost:9080/myLibertyApp/ 回答2: Actually, you can now create runnable jar files

CODI with ejb stateless on Websphere liberty profile 8.5.5

故事扮演 提交于 2019-12-13 20:53:14
问题 I cannot launch a webapp that embedd CODI on websphere liberty profile 8.5.5 if the webapp contains a @Stateless ejb. I get this exception: [ERROR ] null java.lang.reflect.InvocationTargetException [ERROR ] An error occured while initializing MyFaces: java.lang.reflect.InvocationTargetException java.lang.reflect.InvocationTargetException [ERROR ] Uncaught.init.exception.thrown.by.servlet Faces Servlet codiTest javax.enterprise.context.ContextNotActiveException: WebBeans context with scope