Hello,

I'm a french new developer.
I'm in an IBM project and new to Spring and velocity technologies.

I have to complete a web application that a person left unfinished when leaving the project.

Unfortunately, he left me some errors :(

Velocity engine is here used to produce a document.
Here is the thing : VelocityEngine is declared in my Service Implementation Class and initialised via xml spring files.
But the VelocityEngine declared in my class is not initialised (it remains null 
(the class initialisation)).

The spring files seem OK.

In the console Debug here is what I see

Initialising the VelocityEngine via spring :
INFO org.apache.velocity.app.VelocityEngine - ************************************************************** INFO org.apache.velocity.app.VelocityEngine - Starting Jakarta Velocity v1.4
INFO  org.apache.velocity.app.VelocityEngine - RuntimeInstance initializing.
[...]
ERROR org.apache.velocity.app.VelocityEngine - ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader.
Is this normal?
[...]

Then, when trying to use the VelocityEngine I've got in VelocityEngineUtils.mergeTemplate method I've got the following exception (since the VelocityEngine is null): java.lang.NullPointerException at org.springframework.ui.velocity.VelocityEngineUtils.mergeTemplate(VelocityEngineUtils.java:56)

Have you got any idea?
I can send you some code sample if it can help your understanding.

I hope you will be able to help me.

P.S : all apologies for my english.

Thanks,

Cyril ROY


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

Reply via email to