Ha - by 'releaseloader', I meant 'resourceloader'...

-----Original Message-----
From: White, Tim [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 07, 2008 7:54 AM
To: Velocity Users List
Subject: RE: Migration from VelocitySerlvlet to VelocityViewServlet

Sometimes I've seen this as a missing "/" problem.  The path you added
has no trailing slash, and the template you are looking for has no
leading slash.  Sometimes just adding a trailing "/" to the end of your
releaseloader path can fix this.

Tim 

-----Original Message-----
From: Sebastiano Vigna [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 06, 2008 3:45 PM
To: [EMAIL PROTECTED]
Subject: Migration from VelocitySerlvlet to VelocityViewServlet

I'm running the Lilypond Snippet Repository using Velocity since few
years. It's a simple installation. Everything worked fine until I
upgraded to the new VelocityViewServlet stuff. I did the "obvious"  
updates to my servlets, and now there's no way Velocity will load my
templates. My properties say:

resource.loader = file, class
file.resource.loader.class =
org.apache.velocity.runtime.resource.loader.FileResourceLoader
file.resource.loader.path = /WEB-INF/templates
file.resource.loader.cache = false
file.resource.loader.modificationCheckInterval = 2
class.resource.loader.class =
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
input.encoding=UTF-8
output.encoding=UTF-8
default.contentType=text/html; charset=UTF-8

as they always had. From the log, Velocity sees the path:

INFO  [/LSR]                          -  Velocity  [debug] Do unicode  
file recognition:  false
INFO  [/LSR]                          -  Velocity   [info]  
FileResourceLoader : adding path '/usr/share/tomcat5/webapps/LSR/WEB-
INF/templates'

But then, there's no way to load a single template:

org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'query.vm'

Something must have dramatically changed in a backward incompatible way,
and, sincerely, after two hours of struggling I haven't the faintest
idea of what's happening. Everything has always worked without a glitch.

I googled for migration problems between the old and the new setup, but
I found nothing--not even a simple explanation about how to migrate.

Please, please help me.

Ciao,

                                seba



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


This communication is the property of Qwest and may contain confidential
or privileged information. Unauthorized use of this communication is
strictly prohibited and may be unlawful.  If you have received this
communication in error, please immediately notify the sender by reply
e-mail and destroy all copies of the communication and any attachments.

---------------------------------------------------------------------
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]

Reply via email to