当我试图使用Liferay桥4时所犯的错误:
21:18:00,794 ERROR [PortletContainerLiferayImpl:171] null
2java.lang.NullPointerException
3 at com.liferay.faces.bridge.container.liferay.PortletContainerLiferayImpl.getRequestURL(PortletContainerLiferayImpl.java:392)
4 at com.liferay.faces.bridge.container.liferay.PortletContainerLiferayImpl.<init>(PortletContainerLiferayImpl.java:168)
5 at com.liferay.faces.bridge.container.PortletContainerFactoryImpl.getPortletContainer(PortletContainerFactoryImpl.java:43)
6 at com.liferay.faces.bridge.BridgePhaseBaseImpl.init(BridgePhaseBaseImpl.java:172)
7 at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:118)
8 at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:84)
9 at com.liferay.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:117)
10 at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:255)
11 at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
12 at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:204)发布于 2014-11-04 22:06:04
我建议您从一个干净的项目开始,遵循使用mvn原型生成Liferay Faces Portlet wiki文章中的步骤。注意,在pom.xml中,您需要将com.sun.faces 2.1.21更改为2.2.6,将com.liferay.faces 3.2.4-ga5更改为4.2.0-m2。此外,您还需要添加Liferay预览库:
<repository>
<id>liferay-previews</id>
<url>
https://repository.liferay.com/nexus/content/repositories/liferay-previews
</url>
</repository>有关更多信息,请参见名为公告: Liferay Faces 4.2.0m2发布的博客。
https://stackoverflow.com/questions/26731672
复制相似问题