JIRA plug-in development- Scheduled task reference methods


I've written a scheduled task to run on JIRA version 6.0.6(following the tutorial in the JIRA cookbook). It says to add your jar file to "WEB-INF/lib" folders and reference it in "WEB-INF/classes/schduler-config.xml " in the following manner.

<job name="ATask" class="com.a.b.APluginPackage.ScheduledTask" />

This method works fine.

What I would like to know is, if there is a way of adding the jar file to a different location, like "/jira_home/plugins/installed-plugins" location (ideally upload the jar as a plug-in and reference it in the scheduler-config.xml )and reference this from the scheduled task in the following way.

<job name="ATask" class="<full path to installed directory>com.a.b.APluginPackage.ScheduledTask" />

I've tried this method but it does not seem to work and throws the errors at startup.

2014-01-06 12:11:17,378 localhost-startStop-1 FATAL      [atlassian.jira.scheduler.JiraSchedulerLauncher] A RuntimeException occurred during JiraSchedulerLauncher servlet context initialisation - null.
        at com.atlassian.scheduler.SchedulerUtil.initializeAndStart(SchedulerUtil.java:28)
        at com.atlassian.jira.scheduler.JiraSchedulerLauncher.proceedIfAllClear(JiraSchedulerLauncher.java:60)
        at com.atlassian.jira.scheduler.JiraSchedulerLauncher.start(JiraSchedulerLauncher.java:27)

Is it possible to use this method or is it mandotory for the jar file to be in the WEB-INF/lib folder?

Any help would be greatly appreciated.


1 answer

1 accepted

0 votes
Answer accepted
Daniel Wester Community Champion Jan 06, 2014
WEB-INF plugins are generally plugins v1 plugins and upm plugins are v2. https://developer.atlassian.com/display/JIRADEV/Differences+between+Plugins1+and+Plugins2has more details

So can a V2 plug-in be referenced from a scheduled task, and if so how should it be referenced?

Thank you very much for your prompt response.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 13, 2019 in Marketplace Apps

Marketplace Spotlight: Marketing apps for Confluence to keep your teams working on the same page


242 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you