I have tried both. With the latter I get a different error message:

type Status report

message /simple/index.vm

description The requested resource (/simple/index.vm) is not available.



Nathan Bubna wrote:
> 
> I just tried the simple example from VelocityTools 1.3 and 1.4-dev
> with a fresh download of Tomcat 6.0.10 and had no problems.
> 
> Are you copying the whole examples directory (So the war files are in
> %CATALINA_HOME%/webapps/examples/)? Or are you copying over the
> contents of that directory (so the war files are in
> %CATALINA_HOME%/webapps/)?   If you are doing the former, try doing
> the latter.  I don't know whether it should matter, but the latter is
> what i just tested.
> 
> On 4/10/07, P Y Lamb <[EMAIL PROTECTED]> wrote:
>> 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]
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Null-reference-with-velocity-1.5-simple-example-tf3554483.html#a10005655
Sent from the Velocity - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to