SEVERE: Context [/twitter] startup failed due to previous errors

本文详细阐述了在部署Twitter Portlet到Liferay Portal时遇到的启动问题,以及如何通过配置logging.properties文件来获取详细的错误信息,最终定位并解决了问题。

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

When I deploy twitter portlet in my Liferay Portal, it seems working fine. But in my Activities portlet, there're no activities shown when I tweet in Twitter. Searched online, tried all solutions but still doesn't work. So I create my own twitter portlet based on Twitter portlet source code. It's built by using service builder.

When I deploy the project, it tells me can't register twitter portlet properly without any error information.

WARNING: [SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.jee.server:twitter' did not find a matching property.
Nov 9, 2012 7:21:15 PM org.apache.catalina.core.StandardContext listenerStart

Nov 9, 2012 7:21:15 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/twitter] startup failed due to previous errors

How could I figure it out? The issue is we need to find out where causes the start problem. We need to see the detail log. Unfortunately by default, tomcat won't provide any details about the cause of the error. We can config it by ourselves. In our WEB-INF/src, we can create a logging.properties file with the following contents:

org.apache.catalina.core.ContainerBase.[Catalina].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].handlers = java.util.logging.ConsoleHandler

In this case, Tomcat will show me error details.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值