com.atlassian.activeobjects.osgi.NoServicesFoundException

srinivasp
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.
July 2, 2014

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

0 votes
Frédéric Tardieu
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.
July 2, 2014

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

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

F.

srinivasp
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.
July 6, 2014

Hi Frederic,

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

Thanks

srinivasp
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.
July 7, 2014

Hi Atlassians, Any update please?

Suggest an answer

Log in or Sign up to answer