From 1e2c8414a3de387740bf8f908a0ebf68622fd14e Mon Sep 17 00:00:00 2001 From: aautcsh Date: Mon, 10 Aug 2015 00:58:33 +0200 Subject: [PATCH 1/3] Fixed web application context-root --- src/main/webapp/WEB-INF/ibm-web-ext.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/WEB-INF/ibm-web-ext.xml b/src/main/webapp/WEB-INF/ibm-web-ext.xml index 1065038..fb268ac 100644 --- a/src/main/webapp/WEB-INF/ibm-web-ext.xml +++ b/src/main/webapp/WEB-INF/ibm-web-ext.xml @@ -6,7 +6,7 @@ version="1.0"> - + From a434841bade705aa2f8033d279e8f695d1db39d4 Mon Sep 17 00:00:00 2001 From: aautcsh Date: Mon, 10 Aug 2015 00:59:03 +0200 Subject: [PATCH 2/3] Added default goal (install) for Maven build in pom.xml --- pom.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 5edf8f7..9cc930c 100644 --- a/pom.xml +++ b/pom.xml @@ -22,7 +22,8 @@ 1.3.10 4.0.2 - + + install news-aggregator From c0473a531d8144f9c0e0aa0cc7591d65cd86ccd8 Mon Sep 17 00:00:00 2001 From: aautcsh Date: Mon, 10 Aug 2015 00:59:26 +0200 Subject: [PATCH 3/3] Added some notes (i.e. regarding the current sso issues) to the README. --- README.md | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) mode change 100644 => 100755 README.md diff --git a/README.md b/README.md old mode 100644 new mode 100755 index 1d01257..3028161 --- a/README.md +++ b/README.md @@ -57,11 +57,18 @@ The only exception is the library com.ibm.ws.xs.client_1.1.jar which is needed f In order to get this file you need to download and install "WebSphere eXtreme Scale for Developers Liberty Profile" and link to it in your project settings. To install this product, run the command: > java -jar wxs-wlp_8.6.0.5.jar +[NOTE] This product requires WebSphere Application Server for Developers Liberty Profile Version 8.5 to be installed first. + + [Download and install WebSphere eXtreme Scale](https://developer.ibm.com/wasdev/downloads/#asset/addons-wxs) +[Download and install WebSphere Application Server for Developers Liberty Profile](https://developer.ibm.com/wasdev) + Under Project Properties - Java Build Path - Libraries change the link of this file: * com.ibm.ws.xs.client_1.1.jar (\liberty\dev\ibm-api) +[NOTE] You need to extract the com.ibm.ws.xs.client_1.1.jar from the previously downloaded wxs-wlp_8.6.0.5.jar (\liberty\dev\ibm-api) and copy it into your project folder. + *Install Client Libraries for Workload Scheduler* @@ -115,6 +122,7 @@ Then add the following services: * [Bluemix session cache service](https://www.ng.bluemix.net/docs/#services/SessionCache/index.html#session_cache) * [Bluemix workload scheduler](https://www.ng.bluemix.net/docs/#services/WorkloadScheduler/index.html#gettingstarted) +[NOTE] In its current version, the single sign on functionality is not supported due to a change to the sso service provider. To work around this problem you can define Cloud Directory as an authorization endoint for the sso service. In addition to that you may want to disable the method 'checkAuthorization(HttpServletRequest httpServletRequest)' in '/src/main/java/net/bluemix/newsaggregator/api/AuthenticationServlet.java'. Just comment the code and make the function always return true. Please keep in mind that this should only be considered for testing purposes. *Configure the Application and Services* @@ -207,4 +215,22 @@ Alternatively you can use the [Cloud Foundry Maven Plugin](https://github.com/cl Invoke the following URLs: * Home: http://[yourappname].mybluemix.net * API: https://[yourappname].mybluemix.net/swagger/index.html -* Curation: https://[yourappname].mybluemix.net/logon \ No newline at end of file +* Curation: https://[yourappname].mybluemix.net/logon + +[NOTE] There are a few minor code changes you should do in order to get the proper hyperlinking. + +In the following places, change the hard coded url endpoints according to your application route: + +./src/main/webapp/directives/bluemixNavbar.html: +
  • API
  • + +./src/main/webapp/directives/bluemixNavbar.html: +
  • Feed
  • + +./src/main/webapp/swagger/index.html: +url: "https://www.bluemix.info/api-docs", + +./src/main/java/net/bluemix/newsaggregator/feeds/SchedulerUtilities.java: +"http://www.bluemix.info/api/readfeedsscheduler" + +Please note that these are just the essential parts to get your hyperlinking right.