I'm trying to migrate an app from WebMacro to Velocity.
I changed all the classes to inherit from Velocity classes,
and modified my TR.props file, adding the velocity.props
file to WEB-INF/conf also. The thing is giving the following
error messages:

[Fri Dec 01 15:11:43 GMT-04:00 2000] -- NOTICE  -- VelocityService early
init()....starting!
[Fri Dec 01 15:11:44 GMT-04:00 2000] -- NOTICE  -- VelocityService
properties:
[Fri Dec 01 15:11:44 GMT-04:00 2000] -- NOTICE  --
properties:/WEB-INF/conf/velocity.properties
[Fri Dec 01 15:11:44 GMT-04:00 2000] -- NOTICE  -- templates:/templates
[Fri Dec 01 15:11:44 GMT-04:00 2000] -- NOTICE  --
log:D:/Apache/resin/doc/frames/logs/velocity.log
[Fri Dec 01 15:11:44 GMT-04:00 2000] -- NOTICE  --
classname:org.apache.turbine.services.velocity.TurbineVelocityService
[Fri Dec 01 15:11:44 GMT-04:00 2000] -- NOTICE  -- VelocityService is using
D:\Apache\resin\doc\frames\WEB-INF\conf\velocity.properties
[Fri Dec 01 15:11:44 GMT-04:00 2000] -- NOTICE  -- VelocityService early
init()....finished!
[Fri Dec 01 15:11:44 GMT-04:00 2000] -- NOTICE  -- TemplateService
init()....starting!
[Fri Dec 01 15:11:44 GMT-04:00 2000] -- NOTICE  -- TemplateService
init()....finished!
...
[Fri Dec 01 15:11:49 GMT-04:00 2000] --  ERROR  -- An error occurred while
rendering template /screens//index.vm:
null
[Fri Dec 01 15:11:49 GMT-04:00 2000] --  ERROR  -- 
        Exception:  java.lang.NullPointerException
        Stack Trace follows:
        java.lang.NullPointerException
        at org.apache.velocity.runtime.Runtime.getTemplate(Runtime.java:888)

Line 888 in Runtime.java tries to access globalCache, which is
in turn initialized by Runtime.init(). I have the impression
this method is not being called. My question is: is the default
velocity.props file Ok to be used from a Turbine app that has
been configured to use Velocity as a templating service? Is there
anything else I should be careful with?

Also, there is no VelocityErrorScreen. I added one; should
I commit it, or should I be using something else?

Thanks,


-- 
Gonzalo A. Diethelm
[EMAIL PROTECTED]


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to