Can't use ActiveObjects: No unique bean of type [com.atlassian.activeobjects.external.ActiveObjects] is defined

Hi,

I'm having trouble integrating ActiveObjects into my projects. I followed this guide:
https://developer.atlassian.com/display/AO/Getting+Started+with+Active+Objects

I tried different versions of the plugin (0.18.4, 0.19.7) and Jira (4.x, 5.1) but I cant install
the plugin because of the following exception:


[INFO] [talledLocalContainer] 2012-10-26 16:29:28,543 Spring executor 17 ERROR admin 989x291x1 ns79yg 127.0.0.1 /rest/plugins/1.0/ [extender.internal.activator.ContextLoaderListener] Application context refresh failed (NonValidatingOsgiBundleXmlApplicationContext(bundle=XXX, config=osgibundle:/META-INF/spring/*.xml))
[INFO] [talledLocalContainer] org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'tx-processor' defined in URL [bundle://104.0:0/META-INF/spring/atlassian-plugins-components.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.atlassian.activeobjects.external.ActiveObjects]: : No unique bean of type [com.atlassian.activeobjects.external.ActiveObjects] is defined: Unsatisfied dependency of type [interface com.atlassian.activeobjects.external.ActiveObjects]: expected at least 1 matching bean; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [com.atlassian.activeobjects.external.ActiveObjects] is defined: Unsatisfied dependency of type [interface com.atlassian.activeobjects.external.ActiveObjects]: expected at least 1 matching bean
[INFO] [talledLocalContainer]     at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:591)
[INFO] [talledLocalContainer]     at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:193)

part of pom.xml:

<dependency>
   <groupId>com.atlassian.activeobjects</groupId>
   <artifactId>activeobjects-plugin</artifactId>
   <version>0.19.7</version>
   <scope>provided</scope>
</dependency>



part of atlassian-plugin.xml:

<ao key="ao-module">
        <description>The module configuring the Active Objects service used by this plugin</description>
        <entity>com.XXX.jira.ao.Todo</entity>
</ao>

<component key="tx-processor" name="Transactional Annotation Processor"
      class="com.atlassian.activeobjects.external.TransactionalAnnotationProcessor">
      <decription>Processes @Transactional annotations.</decription>
</component>

<component key="todo-service" name="Todo Service" class="com.XXX.jira.ao.TodoServiceImpl"/>






Any ideas what's wrong? Do i need a different version spring framework? Which one?

1 answer

1 accepted

Accepted Answer
7 votes

Seems like your `atlassian-plugin.xml` is missing this:

<component-import key="ao" name="Active Objects service" interface="com.atlassian.activeobjects.external.ActiveObjects">
  <description>Component to access Active Objects functionality from the plugin</description>
</component-import>

Hi Sam,

thanks! How could I miss that!?

This answer helped me a lot :-)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published 11 hours ago in Jira Ops

Jira Ops Early Access Program Update #1: Announcing our next feature and a new integration

Thanks for signing up for Jira Ops! I’m Matt Ryall, leader for the Jira Ops product team at Atlassian. Since this is a brand new product, we’ll be delivering improvements quickly and sharing updates...

158 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you