Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Getting Error Injecting ActiveObjects Edited

I am trying to use Active Objects in a Confluence plugin. However, I get an error that ActiveObjects cannot be injected. (To speedup time, I currently am using the refapp version 5.2.4 locally.)

The tables for the entities are created in the database, Hence Active Objects is available and seems to have some basic functionality. For me, the error message indicates that the mapping of the URL to the configured Rest API class/method works, but when instantiating the object, the ActiveObjects class is not found.

The error message I see is:

io.atlassian.util.concurrent.LazyReference$InitializationException: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.acme.confluence.plugin.myPlugin.ui.QuestionnaireResource': Unsatisfied dependency expressed through constructor parameter 0;
nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.atlassian.activeobjects.external.ActiveObjects' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}

The URL I am calling to test this is


The relevant part of the source code is

import com.atlassian.activeobjects.external.ActiveObjects;
import com.atlassian.plugin.spring.scanner.annotation.imports.ComponentImport;
import javax.inject.Inject;

public class QuestionnaireResource {
private final ActiveObjects ao;

public QuestionnaireResource(ActiveObjects ao) { = ao;

@GET @Path("{id}")
public Response get(@Context HttpServletRequest request, @PathParam("id") Integer id) {

I already checked that the generated MANIFEST.MF in target/classes/META-INF contains com.atlassian.activeobjects.external in the Import-Package list.

Adding this package com.atlassian.activeobjects.external explicitly to the pom.xml Import-Package list list did not change anything.

Also, running a clean did not help. And running Confluence instead of the RefApp did not help either.

Moving the ComponentImport annotation from the instance variable to the constructor argument did not change much either, just the error message now slightly changes to contain "Dependency annotations: {@com.atlassian.plugin.spring.scanner.annotation.imports.ComponentImport(value=)}".

Why is the ActiveObjects class not found? Would there be another way than injection to get access to this object?

EDIT: I found that the target/refpp/refapp.war file which gets created and deployed contains activeobjects-plugin-3.0.3.jar, but not activeobjects-core-3.0.3.jar. This would explain why the class is not there, but still not how I could get it  to be included and instantiated correctly. I tried to include it in my pom.xml, but if the scope is not set to "provided", the build fails due to BannedDependencies. So including it in my plugin does not seem to be a viable solution.

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Miss the Confluence demos at Team 21? Watch them here!

Phew, Atlassian Team 2021 blew by. With dozens of demos and a handful of keynotes, you may have missed some of the awesome Confluence Cloud sessions. Don't' worry, you can watch them all here or on Y...

397 views 2 6
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you