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

Simple Refapp not running, says the requested resource() is not available

Umair Haroon
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.
May 8, 2014

Hi I am creating a simple empty refapp skeleton by following the link:

https://developer.atlassian.com/display/DOCS/Create+a+plugin+skeleton#Createapluginskeleton-GetintroducedtoRefApp

Im creating a directory and then calling:

atlas-create-refapp-plugin

After entering the values:

<th>
com.atlassian.plugins.tutorial.refapp
adminUI
1.0-SNAPSHOT
com.atlassian.plugins.tutorial.refapp

I am going to the directory and doing:
atlas-run

However I get a couple of ERRORS, the first one being:

SEVERE: Exception sending context initialized even
t to listener instance of class com.atlassian.plugin.refimpl.InitListener
[INFO] [talledLocalContainer] java.lang.IllegalArgumentException: The plugin key
'${project.groupId}.${project.artifactId}-tests' must either match the OSGi bun
dle symbolic name (Bundle-SymbolicName) or be specified in the Atlassian-Plugin-
Key manifest header

Though at the end of executing the command I get:
refapp started successfully in 45s at http://<address>:2300/refapp

When I go the url it says:

HTTP Status 404-
description The requested resource() is not available

No other service is using the port before.

I remember being able to follow the above link tutorial and run the refapp before. There is not much to it, however not sure why I am getting this error.


2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

3 votes
Answer accepted
Umair Haroon
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.
May 11, 2014

I am saving someone A LOT LOT LOT of trouble.

After trying all possible ways, I did an atlas-update command.

My previous version was 4.2.13

My new version is: 4.2.20

The update resolved the error.

Seems to me lot of mysterious issues pop up when doing development on jira products/plugins and the documents dont always cover them.

MaximS September 9, 2014

Updated to 5.0.4 and that's not a solution for me. Any issues lately? Thanks

tivon zhang April 20, 2015

Thanks for your help. Errors go out.

1 vote
Seth Carter May 18, 2014

I too ran into this working on the "AUI add an add on tutorial" (https://developer.atlassian.com/display/AUI/Use+AUI+in+an+Add-on) and just a week before it seemed to work fine on a similar but different local project. Makes you think you're going nuts!

After running the update as suggested above I still got the same output as posted by Samurai Sushi. Picking through the other errors listed I came upon this thread (https://answers.atlassian.com/questions/181362/the-plugin-key-project-groupid-project-artifactid-tests-must-either-match-the-osgi-bundle-symbolic-name-bundle-symbolicname-or-be-specified-in-the-atlassian-plugin-key-manifest-header) which avoids the SDK building and then trying to load the test.jar altogether. Anyway, as it states I renamed /src/test/resources/atlassian-plugin.xml, ran mvn clean, and then atlas-run completed without all the SEVERE and ERROR output and the url to http://localhost:5990/refappresolved correctly.

Nabil Sayegh
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.
November 11, 2014

Thank you very much. Removing /src/test/resources/atlassian-plugin.xml fixed the problem

TAGS
AUG Leaders

Atlassian Community Events