LifeRay运行在Tomcat上的整改记录

来源:互联网 发布:白话数据库三大范式 编辑:程序博客网 时间:2024/06/13 04:14


LifeRay运行在Tomcat上,因为是CE版本,有不少的Bug需要修正,以下为它的整改记录:


====================20151026======================================


为了解决如下Log中的问题:

<span style="font-size:12px;">05:38:49,238 ERROR [RuntimePageImpl-8][IncludeTag:129] Current URL null generates exception: java.lang.IllegalStateException: Page needs a session and none is availablejava.lang.IllegalStateException: Page needs a session and none is availableat org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.java:148)at org.apache.jasper.runtime.PageContextImpl.initialize(PageContextImpl.java:125)at org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFactoryImpl.java:112)at org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImpl.java:65)at com.liferay.portal.kernel.servlet.JspFactoryWrapper.getPageContext(JspFactoryWrapper.java:63)at org.apache.jsp.html.taglib.ui.panel.start_jsp._jspService(start_jsp.java:383)at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:57)at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:78)at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:295)at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:192)at com.liferay.taglib.util.IncludeTag.doStartTag(IncludeTag.java:123)at com.liferay.taglib.ui.PanelTag.doStartTag(PanelTag.java:68)at org.apache.jsp.html.portlet.document_005flibrary.view_005ffile_005fentry_jsp._jspService(view_005ffile_005fentry_jsp.java:2881)at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)</span>

采用的方法是:

chown -R davidqi Tomcat-7.0.42 (改权限从root到davidqi下面)

find -name portal-ext.properties

然后修改这个文件:

里面只有一行,增加一行如下:,之后reboot。


layout.parallel.render.timeout=30000


重启后的监控(后面增加了一个iFrame)如下。


部分参考如下:

Here.

其他一些说法:



Doing some R&D we found that this is related to the new parallel rendering feature in Liferay 6.2. We changed the layout.parallel.render.timeout from 5000 to 30000, but this didn't help us.
We have now set layout.parallel.render.enable = false and commented the layout.parallel.render.timeout property.
it is related with the Memory issue on your system. it is getting lesser memory than required


如果以上方法不行,再考虑“layout.parallel.render.enable = false”的方式。


===============================================================











0 0