Plugin fails to initialize due to component resolution

I am in the process of updating a legacy plugin to use atlassian-spring-scanner. After replacing the old component definitions in atlassian-plugin.xml, the plugin fails to initialize, and I am seeing the following error for a singleton component:

ERROR [main] [plugin.osgi.factory.OsgiPlugin] logAndClearOustandingDependencies Plugin ‘’ never resolved service ‘&formatHelper’ with filter ‘(&(objectClass=)(objectClass=))’

with FormatHelper being the classname.

Does anyone know what this error is indicating?

I think you should use @ConfluenceImport check the following document

Hi Prasad,

Thank you for your answer. It turned out that I was using the @ConfluenceImport check, but on a none injected object, which I guess results in the same error.