I’ve implemented a Confluence UI add-on which so far uses BandanaManager to persist some data coming fom the UI.
Now I want to create an issue in Jira with the Jira Rest java Client and I set the following dependency in the pom.xml:
<dependency>
<groupId>com.atlassian.jira</groupId>
<artifactId>jira-rest-java-client-core</artifactId>
<version>5.0.4</version>
</dependency>
Other dependencies:
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.atlassian.confluence</groupId>
<artifactId>confluence</artifactId>
<version>${confluence.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.atlassian.plugins</groupId>
<artifactId>atlassian-plugins-osgi-testrunner</artifactId>
<version>${plugin.testrunner.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>jsr311-api</artifactId>
<version>1.1.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.2.2-atlassian-1</version>
</dependency>
I’ve just implemented a service, who calls the Jira Rest Java Client functionalities, but is currently NOT in use by any function in Confluence.
Now, if I run the add-on in Confluence, I get the following error over and over again if I click onto the button on the Confluence UI:
[INFO] [talledLocalContainer] 2018-07-25 12:07:58,197 ERROR [http-nio-1990-exec-7] [atlassian.plugin.servlet.DefaultServletModuleManager] getInstance Unable to create new reference LazyLoadedFilterReference{descriptor=com.test.confluence.PageStatus:page-status-rest-filter (Provides services for retrieving stats), filterConfig=com.atlassian.plugin.servlet.filter.PluginFilterConfig@4d95e5b3}
[INFO] [talledLocalContainer] -- referer: http://nb-zbooku-51:1990/confluence/display/ds/Welcome+to+Confluence | url: /confluence/rest/page-status/1.0/page-status | traceId: 0c71f82941514221 | userName: admin
[INFO] [talledLocalContainer] com.atlassian.util.concurrent.LazyReference$InitializationException: com.sun.jersey.spi.inject.Errors$ErrorMessagesException
[INFO] [talledLocalContainer] at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149)
[INFO] [talledLocalContainer] at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112)
...
If I comment out the JRJC dependency and also the Jira-REST-Code, all is working fine.
What am I missing or what did I do wrong?
Thank you in advance