Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-79625

Fix resource 'template/includes/macros-deprecated.vm' with Struts

      Issue Summary

      Unable to find resource 'template/includes/macros-deprecated.vm'

      Steps to Reproduce

      1. Enable/Disable P2 plugin

      Expected Results

      No exception

      Actual Results

      The below exception is thrown in the xxxxxxx.log file:

      Caused by: org.apache.velocity.exception.VelocityException: Velocimacro : Error using VM library : template/includes/macros-deprecated.vm
          at org.apache.velocity.runtime.VelocimacroFactory.initVelocimacro(VelocimacroFactory.java:219)
          at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:260)
          at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:588)
          at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:135)
          at com.atlassian.confluence.util.velocity.VelocityUtils.getVelocityEngine(VelocityUtils.java:106)
          at com.atlassian.confluence.util.velocity.VelocityUtils.getTemplate(VelocityUtils.java:90)
          at com.atlassian.confluence.util.velocity.VelocityUtils.renderTemplateWithoutSwallowingErrors(VelocityUtils.java:76)
          at com.atlassian.confluence.util.profiling.ConfluenceSitemeshDecorator$StreamingResponseWritingStrategy.renderToResponse(ConfluenceSitemeshDecorator.java:327)
          ... 240 more
      Caused by: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'template/includes/macros-deprecated.vm'
          at com.atlassian.confluence.util.velocity.ConfigurableResourceManager.loadResource(ConfigurableResourceManager.java:376)
          at com.atlassian.confluence.util.velocity.ConfigurableResourceManager.getResource(ConfigurableResourceManager.java:297)
          at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1400)
          at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1379)
          at org.apache.velocity.runtime.VelocimacroFactory.initVelocimacro(VelocimacroFactory.java:202)
          ... 247 more
      

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

            [CONFSERVER-79625] Fix resource 'template/includes/macros-deprecated.vm' with Struts

            No work has yet been logged on this issue.

              kmacleod Kenny MacLeod
              ggautam Ganesh Gautam
              Affected customers:
              0 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: