I should elaborate...

We actually subclass VelocityViewServlet for each servlet in question
(overriding handleRequest()).  I am suspcious that VVS is no longer actually
using our customer velocity.properties, which is:

-----------
resource.loader=classpath, webapp
classpath.resource.loader.description=Velocity Classpath Resource Loader
classpath.resource.loader.class=org.apache.velocity.runtime.resource.loader
.ClasspathResourceLoader
classpath.resource.loader.cache=true
classpath.resource.loader.modificationCheckInterval=2

webapp.resource.loader.description=Velocity Web App Resource Loader
webapp.resource.loader.class=org.apache.velocity.tools.view.servlet
.WebappLoader
webapp.resource.loader.path=/
webapp.resource.loader.cache=true
webapp.resource.loader.modificationCheckInterval=2
-----------

It is the log (below) that makes me suspect - it may be ignoring our custom
properties and going to a default resource loader instead ???

------------
Dec 13, 2006 11:02:19 PM org.apache.catalina.core.ApplicationContext log
INFO:  Velocity   [info] VelocityViewServlet: Custom Properties File:
/WEB-INF/velocity.properties
Dec 13, 2006 11:02:19 PM org.apache.catalina.core.ApplicationContext log
INFO:  Velocity  [debug] Starting Apache Velocity v1.5-beta2 (compiled:
2006-11-24 22:45:47)
Dec 13, 2006 11:02:19 PM org.apache.catalina.core.ApplicationContext log
INFO:  Velocity  [debug] Default Properties File:
org/apache/velocity/runtime/defaults/velocity.properties
Dec 13, 2006 11:02:19 PM org.apache.catalina.core.ApplicationContext log
INFO:  Velocity  [debug] Default ResourceManager initializing. (class
org.apache.velocity.runtime.resource.ResourceManagerImpl)
Dec 13, 2006 11:02:19 PM org.apache.catalina.core.ApplicationContext log
INFO:  Velocity  [debug] ResourceLoader instantiated:
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
Dec 13, 2006 11:02:19 PM org.apache.catalina.core.ApplicationContext log
INFO:  Velocity  : ClasspathResourceLoader : initialization complete.
Dec 13, 2006 11:02:19 PM org.apache.catalina.core.ApplicationContext log
INFO:  Velocity  [debug] ResourceLoader instantiated:
org.apache.velocity.tools.view.servlet.WebappLoader
Dec 13, 2006 11:02:19 PM org.apache.catalina.core.ApplicationContext log
INFO:  Velocity   [info] WebappLoader : initialization starting.
Dec 13, 2006 11:02:19 PM org.apache.catalina.core.ApplicationContext log
INFO:  Velocity   [info] WebappLoader : initialization complete.
Dec 13, 2006 11:02:19 PM org.apache.catalina.core.ApplicationContext log
INFO:  Velocity  [debug] ResourceCache: initialized (class
org.apache.velocity.runtime.resource.ResourceCacheImpl)
Dec 13, 2006 11:02:19 PM org.apache.catalina.core.ApplicationContext log
INFO:  Velocity  : Default ResourceManager initialization complete.
D
------------

So yes, it won't see our VM templates (which are in the "/" of the WAR _and_ 
in a JAR in WEB-INF/lib)...  Which definitely slows everything down!






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

Reply via email to