Liferay $serviceLocator.findService("com.test.Foo") in portal_normal.vm giving NoSuchBeanDefinitionException
I'm using liferay6 and trying to access com.test.Foo (added to ext-service) in portal_normal.vm using
#set ($mySvc = $serviceLocator.findService("com.test.Foo"))
I'm getting the following exception.
Caused by: org.springframework.beans.factory.NoSuchB开发者_开发知识库eanDefinitionException: No bean named 'com.test.Foo' is defined.
Where do i need to declare this bean?
Please try the following snippet
$serviceLocator.findService("custom-portlet", "com.test.foo")
Replace custom-portlet with your portlet name
精彩评论