对于servlet上下文,BeanLocator为null

时间:2017-10-16 15:47:02

标签: java liferay javabeans context.xml

在一台服务器上不断出现此错误,但在另一台服务器上却没有。 两个服务器都部署了相同的代码,并且在比较context.xml和applicationevn.xml时,它们都是insync。我还想在哪里开始解决这个bean错误

  

11:40:04,180 ERROR [tomcat-http - 24] [PortletBeanLocatorUtil:42]   对于servlet上下文message-manager-portlet,BeanLocator为null   11:40:04,183 ERROR [tomcat-http - 24] [render_portlet_jsp:132] null   com.liferay.portal.kernel.bean.BeanLocatorException:BeanLocator有   尚未为servlet上下文message-manager-portlet设置           at com.liferay.portal.kernel.bean.PortletBeanLocatorUtil.locate(PortletBeanLocatorUtil.java:46)           at com.fm.fmconnect.mm.service.MessageManagerReportTypeLocalServiceUtil.getService(MessageManagerReportTypeLocalServiceUtil.java:349)           at com.fm.fmconnect.mm.service.MessageManagerReportTypeLocalServiceUtil.findSellerServicerCounts(MessageManagerReportTypeLocalServiceUtil.java:331)           在com.fm.fmconnect.mm.action.CommonAction.updateSellerServicerIds(CommonAction.java:234)           at com.fm.fmconnect.mm.action.CommonAction.setSellerServicerValues(CommonAction.java:159)           在com.fm.fmconnect.mm.portlet.controller.MessageManagerController.doView(MessageManagerController.java:148)           在com.liferay.portal.kernel.portlet.LiferayPortlet.doDispatch(LiferayPortlet.java:235)           at com.liferay.util.bridges.mvc.MVCPortlet.doDispatch(MVCPortlet.java:314)           在javax.portlet.GenericPortlet.render(GenericPortlet.java:262)           在com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:103)           at com.liferay.portlet.ScriptDataPortletFilter.doFilter(ScriptDataPortletFilter.java:55)           在com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:100)           at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:64)           在com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:112)           在javax.servlet.http.HttpServlet.service(HttpServlet.java:731)           在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)           在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)           在com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)           在com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:117)           在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

1 个答案:

答案 0 :(得分:0)

您正在运行哪个门户网站版本?

您是否尝试删除服务构建器生成的所有文件(三个可修改的impl文件除外),运行您的ant clean目标以及构建/部署?

为了更明确,我会删除以下文件。

  1. /WEB-INF/lib/message-manager-portlet-service.jar
  2. / WEB-INF / service(整个文件夹)
  3. /WEB-INF/sql/indexes.sql
  4. /WEB-INF/sql/tables.sql
  5. /WEB-INF/sql/sequences.sql
  6. / WEB-INF / src / META-INF(此文件夹中的所有内容均假设未进行任何XML修改)
  7. 然后运行以下蚂蚁目标    干净    2.构建服务    3.编译    4.部署

    然后启动服务器。