It's all about the answers!

Ask a question

Jazz Application Service - Deployment as service on Jazz server


Mohan Bhakri (176) | asked Mar 25 '13, 3:03 a.m.
 I created sample Jazz application service plugin 

https://jazz.net/wiki/bin/view/Main/HiJazzTutorial

I created this as plugin ( com.example.hijazz.service) .

Now I wanted to deploy on to Jazz Server , I tried to create feature and update siite and then copy plugins and features folder to Jazz server , is this right way .

Required Output
------------------------

Question
--------------
1. How to deploy plugin on to Jazz server and in which path I need to deploy

6 answers



permanent link
Ralph Schoon (63.6k33647) | answered Mar 25 '13, 7:00 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi Mohan,

for a more complete description please see https://jazz.net/library/article/1000 . Deployment is discussed in the last lab.

Comments
Mohan Bhakri commented Mar 25 '13, 7:05 a.m. | edited Mar 25 '13, 8:11 a.m.

 Thank you Ralph , I will check the article.


Mohan Bhakri commented Mar 25 '13, 7:31 a.m. | edited Mar 26 '13, 10:24 a.m.

 Hello Ralph,


I refered this pdf ( RTC301ExtPoT.pdf)  for developing plugin , feature..  I saw this example from section ( Lab 6 Deploying the Server Side , page 132). With this I did following things
     1. Developed Plugin
     2. Developed feature 
     3. Developed update site 
     4. Coppied plugins folder, site.xml, features folder to RTC301Dev\installs\JazzTeamServer\server\conf\ccm\sites

After this , I am not able to proceed . When I am  sending http request http://localhost:9080/jazz/service/com.example.hijazz.service.IHiJazzService/ , i am not getting any response. 

Question
1) Is my understanding on deployment correct and did i refer to same file which u r talking about
2) How to check that my sample service is running. Because in case of extension example , they mention particular place to check , but in my case I am not sure where to look for.

Regards
Mohan


permanent link
Ralph Schoon (63.6k33647) | answered Mar 25 '13, 8:23 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Mar 25 '13, 8:24 a.m.
Mohan,

the link I provided is actually for RTC 4.0.

We have tried this many times now and it is just almost impossible to debug development and deployment issues using the forum.

My suggestion would be to start reading here: http://rsjazz.wordpress.com/2013/02/28/setting-up-rational-team-concert-for-api-development/ and follow the links to get started and understand what you are up to and where to find more information.

Then pick the version of the RTC Extensions workshop that is closest to the version you want to use.

Run the Workshop exactly on the version specified in the Build Basis. It provides you with a development and debug environment that helps to narrow down issues. It also guides you through a lot of steps you always need to do when developing extensions.

I am not sure what your issues are. For one thing, typically the server is only reachable using HTTPS, if you don't explicitly change that. As described in the Extension Workshop you should able able to see your component using
https://localhost:<port>/jazz/admin?internal=true#action=com.ibm.team.repository.admin.componentStatus

If it is not there, you have a deployment error. They are hard to debug if you don't have a debugging environment. Look into the server logs e.g. jazz.log or ccm.log and look for issues during server startup. Most common issues are typos in the ID's, missing files e.g. plugin.xml etc.




Comments
Mohan Bhakri commented Mar 26 '13, 8:13 a.m. | edited Mar 26 '13, 10:25 a.m.

Ralph,


Thank you for sharing info . Its very good site having lots of information about the basic understanding on api development . I still need to go through the link and use this for debugging. 

I have one basic doubt , 
Currently I am working on writing application service using Jazz Application Framework . I used following link (https://jazz.net/wiki/bin/view/Main/JAFServiceFramework) . 

Question 
Is writing application services via developing plugins is same as extension plugins as you described in the http://rsjazz.wordpress.com/2013/02/28/setting-up-rational-team-concert-for-api-development/ .


Ralph Schoon commented Mar 26 '13, 8:22 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Mohan, extending is really extending an existing product, especially RTC. If you just develop for the platform, there might be mechanisms available such as a user registry etc, where the blog would apply, but not much more I guess.

However, HiJazz was created for a very early version of RTC and not JAF, so all would apply. The question is, are you using the wrong SDK? 


Ralph Schoon commented Mar 26 '13, 8:26 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

In general Jazz is based on Eclipse, so you would always use Extension mechanisms - plug-ins. What i meant in the last comment was that dependent on the SDK you might or might not have API's and extension points I show in my post. Most of the extension points and API used there are part of the RTC product.


permanent link
Mohan Bhakri (176) | answered Mar 27 '13, 12:02 a.m.
Ralph,

Now I got your point . I am using RTC SDK for RTC-SDK-3.0.1 and Jazz Team server is also 3.0.1. As you suggested I will check the logs to get some clue on some issue.


permanent link
Mohan Bhakri (176) | answered Apr 01 '13, 6:00 a.m.
 Hello Ralph,

There was issue with version which I used as example. 

Now I am trying to write sample application as this is mentioned in https://jazz.net/wiki/bin/view/Main/OSGiTutorial. This is for Version 3.0.1. I followed the steps . With this I was able to deploy the application service successfully . I check the logs at C:\IBM\JTS\server\tomcat\work\Catalina\localhost\jfsSamples\eclipse\configuration\org.eclipse.osgi\bundles\21\data . Contents of install.log
-------------------------
CRJAZ0295I A feature with the id "com.ibm.team.jfs.sdk.samples.hellojfs.feature" is already installed.
--------------------------

On the JTS Side , 
1) login as jts admin
2) went to consumers(inbound) link
       Consumer Name - jfs_sdk_hello_sample
       Consumer Secret - jfs_sdk_hello_sample
       Trusted - Selected
3) Accordingly updated properties file
       discovery.url=https://localhost:9443/jts/discovery
       application.root.url=https://localhost:9444/jfsSamples/hello
       consumer.secret=jfs_sdk_hello_sample
       consumer.key=b1918adbf6fd4cb38f6e400df8be59e5
4) Restarted the jts server
6) Getting following error 
--------------------------------------

HTTP Status 403 - CRJZS0040E There is no REST service handler registered for the path "/hello".

type Status report

message CRJZS0040E There is no REST service handler registered for the path "/hello".

description Access to the specified resource (CRJZS0040E There is no REST service handler registered for the path "/hello".) has been forbidden.

---------------------------------------------------------------

Question
1) Is my way of registration for this application is correct
2) Please let me know what could be source if this issue

Regards
Mohan






permanent link
Ralph Schoon (63.6k33647) | answered Apr 02 '13, 3:01 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Mohan,

I am not familiar with your example so I can't comment on what you see. Typical issues are wrong plugin.xml's and inconsistent ID's in the plugins. I can only point to http://rsjazz.wordpress.com/2013/02/28/setting-up-rational-team-concert-for-api-development/ as well as the related posts and suggest to set up a working development environment with Jetty to be able to debug your code.

permanent link
Mohan Bhakri (176) | answered Apr 25 '13, 2:50 a.m.
 thank you Ralph , Now I am able to deploy the plugin

Your answer


Register or 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.