Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated context root ("/") and README.md (sso issues, client jar, url endpoints) #6

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion README.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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*

Expand Down Expand Up @@ -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*

Expand Down Expand Up @@ -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
* 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:
<li><a href="https://www.bluemix.info/swagger/index.html">API</a></li>

./src/main/webapp/directives/bluemixNavbar.html:
<li><a href="http://www.bluemix.info/feed">Feed</a></li>

./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.
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
<swagger.version>1.3.10</swagger.version>
<twitter4j.version>4.0.2</twitter4j.version>
</properties>
<build>
<build>
<defaultGoal>install</defaultGoal>
<finalName>news-aggregator</finalName>
<plugins>
<plugin>
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/WEB-INF/ibm-web-ext.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
version="1.0">

<reload-interval value="3"/>
<context-root uri="news-aggregator" />
<context-root uri="/" />
<enable-directory-browsing value="false"/>
<enable-file-serving value="true"/>
<enable-reloading value="true"/>
Expand Down