I'm using Struts2 with Velocity. (2.0.11.1 & Velocity 1.5 & Tools 1.4) I keep getting this error. It's obviously a dependency problem. (2.0.11.1 seems to be needed Velocity 1.4) I've tried with Struts2 2.1.2 with depends on Velocity 1.5, but the problem persist. When I look at the code, it says ChainedContext needs a org.apache.velocity.app.VelocityEngine as first argument, whereas VelocityManager.java:193 provide it with a StrutsVelocityContext.
java.lang.NoSuchMethodError: org.apache.velocity.tools.view.context.ChainedContext.(Lorg/apache/velocity/context/Context;Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljavax/servlet/ServletContext;)V at org.apache.struts2.views.velocity.VelocityManager.createContext(VelocityManager.java:193) at org.apache.struts2.dispatcher.VelocityResult.createContext(VelocityResult.java:236) at org.apache.struts2.dispatcher.VelocityResult.doExecute(VelocityResult.java:153) at org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:186) There's a workaround: you can specified a default struts.velocity.toolboxlocation=toolbox.xml in your struts.properties as this seems to be caused by an attempt to load the default struts.velocity.toolboxlocation (empty in the default struts.properties)... obscure to me... but it works now, it may help someone. -nodje -- View this message in context: http://www.nabble.com/Problem-with-Velocity-Dependency-tp17998012p17998012.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]