You use the new format, but it's probably because you use the old
*parameter name* (global context-param or servlet-specific
init-param, which are both considered).
The old parameter name is org.apache.velocity.toolbox.
The new parameter name is org.apache.velocity.tools.
Claude
On Fri, 14 Feb 2014 10:57:16 -0500
Christopher Schultz ch...@christopherschultz.net wrote:
Bump. Anyone?
On 1/30/14, 8:30 PM, Christopher Schultz wrote:
All,
I just noticed this warning in my startup logs:
Jan 30, 2014 8:21:33 PM org.apache.catalina.core.ApplicationContext
log INFO: Velocity [trace] Searching for configuration
at: /WEB-INF/tools.xml Jan 30, 2014 8:21:33 PM
org.apache.catalina.core.ApplicationContext log INFO: Velocity
[debug] Loaded deprecated configuration from: /WEB-INF/tools.xml
Jan 30, 2014 8:21:33 PM org.apache.catalina.core.ApplicationContext
log INFO: Velocity [warn] Please upgrade to new
/WEB-INF/tools.xml format and conventional location. Support for
/WEB-INF/toolbox.xml format and conventional file name will be
removed in a future version. Jan 30, 2014 8:21:33 PM
org.apache.catalina.core.ApplicationContext log INFO: Velocity
[debug] Default tools configuration has been suppressed to avoid
conflicts with older application's context and toolbox definition.
Jan 30, 2014 8:21:33 PM org.apache.catalina.core.ApplicationContext
log INFO: Velocity [trace] Searching for configuration
at: /WEB-INF/tools.xml Jan 30, 2014 8:21:33 PM
org.apache.catalina.core.ApplicationContext log INFO: Velocity
[debug] Loaded configuration from: /WEB-INF/tools.xml Jan 30, 2014
8:21:33 PM org.apache.catalina.core.ApplicationContext log INFO:
Velocity [debug] Configuring factory with: FactoryConfiguration
from 4 sources with 2 toolboxes: Toolbox 'application' with 1
properties [scope -auto- application; ] and 8 tools: [lists 8
tools] Toolbox 'request' with 2 properties [scope -auto- request;
xhtml -auto- true; ] and 7 tools:
[lists 7 tools]
I believe my toolbox file matches the new toolbox definition, and
it can be found under /WEB-INF/tools.xml:
?xml version=1.0?
!-- $Id: tools.xml 11728 2013-01-12 01:33:51Z schultz $ --
tools
toolbox scope=application
tool
class=org.apache.velocity.tools.generic.AlternatorTool / [...]
/toolbox
toolbox scope=request xhtml=true
tool class=org.apache.velocity.tools.struts.StrutsLinkTool /
[...]
/toolbox
/tools
Am I missing something?
Thanks,
-chris
-
To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org
For additional commands, e-mail: user-h...@velocity.apache.org