Forums de discussion

bridgeFactoryCache.get("com/liferay/faces/bridge/BridgePhaseFactory") null

Devikumar R, modifié il y a 11 années.

bridgeFactoryCache.get("com/liferay/faces/bridge/BridgePhaseFactory") null

New Member Publications: 3 Date d'inscription: 17/01/13 Publications récentes
Hi,

Jsf, liferay faces jars are moved to a new jboss module. module.xml is shown below:

<resource-root path="el-impl-2.2.jar"/>
<resource-root path="jboss-el-2.0.0.GA.jar"/>
<resource-root path="jsf-api-2.1.3-b02.jar"/>
<resource-root path="jsf-impl-2.1.3-b02.jar"/>
<resource-root path="liferay-faces-alloy-3.1.0-ga1-20120815.195658-20.jar"/>
<resource-root path="liferay-faces-bridge-api-3.1.0-ga1-20120815.195659-20.jar"/>
<resource-root path="liferay-faces-bridge-impl-3.1.0-ga1-20120815.195703-20.jar">
<filter>
<include path="META-INF/**" />
</filter>
</resource-root>
<resource-root path="liferay-faces-util-3.1.0-ga1-20120815.195655-20.jar"/>
<resource-root path="primefaces-3.3.jar"/>
<resource-root path="util-bridges.jar"/>
<system export="true">
<paths>
<path name="org/w3c/dom/ls"/>
<path name="javax/xml/validation"/>
</paths>
</system>
<module name="javax.el.api"/>
<module name="javax.servlet.jsp.api"/>
<module name="com.liferay.portal"/>
Issue :
getBridge().init(portletConfig);, init(PortletConfig portletConfig) -- GenericFacesPortlet.class - getBridge() returns com.liferay.faces.bridge.BridgeImpl
BridgeImpl.init(portletConfig) -- bridgePhaseFactory = (BridgePhaseFactory) BridgeFactoryFinder.getFactory(com / liferay / faces / bridge / BridgePhaseFactory);
getInstance().getFactoryInstance(clazz) -- getInstance() returns BridgeFactoryFinderImpl
BridgeFactoryFinderImpl.getFactoryInstance returns null.
As bridgeFactoryCache.get("com / liferay / faces / bridge / BridgePhaseFactory") is null when we remove the jsf jars from lib in WAR. When it is present in war, it is having the value.
The below exception is thrwon:

15:20:44,305 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/business].[loginPortlet Servlet]] (http-localhost-127.0.0.1-8080-3) Servlet.service() for servlet loginPortlet Servlet threw exception: java.lang.NullPointerException
at com.liferay.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:98) [liferay-faces-bridge-impl-3.1.0-ga1-20120815.195703-20.jar:3.1.0-ga1-SNAPSHOT (Galatia / Aug 15, 2012 AD)]
at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:255) [liferay-faces-bridge-api-3.1.0-ga1-20120815.195659-20.jar:3.1.0-ga1-SNAPSHOT (Galatia / Aug 15, 2012 AD)]
at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328) [portlet.jar:]
at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:204) [liferay-faces-bridge-api-3.1.0-ga1-20120815.195659-20.jar:3.1.0-ga1-SNAPSHOT (Galatia / Aug 15, 2012 AD)]
at javax.portlet.GenericPortlet.render(GenericPortlet.java:233) [portlet.jar:]
at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:100)
at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:64) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:93) [portal-service.jar:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.10.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.10.Final.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72) [portal-service.jar:]

Can somebody help?

Thanks,
Devikumar R
thumbnail
Neil Griffin, modifié il y a 11 années.

RE: bridgeFactoryCache.get("com/liferay/faces/bridge/BridgePhaseFactory") n

Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
Just curious -- is there a reason why you need to define a new JBoss module, rather than simply having the JARs live inside of the WEB-INF/lib folder of the deployed WAR?