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

CRJAZ0281E The "org.junit" dependency bundle cannot be installed.

Hello,

I am developing a plug-in for RTC 4. I am also testing the plug-in using JUnit.
When starting the server after deploying the new plug-in, i get this error in the log:
 CRJAZ0281E The "org.junit" dependency bundle cannot be installed.

I am new the the RTC extending chapter. Is it not possible to use JUnit in plug-ins?

I also made a test to see if it can be deployed without the JUnit, and it worked...partially. The installation of the new plug-in was ok, but when hitting the "save" work item button, it failed. In the log i could see a ClassNotFound exception, referring to the new operation advisor class that I created.

Any ideas?

Thank you very much!
Have a great day,
Andrada

0 votes


Accepted answer

Permanent link
If you look at the RTC SDK, you realize that it used JUnit for testing as well. However, you should separate the projects with JUnit tests from the Projects with production code to be deployed. You don't want to have a dependency to JUnit in your production plugins. If you want, make sure JUnit is available to the extension e.g. deploy it on the server and make it available (not sure how you would do this).

See https://rsjazz.wordpress.com/2014/07/22/manage-scheduled-absences-using-the-plainjava-client-libraries/ where I test a client plugin with JUnit.
Andrada Roman selected this answer as the correct answer

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,938
× 343

Question asked: Feb 17 '15, 8:19 a.m.

Question was seen: 3,534 times

Last updated: Feb 19 '15, 11:01 a.m.

Confirmation Cancel Confirm