10/30/2014

BeanLocator has not been set for servlet context

If you get an exception like this:

javax.portlet.PortletException: com.liferay.portal.kernel.bean.BeanLocatorException: BeanLocator has not been set for servlet context

then take a look at the portlet you´ve written. If you portlet´s name doesn´t end with "portlet" then this might be the reason for your Exception. Create a new portlet with the correct name, import all your sources and try again.

If you have any questions, feel free to leave a comment.