com.atlassian.activeobjects.osgi.NoServicesFoundException

I am trying active objects tutorial from the Atlassian documentation and got the below exception at State 2 from the documentation.

https://developer.atlassian.com/display/DOCS/Getting+Started+with+Active+Objects

[INFO] [talledLocalContainer] Caused by: com.atlassian.activeobjects.osgi.NoServicesFoundException: Was expecting one service reference for interface <com.atlassian.activeobjects.config.ActiveObjectsConfiguration
> and filter <(com.atlassian.plugin.key=com.tibco.tutorial.ao.todo.ao-tutorial)>. Got null ! You should check whether an ActiveObjectsPluginException was thrown at startup. It will give you more information about
 potential errors in the <ao> module in your atlassian-plugin.xml.
[INFO] [talledLocalContainer]   at com.atlassian.activeobjects.osgi.OsgiServiceUtilsImpl.getServiceReference(OsgiServiceUtilsImpl.java:50)
[INFO] [talledLocalContainer]   at com.atlassian.activeobjects.osgi.OsgiServiceUtilsImpl.getService(OsgiServiceUtilsImpl.java:41)
[INFO] [talledLocalContainer]   at com.atlassian.activeobjects.osgi.ActiveObjectsServiceFactory.getConfiguration(ActiveObjectsServiceFactory.java:139)
[INFO] [talledLocalContainer]   ... 157 more
atlassian-plugin.xml file:
<atlassian-plugin key="${project.groupId}.${project.artifactId}" name="${project.name}" plugins-version="2">
    <plugin-info>
        <description>${project.description}</description>
        <version>${project.version}</version>
        <vendor name="${project.organization.name}" url="${project.organization.url}" />
        <param name="plugin-icon">images/pluginIcon.png</param>
        <param name="plugin-logo">images/pluginLogo.png</param>
    </plugin-info>
    
    <ao key="ao-module">
  		<description>The module configuring the Active Objects service used by this plugin</description>
  		<entity>com.tibco.tutorial.ao.todo.Todo</entity>
	</ao>
	
	<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>
	
	<servlet name="Todo List & Add Servlet" class="com.xxxx.tutorial.ao.todo.TodoServlet" key="todo-list">
  		<description>A servlet to add and list todos</description>
  		<url-pattern>/todo/list</url-pattern>
	</servlet>

    <!-- add our i18n resource -->
    <resource type="i18n" name="i18n" location="ao-tutorial"/>
    
    <!-- add our web resources -->
    <web-resource key="ao-tutorial-resources" name="ao-tutorial Web Resources">
        <dependency>com.atlassian.auiplugin:ajs</dependency>
        
        <resource type="download" name="ao-tutorial.css" location="/css/ao-tutorial.css"/>
        <resource type="download" name="ao-tutorial.js" location="/js/ao-tutorial.js"/>
        <resource type="download" name="images/" location="/images"/>

        <context>ao-tutorial</context>
    </web-resource>
    
    <!-- publish our component -->
    <component key="myPluginComponent" class="com.xxxxx.tutorial.ao.todo.MyPluginComponentImpl" public="true">
        <interface>com.xxxxx.tutorial.ao.todo.MyPluginComponent</interface>
    </component>
    
    <!-- import from the product container -->
    <component-import key="applicationProperties" interface="com.atlassian.sal.api.ApplicationProperties" />
    
</atlassian-plugin>

Can someone help please?

1 answer

This widget could not be displayed.

Try by adding this to your atlassian-plugin.xml:

<component-import key="ao" name="Active Objects service" interface="com.atlassian.activeobjects.external.ActiveObjects" />

F.

Hi Frederic,

This is already existing in atlassian-plugin.xml file but I am still facing this issue.

Thanks

Hi Atlassians, Any update please?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 12 hours ago in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

36 views 1 2
Join discussion

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