Unable to find resource Velocity JIRA Plugin

Fernando del Rio April 3, 2013

I have the next problem:

I have the following class:

classes/com/example/jira/tab2/jira/tabpanels/tab.java


and I need to call this vm in the following path:

classes/templates/tabpanels/issue-tab-panel.vm

my code:

properties.setProperty(RuntimeConstants.RESOURCE_LOADER, "classpath");

properties.setProperty("classpath.resource.loader.class", ClasspathResourceLoader.class.getName());

Velocity.init(properties);

Template template = null;

template = Velocity.getTemplate("../../../../../../templates/tabpanels/issue-tab-panel.vm");

the console error:

org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '../../../../../../templates/tabpanels/issue-tab-panel.vm'

Help me please

thankU.

1 answer

0 votes
Nadir MEZIANI
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.
April 17, 2013

I think that you have not add the resource issue-tab-panel.vm in yous atlassian-plugin.xml

Suggest an answer

Log in or Sign up to answer