开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜