LifeRay运行在Tomcat上的整改记录

本文详细介绍了如何解决LifeRay CE版本在Tomcat上的运行问题,包括权限修改、配置文件调整及优化参数设置,并通过监控结果验证了改进措施的有效性。此外,还探讨了内存问题及其解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >



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 available
java.lang.IllegalStateException: Page needs a session and none is available
	at 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”的方式。


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











评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值