Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Problem running Jazz Foundation Application SDK war samples

Dear all

I have downloaded and installed the Jazz Foundation 5.0 zip pachage. Once setup and installed, I have downloaded the 'Application SDK' package from the Jazz Foundation downloads page. This package contains two sample applications (in the apps folder of the unpacked download), 'buildingblocks' and 'JFSExplorer'. I have properly placed the configuration files as well as the war files at the appropriate location. After (re)starting the server, I wanted to access the SCR of both applications.
https://localhost:9443/buildingblocks/scr --> successful :-)
https://localhost:9443/JFSExplorer/scr --> results in the error below

HTTP Status 403 - CRJZS0040E No REST service handler is registered for the following path: /scr.


type Status report

message CRJZS0040E No REST service handler is registered for the following path: /scr.

description Access to the specified resource has been forbidden.

Some more details
  • I faced the same error before while i created a self made jazz apllication, unfortunately, nobody could help me out there till now..., maybe because it was to specific, so I went on to find an example which is easy reproducable
  • I have assigned all available repository permissions as wll as the Rational Jazz Foundation - Foundation User license.
  • I did this installation on a PC where I've never installed anything related to jazz/ibm before, to make sure there are no side effects.
  • Due to the issue above, I could only register the buildingblocks application in 'register applications' of jts

It would be phenomenal if someone out there could point me in the right direction, I'm getting mad about this 403 error ;-|

Best Regards
Lukas

0 votes

Comments

I have asked around. The examples are outdated and I could not find a resource that could look into this and updated them, unfortunately.

 Hi Ralph


Well, that is sad to hear, but thanks a lot for asking around. 

I tried the samples myself and I am exactly where you are, Lukas. Sorry.

Do you have the source code for the buildingblocks application? As far as I can see, it is not included in the Application SDK package.

If you could provide it, I would be able to compare it to my own application, where i get the 403 error. I think the error might be caused by a new security feature which was implemented after they have created the Custom Application tutorial and the JFSExplorer app.

I'm talking about the following jars:
com.ibm.team.jfs.buildingblocks.app_1.1.200.v20120901_0511.jar 
com.ibm.team.jfs.buildingblocks.utils_1.1.300.v20130320_1901.jar

Lukas,

I have the same access you have, pretty much. You could try to locate a JSF build as described in one of the tutorials and see if there is access to these JAR's. I am not sure about the path to the build results however.

 Could it be one of these downloads? They seem to be only available to IBM folks. 

I don't know. At this point we are down to trial and error, unless we find someone who is familiar with the code and can provide hints.

 Hello Lukas.

Were you able to find the source of the error??  We are following the same tutorial for creating a custom app and we are stuck with the same error when we try to deploy our war file.   

No, unfortunately not

showing 5 of 9 show 4 more comments


One answer

Permanent link
The HTTP 403 error is expected because there is no /scr specified for this application. You should notice that there is no scr.xml included in the .war file. The com.ibm.team.jfs.sdk.samples.explorer_1.2.100.v20140602_2352/plugin.xml file shows all the registered REST services:
/explorer*
/explorer/query
/explorer/history
/explorer/index
/explorer/resources/*

The landing page should be https://<host>:<port>/JFSExplorer/explorer but I got a HTTP 401 error instead. Need to dig a bit deeper.

Finally make it work (with CLM 5.0.2). Steps below.
1. Deploy both the buildingblocks and JFSExplorer samples to Tomcat.
2. Start Tomcat.
3. Register buildingblocks to JTS.
4. Find out the OAuth consumer secret and key in buildingblocks.properties or friends.rdf under server/conf/buildingblocks.
5. Modify the file server/conf/JFSExplorer/explorer.properties to put the values found at the previous step.
6. Restart Tomcat.
7. Access https://<host>:<port>/JFSExplorer/explorer and the JTS login page should show up.
8. Log in as an existing JTS user, and the prompt will appear asking whether to allow collaborating with buildingblocks.
9. Answer Yes and the JFSExplorer page should appear.

More information about JFSExplorer can be found in the below Wiki page.
https://jazz.net/wiki/bin/view/Main/JFSExplorer

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,927
× 40
× 19
× 3

Question asked: Jul 15 '14, 4:03 p.m.

Question was seen: 6,994 times

Last updated: Nov 13 '15, 3:57 a.m.

Confirmation Cancel Confirm