Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Confluence does not see my REST service

Frédéric Esnault April 14, 2015

Hi everyone,

 

I'm facing a strange problem with my plugin. I try adding a REST service, so i declared the rest entry in the atlassian-plugin.xml, with a correct path

<rest key="myplugin-admin"  path="/myplugin" version="1.0">
  <description>Provides REST resources for the my plugin admin UI.</description>
</rest>

 

I create a REST service in com.mypackage.rest. I'm sure this part is ok, because i tried a REST service created from scratch using atlassian tool, which work in a simple atlas-run, but not when the rest module is added to my plugin.

 

In the REST API browser, when i search for my REST api, i only see :

myplugin/1.0/atlassian-application.wadl

not any of my method, declared with @GET or @POST, a @Path...

The result of the wadl call does not display my methods.

 

Seems i have something wrong, but i cannot see the difference between my plugin and the test one i created to check, where everything was running fine. The WEB-INF/lib are the same, the pom.xml are similar, but in my plugin i have more things (listeners, servlets, admin, web resources and item,...).

 

Of course no error in Confluence or in logs.

I tried exporting the rest package with no result (OSGi).

Any idea what i could do wrong ?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Deleted user May 7, 2015

Having the exact same problem here. Did you solve it? Regards, Oliver

TAGS
AUG Leaders

Atlassian Community Events