Bean Locator is null problem in Service builder Liferay 7

Areti Srihari, modified 7 Years ago. New Member Posts: 10 Join Date: 11/6/17 Recent Posts

I have just created MVCportlet and to perform CRUD operations in same portlet I created service.xml and generated services. Everything is fine. But when I am trying to access services I am getting exception like this...

07:17:47,932 INFO  [http-nio-9080-exec-6][ActionURLByPortletTag:42] before addstudent() st
07:17:47,933 ERROR [http-nio-9080-exec-6][PortletBeanLocatorUtil:42] BeanLocator is null for servlet context LiferayPhases_portlet-portlet
com.liferay.portal.kernel.bean.BeanLocatorException: BeanLocator is not set for servlet context LiferayPhases_portlet-portlet

 

Could anyone please give the reply.