velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben <>
Subject Toolbox loaded but not working
Date Thu, 07 Oct 2004 07:16:13 GMT

Could somebody please tell me what I am doing wrong here and why I
can't use the toolbox?

Here are my configurations:

velocimacro.library = /WEB-INF/VM_global_library.vm
velocimacro.permissions.allow.inline = true = false
velocimacro.permissions.allow.inline.local.scope = false
velocimacro.context.localscope = false

runtime.log.invalid.reference = true
runtime.log.error.stacktrace = true
runtime.log.warn.stacktrace = true = true

<?xml version="1.0"?>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<title>$text.webapp.prefix: $text.index.title</title>
<a href="$link.setURI("/")">Home</a>

Velocity log:
[info] VelocityViewServlet: Custom Properties File:
[info] ************************************************************** 
[info] Starting Jakarta Velocity v1.4
[info] RuntimeInstance initializing.
[info] Default Properties File:
[info] Trying to use logger class
[info] Using logger class
[info] Default ResourceManager initializing. (class
[info] Resource Loader Instantiated:
[info] WebappLoader : initialization starting.
[info] WebappLoader : initialization complete.
[info] ResourceCache : initialized. (class
[info] Default ResourceManager initialization complete.
[info] Loaded System Directive: org.apache.velocity.runtime.directive.Literal
[info] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
[info] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
[info] Loaded System Directive: org.apache.velocity.runtime.directive.Include
[info] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
[info] Created: 20 parsers.
[info] Velocimacro : initialization starting.
[info] Velocimacro : adding VMs from VM library template :
[info] ResourceManager : found /WEB-INF/VM_global_library.vm with
[info] Velocimacro :  VM library template macro registration complete.
[info] Velocimacro : allowInline = true : VMs can be defined inline in templates
[info] Velocimacro : allowInlineToOverride = false : VMs defined
inline may NOT replace previous VM definitions
[info] Velocimacro : allowInlineLocal = false : VMs defined inline
will be  global in scope if allowed.
[info] Velocimacro : messages on  : VM system will output logging messages
[info] Velocimacro : autoload off  : VM system will not automatically
reload global library macros
[info] Velocimacro : initialization complete.
[info] Velocity successfully started.
[info] ServletToolboxManager: Using config file '/WEB-INF/toolbox.xml'
[debug] XMLToolboxManager: Loading toolbox...
[debug] XMLToolboxManager: Toolbox loaded.
[info] ServletToolboxManager: Toolbox setup complete.
[info] VelocityViewServlet: Default content-type is: text/html
[info] VelocityViewServlet: No custom properties found. Using default
Velocity configuration.
[info] VelocityViewServlet: No toolbox entry in configuration.
[info] VelocityViewServlet: Default content-type is: text/html
[info] ResourceManager : found /index.vm with loader
[warn] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = /index.vm [line 4,column 8] :
$text.webapp.prefix is not a valid reference.
[warn] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = /index.vm [line 4,column 29] :
$text.index.title is not a valid reference.
[warn] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = /index.vm [line 7,column 9] : $link.setURI("/")
is not a valid reference.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message