How to deploy a Jazz component on the server
I have followed the tutorial "Hello Jazz -- How to write a simple Jazz component" found here https://jazz.net/library/article/118.
Everything works fine in my test setup with a launcher launching a Jetty RTC server from eclipse.
But how do i deploy/provision the new service on a standalone server installation ?
I have searched the forum but the only questions related to this is more than 5 years old, and I cant make it work. I assume that perhaps something has changed since 2008, and deployment procedure has changed.
What I have done so far, is to create a feature project for both the service and common plugin. Then I created a update-site containing both features. I created a provision file in ccm/provision_profiles that points to the update-site, and with the feature-id of the service.
Before restarting the server i request a reset by calling https://server/ccm/admin/cmd/requestReset .
When the server starts up after that it gives the following warning:
Failed to resolve the bundle "com.example.hellojazz.service"
And the service is not listed when requesting https://server/ccm/service as it is when i run it on the Jetty server.
I also tried to create just one feature containing both the service and common project, but that also does not work.
Anyone who can help ?
All kind of help would be appreciated.
|
2 answers
Ralph Schoon (63.5k●3●36●46)
| answered Mar 20 '13, 9:13 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi Martin,
I would like to suggest to look into this article. Be sure to run it with the version 4.0 and not another version. However, the article has a lot more details also on how to debug extensions and make sure they would work before deployment. You can find also more information on my blog. The issue you have is due to errors in the deployment. It misses information like the metainf or plugin. xml, there are inconsistencies in the plugin ID's, you miss the component. Likely something like that, because the deployment worked, but the bundle can not be found. Comments
Martin Dam Pedersen
commented Apr 02 '13, 9:34 a.m.
Hi Ralph,
I have now followed the instructions in the paper RTC40ExtPoT.pdf, and it gave me the exact same error:
CRJZS0383W Failed to resolve the bundle "com.example.hellojazz.service".
I loaded the hellojazz code from the zip file, and did not make any modifications to it at all. Here is what i did:
1) I created a feature project and a updatesite, as stated in the above document.
2) Added the updatesite to the site folder on the server, and copied the site to it.
3) Created a hellojazz.ini file in provision_profiles folder.
5) Restarted the server.
Then I get the exact same error as typed in my first post.
if it is possible for you to deploy the hellojazz service, then please provide me with your feature and updatesite project, so I can see what i am doing wrong.
Martin,
Martin Dam Pedersen
commented Apr 02 '13, 9:46 a.m.
Heres is what i get when calling https://server:9443/ccm/admin#action=com.ibm.team.repository.admin.componentStatus |
Ralph Schoon (63.5k●3●36●46)
| answered Apr 02 '13, 10:21 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Apr 02 '13, 10:22 a.m.
Hi, I just downloaded the zip from the article.
Comments
Martin Dam Pedersen
commented Apr 03 '13, 4:14 a.m.
Hi Ralph,
Thank you for your effort in helping me out here :-)
As I wrote in the question it also works fine for me when using the Jetty server, but it doesn't work when i'am trying to deploy it on a standalone server.
I have tried fiddling with the plugin ID's but with no luck.
I checked the jars in the update-site and they all contain the right class files(to my knowledge) and also plugin.xml + metainf.
I'am really surprised that it is such a pain for me, since it sounds so simple.
Are you able to deploy to a standalone Apache Server running the JazzTeamServer ?
If it could be of any help I could try emailing you my feature and update-site projects ?
|
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.