java.lang.IllegalArgumentException: Tool can only be initialized with a ViewContext

velocity-user | Mike Kienenberger | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Re: toolbox.xml and email templates

    velocity-user | 1 decade ago | Mike Kienenberger
    java.lang.IllegalArgumentException: Tool can only be initialized with a ViewContext
  2. 0

    Re: toolbox.xml and email templates

    velocity-user | 1 decade ago | Mike Kienenberger
    java.lang.IllegalArgumentException: Tool can only be initialized with a ViewContext

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Tool can only be initialized with a ViewContext

      at org.apache.velocity.tools.view.tools.LinkTool.init()
    2. VelocityTools
      XMLToolboxManager.getToolboxContext
      1. org.apache.velocity.tools.view.tools.LinkTool.init(LinkTool.java:291)
      2. org.apache.velocity.tools.view.ViewToolInfo.getInstance(ViewToolInfo.java:171)
      3. org.apache.velocity.tools.view.XMLToolboxManager.getToolboxContext(XMLToolboxManager.java:150)
      3 frames
    3. com.gvea.struts
      Application.getToolboxContext
      1. com.gvea.struts.ebpp.framework.Application.getToolboxContext(Application.java:124)
      1 frame