我试图在Ubuntu 14.04上启动Liferay tomcat服务器。 要安装Liferay 6.1.1,我使用了以下tutoriel: http://www.youtube.com/watch?v=3uLWkqCg6kg
但是,我无法启动tomcat服务器。我收到了错误:
10:19:23,067 ERROR [http-bio-8080-exec-3][MainServlet:1224] com.liferay.portal.kernel.events.ActionException: java.lang.NullPointerException
.
.
.
Caused by: java.lang.NullPointerException
at com.liferay.portal.model.impl.LayoutSetImpl.getColorScheme(LayoutSetImpl.java:50)
at com.liferay.portal.model.impl.LayoutImpl.getColorScheme(LayoutImpl.java:241)
at com.liferay.portal.events.ThemeServicePreAction.servicePre(ThemeServicePreAction.java:80)
at com.liferay.portal.events.ThemeServicePreAction.run(ThemeServicePreAction.java:44)
... 111 more
juil. 06, 2014 10:19:23 AM org.apache.catalina.core.ApplicationDispatcher invoke
GRAVE: "Servlet.service()" pour la servlet jsp a lancé une exception
org.apache.jasper.JasperException: Impossible de compiler la classe pour la JSP:
An error occurred at line: 1 in the generated java file
The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files
An error occurred at line: 176 in the generated java file
The import java.util.Arrays cannot be resolved
Stacktrace:
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:102)
.
.
.
我不知道出了什么问题。
答案 0 :(得分:1)
即使你想在Java 8上运行你的portlet。
按照步骤
修复步骤: -
1.转到Liferay Tomcat的Lib文件夹。
2.Replace: - ecj-3.7.2.jar with ecj-4.4.2。
3.重新启动服务器。
答案 1 :(得分:0)