You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by "Velda Thomas (Consology)" <ve...@consology.com> on 2004/08/26 15:21:00 UTC
Velocity Macros Not Substituted
Hi
The value services.VelocityService.velocimacro.library in
TurbineResources.properties is set to point to a file GlobalMacros.vm
which defines the macros that are used throughout the site and is
included in each template thereafter. All was fine and working until
something went mysteriously wrong yesterday after a restart of the app
server. Now all the macros come out on the screen exactly as they are
called in the templates. For example, a call to #introbox('Register''Let
us know who you are') comes out on the screen as the text:
#introbox('Register''Let us know who you are'). This is a Linux system
running Tomcat with Turbine/Velocity/Postgres. Any ideas what could have
changed?
Thanks
Velda
Confidentiality Notice
This communication and the information it contains is intended for the
person(s) or organisation(s) named above and for no other person(s) or organisation(s). The content of this communication may be confidential, legally privileged and protected. Unauthorised use, copying or disclosure of any part of this communication may be unlawful. If you have received this communication in error, please remove it from your system.
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
Re: Velocity Macros Not Substituted
Posted by Mike Kienenberger <mk...@alaska.net>.
"Velda Thomas (Consology)" <ve...@consology.com> wrote:
> The value services.VelocityService.velocimacro.library in
> TurbineResources.properties is set to point to a file GlobalMacros.vm
> which defines the macros that are used throughout the site and is
> included in each template thereafter. All was fine and working until
> something went mysteriously wrong yesterday after a restart of the app
> server. Now all the macros come out on the screen exactly as they are
> called in the templates. For example, a call to #introbox('Register''Let
> us know who you are') comes out on the screen as the text:
> #introbox('Register''Let us know who you are'). This is a Linux system
> running Tomcat with Turbine/Velocity/Postgres. Any ideas what could have
> changed?
Sounds like either the GlobalMacros.vm is missing/corrupted or the
configuration entry pointing to the VM library template is wrong.
If you have logging enabled, you should see something like this on your
application startup.
=====================================
Ebpp INFO [main 08-26 13:43:54] ServletContextSimulator: Velocity [info]
Created: 20 parsers.
Ebpp INFO [main 08-26 13:43:54] ServletContextSimulator: Velocity [info]
Velocimacro : initialization starting.
Ebpp INFO [main 08-26 13:43:54] ServletContextSimulator: Velocity [info]
Velocimacro : adding VMs from VM library template :
/WEB-INF/VM_global_library.vm
Ebpp INFO [main 08-26 13:43:54] ServletContextSimulator: Velocity [info]
Velocimacro : added new VM : #formattedDateTime( dateValue ) : source =
/WEB-INF/VM_global_library.vm
[...]
Ebpp INFO [main 08-26 13:43:54] ServletContextSimulator: Velocity [info]
Velocimacro : added new VM : #encodeToHTML( text ) : source =
/WEB-INF/VM_global_library.vm
Ebpp INFO [main 08-26 13:43:55] ServletContextSimulator: Velocity [info]
ResourceManager : found /WEB-INF/VM_global_library.vm with loader
org.apache.velocity.tools.view.servlet.WebappLoader
Ebpp INFO [main 08-26 13:43:55] ServletContextSimulator: Velocity [info]
Velocimacro : VM library template macro registration complete.
=====================================
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org