On 4/17/07, plamb <[EMAIL PROTECTED]> wrote:
Hi Nathan, I did delete the other velocity tools stuff before trying the latter.
cool.
My Tomcat installation has been in use for a couple of months, fro other applications using JSP and servlets. The operating system is windows xp. I do not remember changing any Tomcat defaults. I have not tried any other wep apps packaged as Wars. I have not tried an earlier version of Tomcat, or other servlet engines.
well, that seems fine then.
I have disscussd the problem with some of my colleages who have got velocity tools working with Tomcat. I think that I have not perfromed the installation of velocity correctly and intend to start again with a new install of velocity and velocity tools.
new install? to use the example apps, you should be able to just download the binary velocity-tools distribution, pull out the example WAR files, drop them directly into the Tomcat webapps folder, start tomcat, and go to http://localhost:8080/simple (or showcase or struts). There's not really much "installation" involved.
If you can think of anything in the mean time please let me know.
will do. let me know how it goes with retrying the steps above.
Regards Peter lamb Nathan Bubna wrote: > > Did you delete the other VelocityTools stuff in your webapps directory > before trying the latter? > > Can you give more information about your Tomcat installation? Is it a > clean install or one you've used for a while? Have you changed any > tomcat defaults since you installed it? What is your OS? Have you > tried other webapps packaged as WARs? Does this problem only occur > with the VelocityTools example apps? Have you tried any earlier > Tomcat versions? For that matter, have you tried other servlet > engines? > > We need to find some way to narrow down the problem, so that it can be > reproduced by someone else, until then we can only hope that we get > lucky and find some tweak that works. You might also consider asking > [EMAIL PROTECTED] and see if they have any ideas. > > On 4/15/07, plamb <[EMAIL PROTECTED]> wrote: >> >> 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] >> >> > > --------------------------------------------------------------------- > 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#a10034924 Sent from the Velocity - User mailing list archive at Nabble.com. --------------------------------------------------------------------- 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]