Hi,
I have just started to use Velocity(1.5) for the first time with Tomcat 6.0.
When I try the simple example the text from index.vm is displayed but does not
get any of the data from the toytool, hashmap or date classes. The log contains
the following.
10-Apr-2007 16:33:06 org.apache.catalina.core.ApplicationContext log
INFO: Velocity [debug] ResourceManager : found /simple/index.vm with loader
org.apache.velocity.tools.view.servlet.WebappLoader
10-Apr-2007 16:33:06 org.apache.catalina.core.ApplicationContext log
INFO: Velocity [info] Null reference [template '/simple/index.vm', line 32,
column 28] : $toytool.message cannot be resolved.
10-Apr-2007 16:33:06 org.apache.catalina.core.ApplicationContext log
INFO: Velocity [info] Null reference [template '/simple/index.vm', line 43,
column 16] : $map.put("foo",$foo) cannot be resolved.
10-Apr-2007 16:33:06 org.apache.catalina.core.ApplicationContext log
INFO: Velocity [info] Null reference [template '/simple/index.vm', line 44,
column 15] : $map.put("bar",$bar) cannot be resolved.
10-Apr-2007 16:33:06 org.apache.catalina.core.ApplicationContext log
INFO: Velocity [info] Null reference [template '/simple/index.vm', line 46,
column 19] : $map cannot be resolved.
10-Apr-2007 16:33:06 org.apache.catalina.core.ApplicationContext log
INFO: Velocity [info] Null reference [template '/simple/index.vm', line 51,
column 42] : $date.medium cannot be resolved.
I copied the examples directory from the velocitytools1.3 directory to the
webapps directory in Tomcat. The velocity command line examples worked ok, but
I cannot get the simple web application to work.
Please can you give some advice on what I have done wrong.
Regards
Peter Lamb
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]