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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Confluence Rest Web Service not working after import aspose words version 19.4 Edited

I created new confluence plugin by "atlas-create-confluence-plugin"

after that I create new rest service:

@Path("contracts")
@Produces({ MediaType.APPLICATION_JSON })
public class RESTContract {

@GET
public Response getContract() {
return Response.ok().build();
}

Defined rest in at atlassian-plugin.xml

<rest key="hello-app-rest" path="/helloapp" version="1">
<description>Provides services</description>
</rest>

The REST working normal BUT my REST die after I import Aspose Words 19.4 (I tried another version)

 <dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-words</artifactId>
<version>19.4</version>
<classifier>jdk17</classifier>
</dependency>

 

I got 404 and error:

2019-04-08 15:50:50,017 ERROR [http-nio-8090-exec-1] [rest.module.scanner.AnnotatedClassScanner] indexJar Exception while processing file, /Users/user/Working/Workspaces/confluence-home/plugins-cache/1554713436000plugin_7614287884005816028_confluence-1.0.0.jar
-- url: /rest/helloapp/1/contracts| traceId: 43f778b88bf3b1f9 | userName: user1
java.lang.IllegalArgumentException
at org.objectweb.asm.ClassReader.<init>(Unknown Source)
at org.objectweb.asm.ClassReader.<init>(Unknown Source)
at org.objectweb.asm.ClassReader.<init>(Unknown Source)
2019-04-08 15:50:50,214 ERROR [http-nio-8090-exec-1] [atlassian.plugin.servlet.DefaultServletModuleManager] getInstance Unable to create new reference LazyLoadedFilterReference{descriptor=com.hello:confluence-rest-filter (Provides services for confluence), filterConfig=com.atlassian.plugin.servlet.filter.PluginFilterConfig@204fc409}
-- url: /rest/helloapp/1/contracts| traceId: 43f778b88bf3b1f9 | userName: user1
com.atlassian.util.concurrent.LazyReference$InitializationException: com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes.
at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149)
at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112)
at com.atlassian.plugin.servlet.DefaultServletModuleManager.getInstance(DefaultServletModuleManager.java:447)
at com.atlassian.plugin.servlet.DefaultServletModuleManager.getFilter(DefaultServletModuleManager.java:440)
at com.atlassian.plugin.servlet.DefaultServletModuleManager.getFilters(DefaultServletModuleManager.java:300)

I tried add to Import-Package

*;resolution:="optional",

or

*;version="0";resolution:="optional",

 

Please let me know what is the issue with my Rest bases web service and why i am getting below exception.

Thank

1 answer

Anyone can help me? Please. I have to use Server instead but I don't want to use it

Hi, I'm facing a similar problem. Did you ever found a solution to this?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

323 views 23 8
Join discussion

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