I've got two Liferay portlets.
The first one manages persistence, I've created some entities and run service builder. After that, I've created a couple of methods in MyEntityLocalServiceImpl and run service builder again to get all the related methods.
I generate the jar and the war of this portlet, install the war in my Liferay instance and copy the jar at tomcat's /lib/ext
From my second portlet, I call MyEntityServiceUtil.myMethod(myParams) and, at execution time, it throws:
10:51:59,458 ERROR [http-bio-8080-exec-8][PortletServlet:116] javax.portlet.PortletException: java.lang.NoClassDefFoundError: com/liferay/portal/service/BaseService
javax.portlet.PortletException: java.lang.NoClassDefFoundError: com/liferay/portal/service/BaseService
at com.liferay.portal.kernel.portlet.LiferayPortlet.callActionMethod(LiferayPortlet.java:181)
at com.liferay.util.bridges.mvc.MVCPortlet.callActionMethod(MVCPortlet.java:249)
at com.liferay.portal.kernel.portlet.LiferayPortlet.processAction(LiferayPortlet.java:90)
at com.liferay.util.bridges.mvc.MVCPortlet.processAction(MVCPortlet.java:212)
at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:71)
at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48)
at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:112)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
...
I can see portal-service.jar at tomcat's /lib/ext, containing BaseService.class
Any idea why is it not being found at execution time? Thanks!