The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
April 17, 2013

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

TAGS
AUG Leaders

Atlassian Community Events