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

Next challenges

Recent achievements


  • Give kudos
  • My kudos


  • 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

Getting resource from plugin only works after restart Edited


In my Jira-plugin I'm trying to load a resource. When the plugin is installed it doesn't work, but after a restart of Jira everthing works fine. I have tried the following methods with various getClass-methods. All with the same result.

String resource = "/resource.tmp"; // Located in /src/resources
InputStream in = getClass().getClassLoader().getResourceAsStream(resource);

InputStream in = com.atlassian.core.util.ClassLoaderUtils.getResourceAsStream(resource, this.getClass());

InputStream in = ComponentAccessor.getPluginAccessor().getDynamicResourceAsStream(resource);

InputStream in = webwork.util.ClassLoaderUtils.getResourceAsStream(resource, MailSender.class);

I'm using Spring Scanner version 2.1.8


Moved to Developer Community:

1 answer

Hi @kim ,

I think better ask in dev community


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Software

How to create Jira issus from Excel file?

When to use CSV importer When managing your processes in Jira, there are many occasions where you need to create a lot of tasks. Creating them one by one will cost you a lot of time and effort and i...

4,623 views 22 33
Read article

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