[
https://issues.apache.org/struts/browse/WW-2796?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Musachy Barroso resolved WW-2796.
---------------------------------
Resolution: Fixed
fixed on trunk. thanks for reporting.
> org.apache.struts2.views.velocity.VelocityManager calling deprecated
> velocity's ChainedContext constructor
> ----------------------------------------------------------------------------------------------------------
>
> Key: WW-2796
> URL: https://issues.apache.org/struts/browse/WW-2796
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.0.11
> Environment: velocity-tools-1.4.jar
> velocity-1.5.jar
> struts2.0.11.jar
> Reporter: Flavien Binet
> Priority: Critical
> Fix For: 2.1.3
>
>
> Hello :)
> I'm facing a bug when trying to setup velocity's toolbox (version 1.4).
> Here is the stack trace :
> ----------------------------
> java.lang.NoSuchMethodError:
> org.apache.velocity.tools.view.context.ChainedContext.<init>(Lorg/apache/velocity/context/Context;Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljavax/servlet/ServletContext;)V
>
> org.apache.struts2.views.velocity.VelocityManager.createContext(VelocityManager.java:193)
>
> org.apache.struts2.dispatcher.VelocityResult.createContext(VelocityResult.java:235)
>
> org.apache.struts2.dispatcher.VelocityResult.doExecute(VelocityResult.java:152)
>
> org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:178)
>
> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:348)
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:253)
> ...
> ----------------------------
> VelocityManager object is trying to call a constructor that has been
> deprecated since velocity-tools-1.3 (regarding javadoc ->
> http://velocity.apache.org/tools/releases/1.3/javadoc/org/apache/velocity/tools/view/context/ChainedContext.html#ChainedContext(org.apache.velocity.context.Context,%20javax.servlet.http.HttpServletRequest,%20javax.servlet.http.HttpServletResponse,%20javax.servlet.ServletContext)
> It work well using velocity-tools-1.2.jar, but i need to use it under 1.4.
> This new constructor seems to require a VelocityEngine instance that is not
> available around :)
> Thank for support
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.