navmap-mytheme.vm
Asked by RakeshS:

Hi,

We are facing issues with navmap-mytheme.vm macro, any help on this file or below error removal would be helpful.

Please note that I have gone through below url, let me know if you have any other solution for this.

" <http://confluence.atlassian.com/display/CONFKB/%27Unable+to+Find+Resource+navmap-mytheme.vm%27+Error+Due+to+Navmap+Custom+Setting> "

===============================================================================  
2011-06-28 12:19:17,727 ERROR \[TP-Processor21\] \[confluence.util.velocity.VelocityUtils\] getRenderedTemplate Error occurred rendering template: /com/atlassian  
/confluence/plugins/macros/advanced/navmap-mytheme.vm  
-- url: /confluence/display/IBTCP/OPERATE \| page: 52333045 \| userName: anonymous \| action: viewpage  
org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '/com/atlassian/confluence/plugins/macros/advanced/navmap-mytheme.vm'  
at com.atlassian.confluence.util.velocity.ConfigurableResourceManager.loadResource(ConfigurableResourceManager.java:400)  
at com.atlassian.confluence.util.velocity.ConfigurableResourceManager.getResource(ConfigurableResourceManager.java:304)  
at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1400)  
at org.apache.velocity.app.VelocityEngine.getTemplate(VelocityEngine.java:422)  
at com.atlassian.confluence.util.velocity.VelocityUtils.getTemplate(VelocityUtils.java:83)  
at com.atlassian.confluence.util.velocity.VelocityUtils.renderTemplateWithoutSwallowingErrors(VelocityUtils.java:67)  
at com.atlassian.confluence.util.velocity.VelocityUtils.getRenderedTemplateWithoutSwallowingErrors(VelocityUtils.java:55)  
at com.atlassian.confluence.util.velocity.VelocityUtils.getRenderedTemplate(VelocityUtils.java:38)  
at com.atlassian.confluence.util.velocity.VelocityUtils.getRenderedTemplate(VelocityUtils.java:31)  
at com.atlassian.confluence.plugins.macros.advanced.NavigationMapMacro.renderNavMap(NavigationMapMacro.java:86)  
at com.atlassian.confluence.plugins.macros.advanced.NavigationMapMacro.execute(NavigationMapMacro.java:79)  
at com.atlassian.renderer.v2.macro.ResourceAwareMacroDecorator.execute(ResourceAwareMacroDecorator.java:51)  
at com.atlassian.renderer.v2.components.MacroRendererComponent.executeMacro(MacroRendererComponent.java:203)  
at com.atlassian.renderer.v2.components.MacroRendererComponent.processMacro(MacroRendererComponent.java:169)  
at com.atlassian.renderer.v2.components.MacroRendererComponent.makeMacro(MacroRendererComponent.java:67)  
at com.atlassian.renderer.v2.components.WikiContentRendererHandler.handleMacro(WikiContentRendererHandler.java:18)  
at com.atlassian.renderer.v2.WikiMarkupParser.makeMacro(WikiMarkupParser.java:120)  
at com.atlassian.renderer.v2.WikiMarkupParser.handlePotentialMacro(WikiMarkupParser.java:105)  
at com.atlassian.renderer.v2.WikiMarkupParser.parse(WikiMarkupParser.java:60)  
at com.atlassian.renderer.v2.components.MacroRendererComponent.render(MacroRendererComponent.java:46)

Thank you \& Regards,  
Rakesh Sharma


Answers:
author: MatthewC
body: What's the wiki markup for the page generating this result? What version of Confluence?

Are you just using the example on the page: <http://confluence.atlassian.com/display/CONFKB/%27Unable+to+Find+Resource+navmap-mytheme.vm%27+Error+Due+to+Navmap+Custom+Setting> ?

It could be because the documentation is for a different version? The file needs to be in

**confluence\\WEB-INF\\classes\\com\\atlassian\\confluence\\plugins\\macros\\advanced\\navmap-mytheme.vm**

You will need to create the directories from **plugins\\macros\\advanced** as they don't exist.

Tested on version 3.2.1


Tags: navigation-map