Combination View Flat View Tree View
Threads [ Previous | Next ]
Oke Enyinna
Custom velocity tool with ext plugin
October 13, 2011 2:04 AM

Oke Enyinna

Rank: Junior Member

Posts: 39

Join Date: April 14, 2010

Recent Posts


I am trying to build a custom velocity tool as described here but using an ext plugin instead of a hook as in the example.

I tried to covert the hook into an ext plugin velotool-ext modifying the following statement in my velocity script to
#set ($myTool = $utilLocator.findUtil('velotool-ext', 'com.mytool.MyTool'))

But I got an exception in my log saying
com.liferay.portal.kernel.bean.BeanLocatorException: BeanLocator has not been set

I can't think what could be wrong. My applicationContext.xml is in WEB-INF and the context loader listener is registered in web.xml.

Any suggestions?