Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Unresolved constraint: (package=com.atlassian.event.api) in JIRA 4.0

Dheeraj Kumar Aggarwal June 11, 2012

Hi All,

I am following the documentation https://developer.atlassian.com/display/JIRADEV/Plugin+Tutorial+-+Writing+JIRA+event+listeners+with+the+atlassian-event+library

The documentation says, It is applicable for 4.0 and onwards.

My code is working fine in JIRA 4.4, but when I tried it for JIRA 4.0, It gives me the following exception:

Caused by: org.osgi.framework.BundleException: Unresolved constraint in bundle 43: package; (package=com.atlassian.event.api)

at org.apache.felix.framework.Felix._resolveBundle(Felix.java:1725)

at org.apache.felix.framework.Felix._startBundle(Felix.java:1588)

at org.apache.felix.framework.Felix.startBundle(Felix.java:1541)

at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:371)

at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:342)

... 25 more

One more question: I also want to capture PluginEnabledEvent (http://docs.atlassian.com/atlassian-plugins-parent/2.1.4/apidocs/com/atlassian/plugin/event/events/PluginEnabledEvent.html), is it available in JIRA 4.0?

For Atlassian Documentation Team,

Please update your documentation https://developer.atlassian.com/display/JIRADEV/Plugin+Tutorial+-+Writing+JIRA+event+listeners+with+the+atlassian-event+library, if it is not applicable for JIRA 4.0.

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Dheeraj Kumar Aggarwal June 11, 2012

Hi Mizan, Thanks for replying.

But I haven't found any action related to enable plugin and I think, that is also not a good way to do that because that action can be removed in future versions of JIRA.

0 votes
Mizan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 11, 2012

Check in

/WEB-INF/classes/actions.xml

is there a action to enable plugin .

If there is then you will have extend this action

TAGS
AUG Leaders

Atlassian Community Events