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
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.