Hi Christophe,

> Hello, this is my first post on the list...

Welcome to the gang!  :)

> I have a problem using Cactus test suites with my servlet (which is
> inherited from VelocityViewServlet) and I wonder if it could be due to the
> way I'm using Velocity API.
> I've summarized some informations below.

Not being so familiar with Cactus, some minimal sample code to
reproduce your problem would be nice.
## Gotta look into Cactus some day, though.

Also, which version of Velocity/VelocityTools are you using?

> Problem is : when running under Cactus (as a Cactus test) the
> Velocity.mergeTemplate call throws a NullPointerException.
> I step debugged, everything is ok (I've checked : writer object,
> innerContext object,filenames)
> 
> Stepping into Velocity API I can go as far as this method
> (RuntimeInstance.java)
> public Template getTemplate(String name, String  encoding) throws
> ResourceNotFoundException, ParseErrorException, Exception
> {
>    return (Template) resourceManager.getResource(name,
> ResourceManager.RESOURCE_TEMPLATE, encoding);
> }
> 
> Stepping into getResource method is not possible...

Might be a ClassLoader issue...

Best regards,
-- Shinobu

--
Shinobu Kawai <[EMAIL PROTECTED]>

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

Reply via email to